java.lang.Object
org.elasticsearch.geometry.Line
- All Implemented Interfaces:
Geometry
- Direct Known Subclasses:
LinearRing
Represents a Line on the earth's surface in lat/lon decimal degrees and optional altitude in meters.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
double
getAlt
(int i) double[]
getAlts()
double
getLat
(int i) double[]
getLats()
double
getLon
(int i) double[]
getLons()
double[]
getX()
double
getX
(int i) double[]
getY()
double
getY
(int i) double[]
getZ()
double
getZ
(int i) int
hashCode()
boolean
hasZ()
boolean
isEmpty()
int
length()
toString()
type()
<T,
E extends Exception>
Tvisit
(GeometryVisitor<T, E> visitor)
-
Field Details
-
EMPTY
-
-
Constructor Details
-
Line
protected Line() -
Line
public Line(double[] x, double[] y) -
Line
public Line(double[] x, double[] y, double[] z)
-
-
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
-
isEmpty
public boolean isEmpty() -
equals
-
hashCode
public int hashCode() -
hasZ
public boolean hasZ() -
toString
-