Package com.esri.core.geometry.ogc
Class OGCLineString
- java.lang.Object
-
- com.esri.core.geometry.ogc.OGCGeometry
-
- com.esri.core.geometry.ogc.OGCCurve
-
- com.esri.core.geometry.ogc.OGCLineString
-
- Direct Known Subclasses:
OGCLinearRing
public class OGCLineString extends OGCCurve
-
-
Field Summary
Fields Modifier and Type Field Description (package private) MultiPath
multiPath
static java.lang.String
TYPE
-
Fields inherited from class com.esri.core.geometry.ogc.OGCGeometry
esriSR
-
-
Constructor Summary
Constructors Constructor Description OGCLineString(MultiPath mp, int pathIndex, SpatialReference sr)
OGCLineString(MultiPath mp, int pathIndex, SpatialReference sr, boolean reversed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffer
asBinary()
java.lang.String
asText()
OGCGeometry
convertToMulti()
Converts this Geometry to the OGCMulti* if it is not OGCMulti* or OGCGeometryCollection already.OGCPoint
endPoint()
long
estimateMemorySize()
Returns an estimate of this object size in bytes.java.lang.String
geometryType()
Geometry
getEsriGeometry()
boolean
isClosed()
double
length()
OGCGeometry
locateAlong(double mValue)
OGCGeometry
locateBetween(double mStart, double mEnd)
int
numPoints()
The number of Points in this LineString.OGCPoint
pointN(int n)
Returns the specified Point N in this LineString.OGCGeometry
reduceFromMulti()
For the geometry collection types, when it has 1 or 0 elements, converts a MultiPolygon to Polygon, MultiPoint to Point, MultiLineString to a LineString, and OGCConcretGeometryCollection to the reduced element it contains.OGCPoint
startPoint()
-
Methods inherited from class com.esri.core.geometry.ogc.OGCGeometry
asGeoJson, asGeoJsonImpl, asJson, buffer, centroid, contains, convexHull, coordinateDimension, createFromEsriCursor, createFromEsriCursor, createFromEsriGeometry, createFromEsriGeometry, createFromOGCStructure, crosses, difference, dimension, disjoint, distance, envelope, equals, equals, Equals, fromBinary, fromEsriShape, fromGeoJson, fromJson, fromText, getEsriGeometryCursor, getEsriSpatialReference, hashCode, intersection, intersects, is3D, isConcreteGeometryCollection, isEmpty, isMeasured, isSimple, isSimpleRelaxed, makeSimple, makeSimpleRelaxed, MakeSimpleRelaxed, MaxMeasure, MaxZ, MinMeasure, MinZ, overlaps, relate, setSpatialReference, SRID, symDifference, toString, touches, union, within
-
-
-
-
Field Detail
-
TYPE
public static java.lang.String TYPE
-
multiPath
MultiPath multiPath
-
-
Constructor Detail
-
OGCLineString
public OGCLineString(MultiPath mp, int pathIndex, SpatialReference sr)
-
OGCLineString
public OGCLineString(MultiPath mp, int pathIndex, SpatialReference sr, boolean reversed)
-
-
Method Detail
-
numPoints
public int numPoints()
The number of Points in this LineString.
-
asText
public java.lang.String asText()
- Overrides:
asText
in classOGCGeometry
-
asBinary
public java.nio.ByteBuffer asBinary()
- Overrides:
asBinary
in classOGCGeometry
-
pointN
public OGCPoint pointN(int n)
Returns the specified Point N in this LineString.- Parameters:
n
- The 0 based index of the Point.
-
startPoint
public OGCPoint startPoint()
- Specified by:
startPoint
in classOGCCurve
-
geometryType
public java.lang.String geometryType()
- Specified by:
geometryType
in classOGCGeometry
-
estimateMemorySize
public long estimateMemorySize()
Description copied from class:OGCGeometry
Returns an estimate of this object size in bytes.This estimate doesn't include the size of the
SpatialReference
object because instances ofSpatialReference
are expected to be shared among geometry objects.- Specified by:
estimateMemorySize
in classOGCGeometry
- Returns:
- Returns an estimate of this object size in bytes.
-
locateAlong
public OGCGeometry locateAlong(double mValue)
- Specified by:
locateAlong
in classOGCGeometry
-
locateBetween
public OGCGeometry locateBetween(double mStart, double mEnd)
- Specified by:
locateBetween
in classOGCGeometry
-
getEsriGeometry
public Geometry getEsriGeometry()
- Specified by:
getEsriGeometry
in classOGCGeometry
-
convertToMulti
public OGCGeometry convertToMulti()
Description copied from class:OGCGeometry
Converts this Geometry to the OGCMulti* if it is not OGCMulti* or OGCGeometryCollection already.- Specified by:
convertToMulti
in classOGCGeometry
- Returns:
- OGCMulti* or OGCGeometryCollection instance.
-
reduceFromMulti
public OGCGeometry reduceFromMulti()
Description copied from class:OGCGeometry
For the geometry collection types, when it has 1 or 0 elements, converts a MultiPolygon to Polygon, MultiPoint to Point, MultiLineString to a LineString, and OGCConcretGeometryCollection to the reduced element it contains. If OGCConcretGeometryCollection is empty, returns self.- Specified by:
reduceFromMulti
in classOGCGeometry
- Returns:
- A reduced geometry or this.
-
-