|
Spatial DataBlade JAVA API v8.21 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LineString
A LineString is a Curve with linear interpolation between points. Each consecutive pair of points defines a line segment.
This interface extends the OGC Simple Features Specification with convenience methods to provide access to the vertices of a LineString.
Geometry
,
Curve
,
MultiLineString
Method Summary | |
---|---|
void |
getPointAt(CoordPoint p,
int index)
Returns the vertex at the specified position in this geometry. |
CoordPoint |
getPointAt(int index)
Returns the vertex at the specified position in this LineString. |
int |
numPoints()
Returns the number of points in this LineString. |
Point |
pointN(int index)
Returns the vertex at the specified position in this LineString. |
Methods inherited from interface com.ibm.spatial.geom.Curve |
---|
endPoint, endPoint, isClosed, isRing, length, startPoint, startPoint, value |
Methods inherited from interface com.ibm.spatial.geom.Geometry |
---|
asBinary, asText, boundary, buffer, contains, convexHull, crosses, difference, dimension, disjoint, distance, envelope, envelopesIntersect, equals, extent, exterior, interior, intersection, intersects, is3D, isEmpty, isMeasured, isSimple, isValid, locateAlong, locateBetween, overlaps, srid, symmetricDiff, touches, union, within |
Method Detail |
---|
int numPoints()
numPoints
in interface Geometry
Point pointN(int index)
index
- index of the point to return
SpatialException
- if the index is out of range (index
< 0 || index >= numPoints()).getPointAt(int)
CoordPoint getPointAt(int index)
index
- index of element to return.
SpatialException
- if the index is out of range (index
< 0 || index >= numPoints()).pointN(int)
void getPointAt(CoordPoint p, int index)
p
- placeholder for the coordinates to be returnedindex
- index of the element to return
SpatialException
- if the index offset
is out of range (offset < 0 || offset >= numPoints()).Geometry.numPoints()
|
Spatial DataBlade JAVA API v8.21 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |