[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgis-users
Subject:    Re: [postgis-users] Reducing the number of points in a GPS track
From:       Olivier Courtin <olivier.courtin () oslandia ! com>
Date:       2012-10-25 14:47:18
Message-ID: 9F3EE6A2-9A2D-4308-B713-788C308D1536 () oslandia ! com
[Download RAW message or body]


On Oct 24, 2012, at 2:29 PM, Alexandre Saunier wrote:

Hi Alex,

> A bit like the "simplify,count=<...>" filter in GPSBabel:
> http://www.gpsbabel.org/htmldoc-development/filter_simplify.html
> 
> Is there a way to do that kind of simplification with PostGIS?

A way could be to :
 - Compute length of your road with ST_Length
 - Use ST_Line_Interpolate_Point to compute each point on your line
 - Aggregate all points computed in a new simplified line with ST_MakeLine

HTH,

O.

_______________________________________________
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic