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.