Packagenet.systemeD.potlatch2.tools
Classpublic class Simplify

Tool to reduce the number of nodes in a way by filtering out the "least important" ones, using the Douglas-Peucker algorithm.



Public Methods
 MethodDefined by
  
simplify(way:Way, map:Map, keepOffscreen:Boolean):void
[static] Carries out simplification on a way, adding an entry to global undo stack.
Simplify
Method detail
simplify()method
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.