Hi, JTS[1] (the JTS Topology Suite) has a DouglasPeuckerSimplifier implemented[2]. Additionally, there is the so-called TopologyPreservingSimplifier[3] which is very good for polygons because it prevents topological collapse. JTS is a Java library.
Regards Sebastian [1]http://tsusiatsoftware.net/jts/main.html [2]http://tsusiatsoftware.net/jts/javadoc/com/vividsolutions/jts/simplify/DouglasPeuckerSimplifier.html [3]http://tsusiatsoftware.net/jts/javadoc/com/vividsolutions/jts/simplify/TopologyPreservingSimplifier.html On Sat, 05 May 2012 04:03:30 -0700 Paul Norman <[email protected]> wrote: > I'm working with a process where I generate a .osm file and need to > simplify the ways in output on the command line. JOSM's simplify way > command isn't an option as it requires interaction and it is also > fairly slow on large files. Using ogr2ogr to simplify the source > files is not an option as it could cause the different layers to no > longer agree with each other. > > I'd rather not re-implement Douglas-Peucker if someone has already > done it. > > > _______________________________________________ > dev mailing list > [email protected] > http://lists.openstreetmap.org/listinfo/dev _______________________________________________ dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/dev

