30 points · by ideamonk · 15y ago · 14 comments
Protip: If you set the epsilon low enough, the PostGIS implementation has a good chance of repairing invalid geometries, even when ArcInfo can't.
That's assuming you're working from bitmap images, which I guess is not necessarily the case. If you're working from a sparse set of points to begin with and you're not getting the performance you need you're going to have find other ways to speed it up obviously.
This is a great link and helped me conceptualize and workout bicubic interpolation. Have fun :)
Check out a live PHP demo: http://www.fonant.com/demos/douglas_peucker/algorithm
Did you create an algorithm that would smooth polygons the same way going clockwise or counter-clockwise so that the shared boundaries would be simplified the same way? Or did your algorithm take into account the entire topology?
and postgis lets you simplify in sql query itself.
It's handy, I've used it for KML generation and a command line SVG path simplify tool.
Google maps won't download a file larger than 3MB so simplifying can be important.