20 #ifndef GEOS_GEOS_GEOMETRYCOLLECTION_H
21 #define GEOS_GEOS_GEOMETRYCOLLECTION_H
23 #include <geos/export.h>
24 #include <geos/geom/Geometry.h>
26 #include <geos/geom/Envelope.h>
27 #include <geos/geom/Dimension.h>
29 #include <geos/inline.h>
39 class CoordinateArraySequence;
40 class CoordinateSequenceFilter;
61 typedef std::vector<Geometry *>::const_iterator const_iterator;
63 typedef std::vector<Geometry *>::iterator iterator;
65 const_iterator begin()
const;
67 const_iterator end()
const;
96 virtual bool isEmpty()
const;
108 virtual int getCoordinateDimension()
const;
110 virtual Geometry* getBoundary()
const;
117 virtual int getBoundaryDimension()
const;
119 virtual std::size_t getNumPoints()
const;
121 virtual std::string getGeometryType()
const;
125 virtual bool equalsExact(
const Geometry *other,
126 double tolerance=0)
const;
144 virtual void normalize();
146 virtual const Coordinate* getCoordinate()
const;
149 virtual double getArea()
const;
152 virtual double getLength()
const;
155 virtual std::size_t getNumGeometries()
const;
158 virtual const Geometry* getGeometryN(std::size_t n)
const;
191 std::vector<Geometry *>* geometries;
193 Envelope::AutoPtr computeEnvelopeInternal()
const;
195 int compareToSameClass(
const Geometry *gc)
const;
203 # include "geos/geom/GeometryCollection.inl"
206 #endif // ndef GEOS_GEOS_GEOMETRYCOLLECTION_H
Geometry classes support the concept of applying a Geometry filter to the Geometry.
Definition: GeometryFilter.h:48
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
Definition: CoordinateSequenceFilter.h:58
GeometryTypeId
Geometry types.
Definition: Geometry.h:65
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:167
virtual Geometry * clone() const
Definition: GeometryCollection.h:75
Definition: CoordinateFilter.h:43
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:67
Represents a collection of heterogeneous Geometry objects.
Definition: GeometryCollection.h:56
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:59
DimensionType
Definition: Dimension.h:31
Definition: GeometryComponentFilter.h:43