com.esri.core.geometry.ogc
Class OGCLineString

java.lang.Object
  extended by com.esri.core.geometry.ogc.OGCGeometry
      extended by com.esri.core.geometry.ogc.OGCCurve
          extended by com.esri.core.geometry.ogc.OGCLineString
Direct Known Subclasses:
OGCLinearRing

public class OGCLineString
extends OGCCurve


Field Summary
 
Fields inherited from class com.esri.core.geometry.ogc.OGCGeometry
esriSR
 
Constructor Summary
OGCLineString(MultiPath mp, int pathIndex, SpatialReference sr)
           
OGCLineString(MultiPath mp, int pathIndex, SpatialReference sr, boolean reversed)
           
 
Method Summary
 ByteBuffer asBinary()
           
 String asText()
           
 OGCPoint endPoint()
           
 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.
 OGCPoint startPoint()
           
 
Methods inherited from class com.esri.core.geometry.ogc.OGCCurve
boundary, isRing
 
Methods inherited from class com.esri.core.geometry.ogc.OGCGeometry
asGeoJson, buffer, contains, convexHull, coordinateDimension, createFromEsriCursor, createFromEsriCursor, createFromEsriGeometry, createFromEsriGeometry, createFromOGCStructure, crosses, difference, dimension, disjoint, distance, envelope, equals, fromBinary, fromEsriShape, fromGeoJson, fromJson, fromText, getEsriGeometryCursor, getEsriSpatialReference, intersection, intersects, is3D, isConcreteGeometryCollection, isEmpty, isMeasured, isSimple, isSimpleRelaxed, MakeSimpleRelaxed, MaxMeasure, MaxZ, MinMeasure, MinZ, overlaps, relate, setSpatialReference, SRID, symDifference, touches, union, within
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 String asText()
Overrides:
asText in class OGCGeometry

asBinary

public ByteBuffer asBinary()
Overrides:
asBinary in class OGCGeometry

pointN

public OGCPoint pointN(int n)
Returns the specified Point N in this LineString.

Parameters:
n - The 0 based index of the Point.

isClosed

public boolean isClosed()
Specified by:
isClosed in class OGCCurve

length

public double length()
Specified by:
length in class OGCCurve

startPoint

public OGCPoint startPoint()
Specified by:
startPoint in class OGCCurve

endPoint

public OGCPoint endPoint()
Specified by:
endPoint in class OGCCurve

geometryType

public String geometryType()
Specified by:
geometryType in class OGCGeometry

locateAlong

public OGCGeometry locateAlong(double mValue)
Specified by:
locateAlong in class OGCGeometry

locateBetween

public OGCGeometry locateBetween(double mStart,
                                 double mEnd)
Specified by:
locateBetween in class OGCGeometry

getEsriGeometry

public Geometry getEsriGeometry()
Specified by:
getEsriGeometry in class OGCGeometry


Copyright © 2013. All Rights Reserved.