Class GeometrySimplifier.PolygonSimplifier

java.lang.Object
org.elasticsearch.geometry.simplify.GeometrySimplifier<Polygon>
org.elasticsearch.geometry.simplify.GeometrySimplifier.PolygonSimplifier
Enclosing class:
GeometrySimplifier<T extends Geometry>

public static class GeometrySimplifier.PolygonSimplifier extends GeometrySimplifier<Polygon>
This class wraps a collection of LinearRing simplifiers for polygon holes. It also uses its own simplifier capabilities for the outer ring simplification. The outer ring is simplified to the specified maxPoints, while the holes are simplified to a maxPoints value that is a fraction of the holes size compared to the outer ring size.

Note that while the polygon simplifier can work in both streaming and non-streaming modes, the streaming mode will assume all points consumed belong to the outer shell. If you want to simplify polygons with holes, use the simplify(polygon) method instead.