[postgis-users] simplify a linestring to n points

Martin Davis mbdavis at refractions.net
Mon Nov 24 09:28:44 PST 2008


Nope.  You might be able to repeatedly simplify and check for when you 
pass your point limit.

Interesting question though... it should be straightforward to adapt the 
DP algorithm to incorporate # points as an exit criteria.

richard -rw- weinberger wrote:
> hi list!
>
> does postgis provide a method to reduce/simplify a linestring to a
> specific number of points?
> i'm aware of st_simplify() but i have to set an lower limit.
>
> thanks,
> //richard
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>   

-- 
Martin Davis
Senior Technical Architect
Refractions Research, Inc.
(250) 383-3022




More information about the postgis-users mailing list