Spatial DataBlade
JAVA API v8.21

com.ibm.spatial.geom
Interface GeometryCollection

All Superinterfaces:
Geometry
All Known Subinterfaces:
MultiCurve, MultiLineString, MultiPoint, MultiPolygon, MultiSurface
All Known Implementing Classes:
IfxGeometryCollection, IfxMultiLineString, IfxMultiPoint, IfxMultiPolygon

public interface GeometryCollection
extends Geometry

A GeometryCollection is a geometry that is a collection of 1 or more geometries. All the elements in a GeometryCollection must be defined in the same spatial reference, which is also the spatial reference of this GeometryCollection.

GeometryCollection places no other constraints on its elements. Subclasses of GeometryCollection may restrict membership based on dimension and may also place other constraints.


Method Summary
 Geometry geometryN(int index)
          Returns the Geometry at the specified position in this collection.
 int numGeometries()
          Returns the number of Geometries in this collection.
 
Methods inherited from interface com.ibm.spatial.geom.Geometry
asBinary, asText, boundary, buffer, contains, convexHull, crosses, difference, dimension, 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

geometryN

Geometry geometryN(int index)
                   throws SpatialException
Returns the Geometry at the specified position in this collection.

Parameters:
index - index of element to return.
Returns:
the Geometry at the specified position in this collection.
Throws:
java.lang.IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= numGeometries()).
SpatialException - wrapping another exception

numGeometries

int numGeometries()
Returns the number of Geometries in this collection.

Returns:
the number of Geometries in this collection.

Spatial DataBlade
JAVA API v8.21


Licensed Materials - Property of IBM
Copyright IBM Corp. 2002, 2012 All Rights Reserved.