Tool to reduce the number of nodes in a way by filtering out the "least important" ones, using the Douglas-Peucker algorithm.
public static function simplify(way:Way, map:Map, keepOffscreen:Boolean):void
Carries out simplification on a way, adding an entry to global undo stack.
Parameters
| way:Way — Way to be simplified.
|
|
| map:Map — Map it belongs to, for computing offscreen-ness.
|
|
| keepOffscreen:Boolean — If true, don't delete any nodes that are not currently visible.
|
Found an error? Help us fix it. http://wiki.openstreetmap.org/wiki/Potlatch2