Class Circle

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

public class Circle extends 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 Details

    • EMPTY

      public static final Circle EMPTY
  • Constructor Details

    • Circle

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

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

    • type

      public ShapeType type()
      Specified by:
      type in interface Geometry
    • 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(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hasZ

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