Class Line

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

public class Line extends Object implements Geometry
Represents a Line on the earth's surface in lat/lon decimal degrees and optional altitude in meters.
  • Field Details

    • EMPTY

      public static final Line EMPTY
  • Constructor Details

    • Line

      protected Line()
    • Line

      public Line(double[] x, double[] y)
    • Line

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

    • length

      public int length()
    • getY

      public double getY(int i)
    • getX

      public double getX(int i)
    • getZ

      public double getZ(int i)
    • getY

      public double[] getY()
    • getX

      public double[] getX()
    • getZ

      public double[] getZ()
    • getLat

      public double getLat(int i)
    • getLon

      public double getLon(int i)
    • getAlt

      public double getAlt(int i)
    • getLats

      public double[] getLats()
    • getLons

      public double[] getLons()
    • getAlts

      public double[] getAlts()
    • type

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

      public <T, E extends Exception> T visit(GeometryVisitor<T,E> visitor) throws E
      Specified by:
      visit in interface Geometry
      Throws:
      E extends Exception
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Geometry
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • hasZ

      public boolean hasZ()
      Specified by:
      hasZ in interface Geometry
    • toString

      public String toString()
      Overrides:
      toString in class Object