[Community] Shapely and polygon simplifications

Helge Jensen hej at actua.dk
Mon Nov 9 20:43:54 EET 2009


I am doing simplification of polygons for storage and calculation
efficiency. and would like to do polygon-simplification.

Currently I use the postgis function ST_SimplifyPreserveTopology to do the
simplification, however the dataset is growing large and I would like to
move the pre-processing away from the database which should be busy
answering real-time queries.

I am already doing pre-processing (parsing from list(x,y,level),
rasterisation and polygonization) in python (and distributed too, thanks to
the new multiprocessing module).

So, I spotted the shapely bindings for GEOS, and the thread
http://www.mail-archive.com/community@lists.gispython.org/msg00510.htmlwhich
indicated that a Douglas-Peucker variant was easily accessible for me
and my pre-processing code.

However I have checked out the trunk and not been able to "from
shapely.geos.ops import simplify", or even find the shapely.geos.ops module


More information about the Community mailing list