26 #ifndef __TERRALIB_GEOMETRY_INTERNAL_GEOMETRYCOLLECTION_H
27 #define __TERRALIB_GEOMETRY_INTERNAL_GEOMETRYCOLLECTION_H
87 GeometryCollection(
const GeometryCollection& rhs);
96 GeometryCollection& operator=(
const GeometryCollection& rhs);
99 virtual ~GeometryCollection();
142 virtual const std::string& getGeometryType()
const throw();
151 void setSRID(
int srid)
throw();
179 void computeMBR(
bool cascade)
const throw();
188 std::size_t getNPoints()
const throw();
207 const std::vector<Geometry*>&
getGeometries()
const {
return m_geometries; }
247 void setNumGeometries(std::size_t size);
258 Geometry* getGeometryN(std::size_t i)
const;
267 Geometry* getGeometryN(std::size_t i);
284 void setGeometryN(std::size_t i,
Geometry* g);
295 void removeGeometryN(std::size_t i);
331 #endif // __TERRALIB_GEOMETRY_INTERNAL_GEOMETRYCOLLECTION_H
std::size_t getNumGeometries() const
It returns the number of geometries in this GeometryCollection.
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
#define TEGEOMEXPORT
You can use this macro in order to export/import classes and functions from this module.
An Envelope defines a 2D rectangular region.
std::vector< Geometry * > m_geometries
The array of geometries that forms the collection.
Dimensionality
From Wikipedia: "in mathematics, the dimension of an object is an intrinsic property, independent of the space in which the object may happen to be embedded".
A base class for values that can be retrieved from the data access module.
#define TE_DEFINE_VISITABLE
This class is designed to declare objects to be thrown as exceptions by TerraLib. ...
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
std::vector< Geometry * > & getGeometries()
It returns a reference to the internal list of geometries.
const std::vector< Geometry * > & getGeometries() const
It returns a reference to the internal list of geometries.
static const std::string sm_typeName
Geometry type name for GeometryCollection.
It is a collection of other geometric objects.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.