|
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
public abstract class IfxSurface
IfxSurface is an abstract class that does a partial implementation of two dimensional geometric objects.
IfxGeometry
,
Surface
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 Surface, as measured in the spatial reference system of this Surface. |
Point |
centroid()
The mathematical centroid for this Surface as a Point. |
int |
dimension()
Returns the dimension of this geometry object. |
java.lang.String |
geometryType()
Gets the most appropriate OGC geometry interface type for this object. |
double |
length()
Returns the length of this object. |
double |
perimeter()
Returns the perimeter of this object, as measured in the associated spatial reference system. |
Point |
pointOnSurface()
Returns a point guaranteed to be on this Surface. |
Methods inherited from class com.ibm.spatial.geom.IfxMultiCoord |
---|
equals, getLabelPoint, is3D, isEmpty, isMeasured, numParts, numPoints, numPoints, numSubParts, 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.Geometry |
---|
asBinary, asText, boundary, buffer, contains, convexHull, crosses, difference, disjoint, distance, envelope, envelopesIntersect, equals, extent, exterior, interior, intersection, intersects, is3D, isEmpty, isMeasured, isSimple, isValid, locateAlong, locateBetween, numPoints, overlaps, srid, symmetricDiff, touches, union, within |
Method Detail |
---|
public double area()
area
in interface Surface
area
in class IfxGeometry
public Point centroid() throws SpatialException
The Surface interface specifies that the result of this method is not guaranteed to be on this Surface. This implementation calls getLabelPoint.
centroid
in interface Surface
SpatialException
- if an error occurs during the calculation
of the centroid point coordinatesIfxMultiCoord.getLabelPoint(com.ibm.spatial.geom.CoordPoint)
public double perimeter()
The perimeter is defined as the sum of the lengths of all boundary components.
perimeter
in interface Surface
perimeter
in class IfxMultiCoord
IfxMultiCoord.length()
public Point pointOnSurface() throws SpatialException
This implementation calculates the point by calling the centroid method. If implementations of centroid() in derived classes do not guarantee that the result is on this Surface, then this method should be overridden.
pointOnSurface
in interface Surface
SpatialException
- if an error occurs during the calculation
of the point coordinatesIfxMultiCoord.getLabelPoint(com.ibm.spatial.geom.CoordPoint)
public java.lang.String geometryType()
geometryType
in class IfxGeometry
public double length()
length
in class IfxMultiCoord
public int dimension()
Returns the dimension of this geometry object. A geometry's dimension can be:
dimension
in interface Geometry
dimension
in class IfxGeometry
|
Spatial DataBlade JAVA API v8.21 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |