Class Circle

  • All Implemented Interfaces:

    public class Circle
    extends java.lang.Object
    implements Geometry
    Circle geometry (not part of WKT standard, but used in elasticsearch) defined by lat/lon coordinates of the center in degrees and optional altitude in meters.
    • Field Summary

      Modifier and Type Field Description
      static Circle EMPTY  
    • Constructor Summary

      Constructor Description
      Circle​(double x, double y, double radiusMeters)  
      Circle​(double x, double y, double z, double radiusMeters)  
    • Method Summary

      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      double getAlt()  
      double getLat()  
      double getLon()  
      double getRadiusMeters()  
      double getX()  
      double getY()  
      double getZ()  
      int hashCode()  
      boolean hasZ()  
      boolean isEmpty()  
      java.lang.String toString()  
      ShapeType type()  
      <T,​E extends java.lang.Exception>
      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

    • Field Detail

      • EMPTY

        public static final Circle EMPTY
    • Constructor Detail

      • Circle

        public Circle​(double x,
                      double y,
                      double radiusMeters)
      • Circle

        public Circle​(double x,
                      double y,
                      double z,
                      double radiusMeters)
    • Method Detail

      • getY

        public double getY()
      • getX

        public double getX()
      • getRadiusMeters

        public double getRadiusMeters()
      • getZ

        public double getZ()
      • getLat

        public double getLat()
      • getLon

        public double getLon()
      • getAlt

        public double getAlt()
      • equals

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

        public int hashCode()
        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
        E extends java.lang.Exception
      • isEmpty

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

        public java.lang.String toString()
        toString in class java.lang.Object
      • hasZ

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