Package com.microstrategy.web.app.maps
Class DouglasPeuckerSimplification
- java.lang.Object
-
- com.microstrategy.web.app.maps.DouglasPeuckerSimplification
-
- All Implemented Interfaces:
LineSimplification
public class DouglasPeuckerSimplification extends java.lang.Object implements LineSimplification
Stack-based Douglas Peucker line simplification routine returned is a reduced GLatLng array After code by Dr. Gary J. Robinson, Environmental Systems Science Centre, University of Reading, Reading, UK
-
-
Field Summary
Fields Modifier and Type Field Description protected double
epsilong
-
Constructor Summary
Constructors Constructor Description DouglasPeuckerSimplification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setDistanceDimension(double epsilon)
java.util.List<LatLng>
simplify(java.util.List<LatLng> arc)
-
-
-
Method Detail
-
simplify
public java.util.List<LatLng> simplify(java.util.List<LatLng> arc)
- Specified by:
simplify
in interfaceLineSimplification
-
setDistanceDimension
public void setDistanceDimension(double epsilon)
- Specified by:
setDistanceDimension
in interfaceLineSimplification
-
-