Class Polygon

java.lang.Object
org.elasticsearch.geometry.Polygon
All Implemented Interfaces:
Geometry

public final class Polygon extends Object implements Geometry
Represents a closed polygon on the earth's surface with optional holes
  • Field Details

    • EMPTY

      public static final Polygon EMPTY
  • Constructor Details

    • Polygon

      public Polygon(LinearRing polygon, List<LinearRing> holes)
      Creates a new Polygon from the supplied latitude/longitude array, and optionally any holes.
    • Polygon

      public Polygon(LinearRing polygon)
      Creates a new Polygon from the supplied latitude/longitude array, and optionally any holes.
  • Method Details