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 Object implements Geometry
Represents a Line on the earth's surface in lat/lon decimal degrees and optional altitude in meters.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(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()StringtoString()ShapeTypetype()<T,E extends Exception>
Tvisit(GeometryVisitor<T,E> visitor)
-
-
-
Field Detail
-
EMPTY
public static final Line EMPTY
-
-
Method Detail
-
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()
-
visit
public <T,E extends Exception> T visit(GeometryVisitor<T,E> visitor) throws E extends Exception
-
-