oracle.sdoapi.geom
Interface Surface

All Superinterfaces:
java.lang.Cloneable, Geometry, java.io.Serializable
All Known Subinterfaces:
CurvePolygon, Polygon

public interface Surface
extends Geometry

Surface is an interface that represents an OGC-specified geometry surface, which is an arbitrary 2-dimensional geometric object.


Method Summary
 double area()
          Computes the area of this surface, as measured in this geometry's coordinate system.
 CoordPoint centroid()
          Computes the centroid of this surface, as measured in this geometry's coordinate system.
 void centroid(CoordPoint point)
          Computes the centroid of this surface, as measured in this geometry's coordinate system.
 double perimeter()
          Computes the perimeter of this surface, as measured in this geometry's coordinate system.
 
Methods inherited from interface oracle.sdoapi.geom.Geometry
clone, getAllIsolatedPoints, getAllSegments, getCoordinateDimension, getDimensionality, getEnvelope, getGeometryType, getLabelPoint, getLabelPoint, getSpatialReference, isEmpty, isSimple, isValid, linearize
 

Method Detail

area

public double area()
Computes the area of this surface, as measured in this geometry's coordinate system.
Returns:
area of this surface

perimeter

public double perimeter()
Computes the perimeter of this surface, as measured in this geometry's coordinate system.
Returns:
perimeter of this surface

centroid

public CoordPoint centroid()
Computes the centroid of this surface, as measured in this geometry's coordinate system. The result will be a mathematical centroid, and is not guaranteed to be on this surface.
Returns:
mathematical centroid of this surface

centroid

public void centroid(CoordPoint point)
Computes the centroid of this surface, as measured in this geometry's coordinate system. The result will be a mathematical centroid, and is not guaranteed to be on this surface collection.
Parameters:
point - a preallocated coordinate point that is to be filled with the coordinates of the mathematical centroid of this surface