Package org.elasticsearch.geometry
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
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)doublegetAlt()doublegetLat()doublegetLon()doublegetX()doublegetY()doublegetZ()inthashCode()booleanhasZ()booleanisEmpty()java.lang.StringtoString()ShapeTypetype()<T, E extends java.lang.Exception>
Tvisit(GeometryVisitor<T,E> visitor)Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
EMPTY
-
-
Constructor Details
-
Point
public Point(double x, double y) -
Point
public Point(double x, double y, double z)
-
-
Method Details
-
type
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
visit
public <T, E extends java.lang.Exception> T visit(GeometryVisitor<T,E> visitor) throws E extends java.lang.Exception -
isEmpty
public boolean isEmpty() -
hasZ
public boolean hasZ() -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-