oracle.sdoapi.geom
Interface CurvePolygon

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

public interface CurvePolygon
extends Surface

CurvePolygon is an interface that represents a generic curve polygon regardless of interpolation type (OGC polygon type is actually a special case of curve polygon with linear interpolation between points). This interface resembles Polygon in OGC and is an extension to the OGC simple feature geometry object model.

See Also:
Polygon

Method Summary
 CurveString getExteriorRing()
          Gets the exterior ring in this curve polygon.
 CurveString[] getInteriorRingArray()
          Gets an array of all interior rings in this curve polygon.
 java.util.Enumeration getInteriorRings()
          Gets an enumeration of all interior rings in this curve polygon.
 int getNumRings()
          Gets the number of rings in this curve polygon.
 CurveString[] getRingArray()
          Gets an array of all rings in this curve polygon.
 CurveString getRingAt(int i)
          Gets the i-th ring in this curve polygon.
 java.util.Enumeration getRings()
          Gets an enumeration of all rings in this curve polygon.
 
Methods inherited from interface oracle.sdoapi.geom.Surface
area, centroid, centroid, perimeter
 
Methods inherited from interface oracle.sdoapi.geom.Geometry
clone, getAllIsolatedPoints, getAllSegments, getCoordinateDimension, getDimensionality, getEnvelope, getGeometryType, getLabelPoint, getLabelPoint, getSpatialReference, isEmpty, isSimple, isValid, linearize
 

Method Detail

getExteriorRing

public CurveString getExteriorRing()
Gets the exterior ring in this curve polygon. The returned string must be closed and simple.
Returns:
the exterior ring in this curve polygon

getInteriorRings

public java.util.Enumeration getInteriorRings()
Gets an enumeration of all interior rings in this curve polygon.
Returns:
an enumeration of all interior rings in this curve polygon

getInteriorRingArray

public CurveString[] getInteriorRingArray()
Gets an array of all interior rings in this curve polygon.
Returns:
an array of all interior rings in this curve polygon

getNumRings

public int getNumRings()
Gets the number of rings in this curve polygon. numberOfRings = 1 + numberOfInteriorRings
Returns:
the number of rings in this curve polygon

getRings

public java.util.Enumeration getRings()
Gets an enumeration of all rings in this curve polygon. This is a convenient method to return both exterior and interior rings.
Returns:
an enumeration of all rings in this curve polygon

getRingArray

public CurveString[] getRingArray()
Gets an array of all rings in this curve polygon.
Returns:
an array of all rings in this curve polygon

getRingAt

public CurveString getRingAt(int i)
Gets the i-th ring in this curve polygon.
Parameters:
i - the index of the ring (0 means the exterior ring)
Returns:
the i-th ring of this curve polygon