Class LinearRing

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

public class LinearRing
extends Line
Represents a closed line on the earth's surface in lat/lon decimal degrees and optional altitude in meters.

Cannot be serialized by WKT directly but used as a part of polygon

  • Field Details

  • Constructor Details

    • LinearRing

      public LinearRing​(double[] x, double[] y)
    • LinearRing

      public LinearRing​(double[] x, double[] y, double[] z)
  • Method Details

    • type

      public ShapeType type()
      Specified by:
      type in interface Geometry
      Overrides:
      type in class Line
    • visit

      public <T,​ E extends java.lang.Exception> T visit​(GeometryVisitor<T,​E> visitor) throws E extends java.lang.Exception
      Specified by:
      visit in interface Geometry
      Overrides:
      visit in class Line
      Throws:
      E extends java.lang.Exception
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class Line