|
Spatial DataBlade JAVA API v8.21 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.spatial.geom.IfxGeometry
com.ibm.spatial.geom.IfxMultiCoord
com.ibm.spatial.geom.IfxLineString
public class IfxLineString
IfxLineString implements the LineString interface.
IfxGeometry,
LineString| Field Summary |
|---|
| Fields inherited from class com.ibm.spatial.geom.IfxGeometry |
|---|
COORD_M, COORD_XY, COORD_Z |
| Method Summary | |
|---|---|
int |
dimension()
Returns the dimension of this geometry object. |
Point |
endPoint()
Returns the end point of a LineString. |
void |
endPoint(CoordPoint point)
Copy the coordinates of the last point of this curve into the specified argument point. |
boolean |
equals(java.lang.Object anObject)
Compares this IfxLineString to the specified object. |
java.lang.String |
geometryType()
Gets the most appropriate OGC geometry interface type for this object. |
void |
getPointAt(CoordPoint p,
int index)
Returns the point at the specified position in this geometry. |
CoordPoint |
getPointAt(int index)
Returns the point at the specified position in this geometry. |
boolean |
isClosed()
Tests whether this LineString is closed, that is, its start point is equal to its end point. |
boolean |
isRing()
Tests whether this LineString is a ring (is closed and simple). |
java.util.ListIterator |
iterator()
Returns a list of CoordPoints iterator of the vertices in this LineString. |
java.util.ListIterator |
iterator(int index)
Returns a list of CoordPoints iterator of the vertices in this LineString (in proper sequence), starting at the specified position. |
int |
numParts()
Returns the number of parts of this object. |
int |
numSubParts(int part)
Returns the number of subparts in the specified part. |
double |
perimeter()
Returns the perimeter of this object, as measured in the spatial reference system of this object. |
Point |
pointN(int index)
Returns the vertex at the specified position in this LineString. |
Point |
startPoint()
Returns the start point of this LineString. |
void |
startPoint(CoordPoint point)
Copy the coordinates of the first point of this curve into the specified argument point. |
Point |
value(double r)
Returns the point located r coordinate units along the Curve from the start point. |
| Methods inherited from class com.ibm.spatial.geom.IfxMultiCoord |
|---|
getLabelPoint, is3D, isEmpty, isMeasured, length, numPoints, numPoints, toCoordArray, toPointArray |
| Methods inherited from class com.ibm.spatial.geom.IfxGeometry |
|---|
area, asBinary, asText, boundary, buffer, clone, contains, convexHull, crosses, difference, disjoint, distance, envelope, envelopesIntersect, extent, exterior, getCoordinateDimension, getDimensionality, getLabelPoint, getOGCType, interior, intersection, intersects, isSimple, isValid, locateAlong, locateBetween, overlaps, srid, symmetricDiff, toString, touches, union, within |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.ibm.spatial.geom.LineString |
|---|
numPoints |
| Methods inherited from interface com.ibm.spatial.geom.Curve |
|---|
length |
| Methods inherited from interface com.ibm.spatial.geom.Geometry |
|---|
asBinary, asText, boundary, buffer, contains, convexHull, crosses, difference, disjoint, distance, envelope, envelopesIntersect, extent, exterior, interior, intersection, intersects, is3D, isEmpty, isMeasured, isSimple, isValid, locateAlong, locateBetween, overlaps, srid, symmetricDiff, touches, union, within |
| Method Detail |
|---|
public Point pointN(int index)
pointN in interface LineStringindex - index of the point to return
java.lang.IndexOutOfBoundsException - if the index is out of range
(index < 0 || index >= numPoints()).getPointAt(int)public CoordPoint getPointAt(int index)
getPointAt in interface LineStringindex - index of element to return
java.lang.IndexOutOfBoundsException - if the index offset
is out of range (offset < 0 || offset >= numPoints())
java.lang.NullPointerException - if p is nullgetPointAt(CoordPoint p, int index)
public void getPointAt(CoordPoint p,
int index)
getPointAt in interface LineStringp - placeholder for the coordinates to be returnedindex - index of the element to return
java.lang.IndexOutOfBoundsException - if the index offset
is out of range (offset < 0 || offset >= numPoints())
java.lang.NullPointerException - if p is nullIfxMultiCoord.numPoints(),
getPointAt(int index)public void startPoint(CoordPoint point)
startPoint in interface Curvepoint - the CoordPoint to be filled in with the coordinates of
the first point of this curve. Set the argument
to an empty CoordPoint if this linestring is empty.public void endPoint(CoordPoint point)
endPoint in interface Curvepoint - the CoordPoint to be filled in with the coordinates of
the last point of this curve. Set the argument
to an empty CoordPoint if this linestring is empty.CoordPointpublic Point startPoint()
startPoint in interface Curvepublic Point endPoint()
endPoint in interface Curvepublic boolean isClosed()
isClosed in interface Curvepublic boolean isRing()
isRing in interface Curvepublic Point value(double r)
value in interface Curver - length of the curve between the start point and the
point to be returned
public int dimension()
Returns the dimension of this geometry object. A geometry's dimension can be:
dimension in interface Geometrydimension in class IfxGeometrypublic boolean equals(java.lang.Object anObject)
The coordinates are compared within the precision specified by this object's SRS.
equals in interface Geometryequals in class IfxMultiCoordanObject - the object to compare this IfxLineString
against.
public java.lang.String geometryType()
geometryType in class IfxGeometrypublic double perimeter()
This implementation returns 0.
perimeter in class IfxMultiCoordIfxMultiCoord.length()public int numParts()
numParts in class IfxMultiCoordpublic int numSubParts(int part)
numSubParts in class IfxMultiCoordpart - part index
java.lang.IndexOutOfBoundsException - - for non-empty geometries,
if the given part index is out of range
(part < 0 || part >= numParts()).numParts()public java.util.ListIterator iterator()
iterator(int)public java.util.ListIterator iterator(int index)
This implementation returns a straightforward implementation of the ListIterator interface that extends the implementation of the Iterator interface returned by the iterator() method. The ListIterator implementation relies on the backing getPointAt(int) method.
Note that the list iterator returned by this implementation will throw a UnsupportedOperationException in response to its remove, set and add methods.
index - index of the first CoordPoint to be returned
from the iterator (by a call to the
getPointAt(int index) method).
java.lang.IndexOutOfBoundsException - if the specified index is out of
range (index < 0 || index > numPoints()).
|
Spatial DataBlade JAVA API v8.21 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||