|
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.IfxSurface
com.ibm.spatial.geom.IfxPolygon
public class IfxPolygon
IfxPolygon is a planar IfxSurface, defined by 1 exterior boundary and 0 or more interior boundaries, with linear interpolation between vertices. IfxPolygon implements the Polygon interface.
IfxGeometry,
Polygon| Field Summary |
|---|
| Fields inherited from class com.ibm.spatial.geom.IfxGeometry |
|---|
COORD_M, COORD_XY, COORD_Z |
| Method Summary | |
|---|---|
double |
area()
Returns the area of this object, as measured in the spatial reference system of this object. |
boolean |
equals(java.lang.Object anObject)
Compares this IfxPolygon to the specified object. |
LineString |
exteriorRing()
Returns the exterior ring of a Polygon. |
java.lang.String |
geometryType()
Gets the most appropriate OGC geometry interface type for this object. |
LineString |
interiorRingN(int index)
Returns the interior ring at the specified position in this Polygon. |
int |
numInteriorRings()
Returns the number of interior rings in this Polygon. |
int |
numParts()
Returns the number of parts of this object. |
int |
numSubParts(int part)
Returns the number of subparts in the specified part. |
| Methods inherited from class com.ibm.spatial.geom.IfxSurface |
|---|
centroid, dimension, length, perimeter, pointOnSurface |
| Methods inherited from class com.ibm.spatial.geom.IfxMultiCoord |
|---|
getLabelPoint, is3D, isEmpty, isMeasured, numPoints, numPoints, toCoordArray, toPointArray |
| Methods inherited from class com.ibm.spatial.geom.IfxGeometry |
|---|
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.Surface |
|---|
centroid, perimeter, pointOnSurface |
| Methods inherited from interface com.ibm.spatial.geom.Geometry |
|---|
asBinary, asText, boundary, buffer, contains, convexHull, crosses, difference, dimension, disjoint, distance, envelope, envelopesIntersect, extent, exterior, interior, intersection, intersects, is3D, isEmpty, isMeasured, isSimple, isValid, locateAlong, locateBetween, numPoints, overlaps, srid, symmetricDiff, touches, union, within |
| Method Detail |
|---|
public LineString exteriorRing()
exteriorRing in interface Polygonpublic LineString interiorRingN(int index)
interiorRingN in interface Polygonindex - index of element to return.
java.lang.IndexOutOfBoundsException - if the index is out of range (index
< 0 || index >= numInteriorRings()-1).numInteriorRings(),
LineStringpublic int numInteriorRings()
numInteriorRings in interface Polygonpublic double area()
area in interface Surfacearea in class IfxSurfacepublic java.lang.String geometryType()
geometryType in class IfxSurfacepublic 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 IfxPolygon
against.
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()
|
Spatial DataBlade JAVA API v8.21 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||