|
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.IfxGeometryCollection
com.ibm.spatial.geom.IfxMultiPolygon
public class IfxMultiPolygon
IfxMultiPolygon implements the MultiPolygon interface.
MultiPolygon
,
IfxGeometryCollection
Field Summary |
---|
Fields inherited from class com.ibm.spatial.geom.IfxGeometry |
---|
COORD_M, COORD_XY, COORD_Z |
Method Summary | |
---|---|
Point |
centroid()
The mathematical centroid for this MultiSurface. |
boolean |
equals(java.lang.Object anObject)
Compares this object to the specified object. |
java.lang.String |
geometryType()
Gets the most appropriate OGC geometry interface type for this object. |
double |
length()
Returns the length of a MultiPolygon, that is 0. |
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 associated spatial reference system. |
Point |
pointOnSurface()
A Point guaranteed to be on this object. |
Methods inherited from class com.ibm.spatial.geom.IfxGeometryCollection |
---|
area, dimension, geometryN, numGeometries, numPoints, numPoints, toArray, toCoordArray, toPointArray |
Methods inherited from class com.ibm.spatial.geom.IfxMultiCoord |
---|
getLabelPoint, is3D, isEmpty, isMeasured |
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.MultiSurface |
---|
area |
Methods inherited from interface com.ibm.spatial.geom.GeometryCollection |
---|
geometryN, numGeometries |
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 Point centroid() throws SpatialException
centroid
in interface MultiSurface
SpatialException
- if an error occurs during the calculation
of the centroid point coordinatespublic Point pointOnSurface() throws SpatialException
pointOnSurface
in interface MultiSurface
SpatialException
- if an error occurs during the calculation
of the point coordinatespublic java.lang.String geometryType()
geometryType
in class IfxGeometryCollection
public boolean equals(java.lang.Object anObject)
equals
in interface Geometry
equals
in class IfxGeometryCollection
anObject
- the object to compare this object
against.
public double length()
length
in class IfxMultiCoord
public double perimeter()
The perimeter is defined as the sum of the lengths of all boundary components.
perimeter
in interface MultiSurface
perimeter
in class IfxMultiCoord
IfxMultiCoord.length()
public int numParts()
numParts
in class IfxGeometryCollection
IfxGeometry.numParts()
public int numSubParts(int part)
numSubParts
in class IfxGeometryCollection
part
- part index
java.lang.IndexOutOfBoundsException
- - 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 |