oracle.sdoapi.geom
Interface GeometryCollection
- All Superinterfaces:
- java.lang.Cloneable, Geometry, java.io.Serializable
- All Known Subinterfaces:
- MultiCurve, MultiCurvePolygon, MultiCurveString, MultiLineString, MultiPoint, MultiPolygon, MultiSurface
- public interface GeometryCollection
- extends Geometry
GeometryCollection is an interface that represents a geometry collection as
specified by the OGC. A geometry collection may contain any combination of valid
geometric objects, and it is sometimes called a heterogeneous geometry
collection.
Methods inherited from interface oracle.sdoapi.geom.Geometry |
clone, getAllIsolatedPoints, getAllSegments, getCoordinateDimension, getDimensionality, getEnvelope, getGeometryType, getLabelPoint, getLabelPoint, getSpatialReference, isEmpty, isSimple, isValid, linearize |
getNumGeometries
public int getNumGeometries()
- Gets the number of geometric objects in this collection.
- Returns:
- the number of geometric objects in this collection
getGeometries
public java.util.Enumeration getGeometries()
- Gets an enumeration of all geometric objects in this collection.
- Returns:
- an enumeration of all geometric objects in this collection
getGeometryArray
public Geometry[] getGeometryArray()
- Gets an array of all geometric objects in this collection.
- Returns:
- an array of all geometric objects in this collection
getGeometryAt
public Geometry getGeometryAt(int i)
- Gets the i-th geometry object in this collection.
- Parameters:
i
- the index of the geometry object (starting from 0)- Returns:
- the i-th geometry object in this collection