Ticket #2869 (closed feature: fixed)
Add simplify function for LineString geometries based upon Douglas-Peucker algorithm
| Reported by: | chrismayer | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.11 Release |
| Component: | Geometry.LineString | Version: | 2.10 |
| Keywords: | douglas-peucker, generalization, linestring | Cc: | |
| State: | Complete |
Description
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
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

