Ticket #1852 (new enhancement)

Opened 12 months ago

Last modified 3 weeks ago

Include geos version at build time in postgis_full_version()

Reported by: strk Owned by: pramsey
Priority: medium Milestone: PostGIS 2.2.0
Component: postgis Version: 2.0.x
Keywords: Cc:

Description

I know it's getting complex, but sometimes you have two GEOS versions installed and while "geos-config" (called by ./configure) finds one version, the dynamic linker finds another version.

Another scenario is you simply upgrade GEOS but you built against an older one.

In both cases postgis_full_version() isn't enough to explain why some feature isn't available or some bug is still present.

Change History

Changed 8 weeks ago by robe

I don't understand this ticket? What is the problem. We have GEOS version in postgis_full_version already and when dynamic linker finds a different version, you can't even load the postgis.so/dll.

Changed 8 weeks ago by strk

Some GEOS features are off when you build PostGIS against an older GEOS. After you upgrade GEOS you see the _new_ version reported by postgis_full_version() and can wonder "why don't I have this functionality?"

I've added the build-time version of GEOS into the error message that comes out when you try to access the unavailable functionality, but it's still confusing.

Example (made out):

 $ SELECT ST_SharedPaths(x,y) FROM mytable;
 ERROR: you need GEOS 3.3.0+ for this to work
 $ SELECT postgis_full_version();
 ... GEOS 3.3.8 ...

Changed 8 weeks ago by robe

you know my answer to that. I hate having versions that dissable functionality. We wouldn't have this problem if we listened to me. Granted we'd have other problems :)

Changed 3 weeks ago by robe

  • milestone changed from PostGIS 2.1.0 to PostGIS 2.2.0
Note: See TracTickets for help on using tickets.