#include <geos.h>
Inheritance diagram for geos::GeometryCollection:
Public Member Functions | |
GeometryCollection (vector< Geometry * > *newGeoms, const GeometryFactory *newFactory) | |
Construct a GeometryCollection with the given GeometryFactory. Will keep a reference to the factory, so don't delete it until al Geometry objects referring to it are deleted. Will take ownership of the Geometry vector. | |
virtual CoordinateSequence * | getCoordinates () const |
Collects all coordinates of all subgeometries into a CoordinateSequence. | |
virtual int | getDimension () const |
Returns the maximum dimension of geometries in this collection (0=point, 1=line, 2=surface). | |
virtual int | getBoundaryDimension () const |
Returns the maximum boundary dimension of geometries in this collection. | |
virtual double | getArea () const |
Returns the total area of this collection. | |
virtual double | getLength () const |
Returns the total length of this collection. | |
virtual int | getNumGeometries () const |
Returns the number of geometries in this collection. | |
virtual const Geometry * | getGeometryN (int n) const |
Returns a pointer to the nth Geometry int this collection. |
Collections of Geometry of the same type are represented by GeometryCollection subclasses MultiPoint, MultiLineString, MultiPolygon.
|
Construct a GeometryCollection with the given GeometryFactory. Will keep a reference to the factory, so don't delete it until al Geometry objects referring to it are deleted. Will take ownership of the Geometry vector.
If construction fails "IllegalArgumentException *" is thrown and it is your responsibility to delete newGeoms vector and content.
|
|
Returns the total area of this collection.
|
|
Collects all coordinates of all subgeometries into a CoordinateSequence. Note that the returned coordinates are copies, so you want be able to use them to modify the geometries in place. Also you'll need to delete the CoordinateSequence when finished using it.
|
|
Returns the total length of this collection.
|