Package org.elasticsearch.geometry
Class Line
java.lang.Object
org.elasticsearch.geometry.Line
- All Implemented Interfaces:
Geometry
- Direct Known Subclasses:
LinearRing
public class Line extends java.lang.Object implements Geometry
Represents a Line on the earth's surface in lat/lon decimal degrees and optional altitude in meters.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)doublegetAlt(int i)double[]getAlts()doublegetLat(int i)double[]getLats()doublegetLon(int i)double[]getLons()double[]getX()doublegetX(int i)double[]getY()doublegetY(int i)double[]getZ()doublegetZ(int i)inthashCode()booleanhasZ()booleanisEmpty()intlength()java.lang.StringtoString()ShapeTypetype()<T, E extends java.lang.Exception>
Tvisit(GeometryVisitor<T,E> visitor)
-
Field Details
-
Constructor Details
-
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
-
visit
public <T, E extends java.lang.Exception> T visit(GeometryVisitor<T,E> visitor) throws E extends java.lang.Exception -
isEmpty
public boolean isEmpty() -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
hasZ
public boolean hasZ() -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-