Module org.elasticsearch.geo
Class StreamingGeometrySimplifier.LinearRingSimplifier
java.lang.Object
org.elasticsearch.geometry.simplify.StreamingGeometrySimplifier<LinearRing>
org.elasticsearch.geometry.simplify.StreamingGeometrySimplifier.LinearRingSimplifier
- Enclosing class:
StreamingGeometrySimplifier<T extends Geometry>
public static class StreamingGeometrySimplifier.LinearRingSimplifier
extends StreamingGeometrySimplifier<LinearRing>
This behaves the same as the
LineSimplifier
except that it assumes the first and last point are the same point.
The minimum acceptable polygon size is therefor 4 points.-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.geometry.simplify.StreamingGeometrySimplifier
StreamingGeometrySimplifier.LinearRingSimplifier, StreamingGeometrySimplifier.LineSimplifier, StreamingGeometrySimplifier.Monitor, StreamingGeometrySimplifier.PointConstructor, StreamingGeometrySimplifier.PointError, StreamingGeometrySimplifier.PointResetter, StreamingGeometrySimplifier.PolygonSimplifier
-
Field Summary
Fields inherited from class org.elasticsearch.geometry.simplify.StreamingGeometrySimplifier
calculator, description, lastRemoved, length, maxPoints, monitor, objCount, pointConstructor, pointResetter, points, queue
-
Constructor Summary
ConstructorsConstructorDescriptionLinearRingSimplifier
(int maxPoints, SimplificationErrorCalculator calculator) LinearRingSimplifier
(int maxPoints, SimplificationErrorCalculator calculator, StreamingGeometrySimplifier.Monitor monitor) -
Method Summary
Modifier and TypeMethodDescriptionproduce()
Produce the simplified geometry from the consumed pointsMethods inherited from class org.elasticsearch.geometry.simplify.StreamingGeometrySimplifier
consume, consume, notifyMonitorPointAdded, notifyMonitorPointRemoved, reset
-
Constructor Details
-
LinearRingSimplifier
-
LinearRingSimplifier
public LinearRingSimplifier(int maxPoints, SimplificationErrorCalculator calculator, StreamingGeometrySimplifier.Monitor monitor)
-
-
Method Details
-
produce
Description copied from class:StreamingGeometrySimplifier
Produce the simplified geometry from the consumed points- Specified by:
produce
in classStreamingGeometrySimplifier<LinearRing>
-