Module org.elasticsearch.geo
Class StreamingGeometrySimplifier.PointError
java.lang.Object
org.elasticsearch.geometry.simplify.StreamingGeometrySimplifier.PointError
- All Implemented Interfaces:
Comparable<StreamingGeometrySimplifier.PointError>
,SimplificationErrorCalculator.PointLike
- Enclosing class:
StreamingGeometrySimplifier<T extends Geometry>
public static class StreamingGeometrySimplifier.PointError
extends Object
implements SimplificationErrorCalculator.PointLike, Comparable<StreamingGeometrySimplifier.PointError>
Each point on the geometry has an error estimate, which is a measure of how much error would be introduced
to the geometry should this point be removed from the geometry. This is a measure of how far from the
line connecting the previous and next points, this geometry lies. If it is on that line, the error would
be zero, since removing the point does not change the geometry.
-
Constructor Details
-
PointError
protected PointError(int index, double x, double y)
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<StreamingGeometrySimplifier.PointError>
-
toString
-
x
public double x()- Specified by:
x
in interfaceSimplificationErrorCalculator.PointLike
-
y
public double y()- Specified by:
y
in interfaceSimplificationErrorCalculator.PointLike
-
reset
-