Module org.elasticsearch.geo
Class GeometrySimplifier.GeometryCollections
java.lang.Object
org.elasticsearch.geometry.simplify.GeometrySimplifier<GeometryCollection<?>>
org.elasticsearch.geometry.simplify.GeometrySimplifier.GeometryCollections
- Enclosing class:
- GeometrySimplifier<T extends Geometry>
public static class GeometrySimplifier.GeometryCollections
extends GeometrySimplifier<GeometryCollection<?>>
This class wraps a collection of other simplifiers.
It does not make use of its own simplifier capabilities.
The largest inner geometry is simplified to the specified maxPoints, while the rest are simplified
to a maxPoints value that is a fraction of their size compared to the largest size.
Note that this simplifier cannot work in streaming mode, since it would not know what to add the points to.
If you need to use the streaming mode, separate the geometry collection into individual geometries and use
the Polygon
or LineString
simplifier on each individually.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.geometry.simplify.GeometrySimplifier
GeometrySimplifier.GeometryCollections, GeometrySimplifier.Identity<G extends Geometry>, GeometrySimplifier.LinearRingSimplifier, GeometrySimplifier.LineSimplifier, GeometrySimplifier.MultiPolygonSimplifier, GeometrySimplifier.PolygonSimplifier
-
Field Summary
Fields inherited from class org.elasticsearch.geometry.simplify.GeometrySimplifier
calculator, description, innerSimplifier, maxPoints, monitor
-
Constructor Summary
ConstructorsConstructorDescriptionGeometryCollections
(int maxPoints, SimplificationErrorCalculator calculator) GeometryCollections
(int maxPoints, SimplificationErrorCalculator calculator, StreamingGeometrySimplifier.Monitor monitor) -
Method Summary
Modifier and TypeMethodDescriptionsimplify
(GeometryCollection<?> collection) Simplify an entire geometry in a non-streaming fashionMethods inherited from class org.elasticsearch.geometry.simplify.GeometrySimplifier
getCurrentPoints, notifyMonitorSimplificationEnd, notifyMonitorSimplificationStart, reset, simplifierFor
-
Constructor Details
-
GeometryCollections
-
GeometryCollections
public GeometryCollections(int maxPoints, SimplificationErrorCalculator calculator, StreamingGeometrySimplifier.Monitor monitor)
-
-
Method Details
-
simplify
Description copied from class:GeometrySimplifier
Simplify an entire geometry in a non-streaming fashion- Specified by:
simplify
in classGeometrySimplifier<GeometryCollection<?>>
-