[postgis-users] Adding a new GEOS call to PostGIS

Brian Hamlin maplabs at light42.com
Fri Feb 8 22:21:51 PST 2008

It recently came up in the IRC channel FreeNode #postgis
that there is a GEOS TopologyPreserveSimplify, in addition
to Simplify2D.

I did a bit of checking just now.. on my machine, I see
nm /usr/local/pgsql/lib/liblwgeom.1.3.so


    and some others, but no TopologyPreserve anything

nm /usr/lcoal/lib/libgeos_c.1.4.1.dylib


and lastly, in lwpostgis.sql
   CREATE OR REPLACE FUNCTION simplify(geometry, float8)
     RETURNS geometry
     AS '$libdir/liblwgeom', 'LWGEOM_simplify2d'

since the last SQL line matches the exported symbol name from liblwgeom
exactly, minus the front _, looks like there is the exact entry point.

Clearly no parallel entry for TopologyPreseveSimplify

this makes me think that there is a little more to adding the call to
lwpostgis.sql than copying and pasting the declaration.

insights welcome

More information about the postgis-users mailing list