[OpenLayers-Trac] [OpenLayers] #2869: Add simplify function for
LineString geometries based upon Douglas-Peucker algorithm
OpenLayers
trac-20090302 at openlayers.org
Mon Oct 11 02:27:43 EDT 2010
#2869: Add simplify function for LineString geometries based upon Douglas-Peucker
algorithm
---------------------------------------------------------+------------------
Reporter: chrismayer | Owner:
Type: feature | Status: new
Priority: minor | Milestone: 2.11 Release
Component: Util | Version: 2.10
Keywords: douglas-peucker, generalization, linestring | State: Review
---------------------------------------------------------+------------------
I have written a little patch (see attached file) for OpenLayers.Util in
order to provide a function simplifying LineStrings. Base of the code is
the Douglas-Peucker algorithm. Due to a threshold unnecessary vertices are
removed.
I would be happy if this could be included to the code base of OpenLayers.
The code includes tests and an example showing he functionality.
Thanks for any review.
see http://osgeo-org.1803224.n2.nabble.com/simplifyLineString-
td5610746.html#a5610746
--
Ticket URL: <http://trac.openlayers.org/ticket/2869>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list