Class Point

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

public class Point
extends java.lang.Object
implements Geometry
Represents a Point on the earth's surface in decimal degrees and optional altitude in meters.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static Point EMPTY  
  • Constructor Summary

    Constructors 
    Constructor Description
    Point​(double x, double y)  
    Point​(double x, double y, double z)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)  
    double getAlt()  
    double getLat()  
    double getLon()  
    double getX()  
    double getY()  
    double getZ()  
    int hashCode()  
    boolean hasZ()  
    boolean isEmpty()  
    java.lang.String toString()  
    ShapeType type()  
    <T,​ E extends java.lang.Exception>
    T
    visit​(GeometryVisitor<T,​E> visitor)  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.elasticsearch.geometry.Geometry

    hasAlt
  • Field Details

  • Constructor Details

    • Point

      public Point​(double x, double y)
    • Point

      public Point​(double x, double y, double z)
  • Method Details

    • type

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

      public double getY()
    • getX

      public double getX()
    • getZ

      public double getZ()
    • getLat

      public double getLat()
    • getLon

      public double getLon()
    • getAlt

      public double getAlt()
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • 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
      Throws:
      E extends java.lang.Exception
    • isEmpty

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

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

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