Ticket #2869 (closed feature: fixed)
Add simplify function for LineString geometries based upon Douglas-Peucker algorithm
|Reported by:||chrismayer||Owned by:|
|Keywords:||douglas-peucker, generalization, linestring||Cc:|
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.