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
-
Field Summary
FieldsFields inherited from class OGCGeometry
esriSR -
Constructor Summary
ConstructorsConstructorDescriptionOGCLineString(MultiPath mp, int pathIndex, SpatialReference sr) OGCLineString(MultiPath mp, int pathIndex, SpatialReference sr, boolean reversed) -
Method Summary
Modifier and TypeMethodDescriptionasBinary()asText()Converts this Geometry to the OGCMulti* if it is not OGCMulti* or OGCGeometryCollection already.endPoint()longReturns an estimate of this object size in bytes.booleanisClosed()doublelength()locateAlong(double mValue) locateBetween(double mStart, double mEnd) intThe number of Points in this LineString.pointN(int n) Returns the specified Point N in this LineString.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.Methods inherited from class 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 Details
-
TYPE
-
multiPath
MultiPath multiPath
-
-
Constructor Details
-
OGCLineString
-
OGCLineString
-
-
Method Details
-
numPoints
public int numPoints()The number of Points in this LineString. -
asText
- Overrides:
asTextin classOGCGeometry
-
asBinary
- Overrides:
asBinaryin classOGCGeometry
-
pointN
Returns the specified Point N in this LineString.- Parameters:
n- The 0 based index of the Point.
-
isClosed
-
length
-
startPoint
- Specified by:
startPointin classOGCCurve
-
endPoint
-
geometryType
- Specified by:
geometryTypein classOGCGeometry
-
estimateMemorySize
public long estimateMemorySize()Description copied from class:OGCGeometryReturns an estimate of this object size in bytes.This estimate doesn't include the size of the
SpatialReferenceobject because instances ofSpatialReferenceare expected to be shared among geometry objects.- Specified by:
estimateMemorySizein classOGCGeometry- Returns:
- Returns an estimate of this object size in bytes.
-
locateAlong
- Specified by:
locateAlongin classOGCGeometry
-
locateBetween
- Specified by:
locateBetweenin classOGCGeometry
-
getEsriGeometry
- Specified by:
getEsriGeometryin classOGCGeometry
-
convertToMulti
Description copied from class:OGCGeometryConverts this Geometry to the OGCMulti* if it is not OGCMulti* or OGCGeometryCollection already.- Specified by:
convertToMultiin classOGCGeometry- Returns:
- OGCMulti* or OGCGeometryCollection instance.
-
reduceFromMulti
Description copied from class:OGCGeometryFor 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:
reduceFromMultiin classOGCGeometry- Returns:
- A reduced geometry or this.
-