Package org.elasticsearch.geometry
Class LinearRing
java.lang.Object
org.elasticsearch.geometry.Line
org.elasticsearch.geometry.LinearRing
- All Implemented Interfaces:
Geometry
public class LinearRing extends Line
Represents a closed line on the earth's surface in lat/lon decimal degrees and optional altitude in meters.
Cannot be serialized by WKT directly but used as a part of polygon
-
Field Summary
Fields Modifier and Type Field Description static LinearRing
EMPTY
-
Constructor Summary
Constructors Constructor Description LinearRing(double[] x, double[] y)
LinearRing(double[] x, double[] y, double[] z)
-
Method Summary
Modifier and Type Method Description java.lang.String
toString()
ShapeType
type()
<T, E extends java.lang.Exception>
Tvisit(GeometryVisitor<T,E> visitor)
Methods inherited from class org.elasticsearch.geometry.Line
equals, getAlt, getAlts, getLat, getLats, getLon, getLons, getX, getX, getY, getY, getZ, getZ, hashCode, hasZ, isEmpty, length
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
EMPTY
-
-
Constructor Details
-
LinearRing
public LinearRing(double[] x, double[] y) -
LinearRing
public LinearRing(double[] x, double[] y, double[] z)
-
-
Method Details
-
type
-
visit
public <T, E extends java.lang.Exception> T visit(GeometryVisitor<T,E> visitor) throws E extends java.lang.Exception -
toString
public java.lang.String toString()
-