Opened 7 years ago

Last modified 7 years ago

#3889 new enhancement

Support --without-geos switch — at Version 2

Reported by: robe Owned by: pramsey
Priority: medium Milestone: PostGIS Fund Me
Component: postgis Version: master
Keywords: Cc:

Description (last modified by robe)

This was a request from Darafei Praliaskouski (Komzpa) made on IRC on behalf of Postgres Professional (https://postgrespro.com/)

Normally I'd laugh at such a request, but I'd like to do it for a couple of reasons especially if Komzpa is willing to put in the sweat to make it happen.

  1. Postgres Professional (is lead by Oleg Bartunov and Teodor Sigaev) which many long standing folks in PostGIS community might recognize as the faces behind GiST (which makes PostGIS so fast) and Full-Text search in addition to index improvements on JSON.
  1. They need it for a very good cause. They need a lighter-weight PostGIS that can be used easily, so they can defend the security of it to the Russian Government.

GEOS is too big of a creature for them to audit and approve.

  1. I forsee this as an easy way for new developers to get up to speed contributing to PostGIS since the requirements to compile will be lower.

My proposal is as follows.

If postgis is compiled —without-geos (we assume if that config is not present then we still require geos), much like we do —without-raster, then all GEOS functions will be stubbed and throw an error, something like

Requires GEOS, you need to recompile your PostGIS with GEOS support to use this function
  1. However the following function ST_Intersects will still be available, but instead of using GEOS would piggy back on _ST_DWithin, much like what geography type does already. We should do this on the C-side so no upgrading needs to be done if people recompile / —without-geos or with geos.

Change History (2)

comment:1 by robe, 7 years ago

Description: modified (diff)

comment:2 by robe, 7 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.