[postgis-users] Reducing the number of points in a GPS track

Alexandre Saunier alexandre.saunier at camptocamp.com
Wed Oct 24 05:29:13 PDT 2012


Hello.

I would like to know if some tools are available in PostGIS to
simplify a linestring to a given maximum number of points.
A bit like the "simplify,count=<...>" filter in GPSBabel:
http://www.gpsbabel.org/htmldoc-development/filter_simplify.html

ST_Simplify is close to what I need but I don't know in advance what
tolerance to use, only the final maximal number of points.

Is there a way to do that kind of simplification with PostGIS?

Thanks!
Alexandre



More information about the postgis-users mailing list