26#ifndef __TERRALIB_GEOMETRY_INTERNAL_GEOMETRYCOLLECTION_H
27#define __TERRALIB_GEOMETRY_INTERNAL_GEOMETRYCOLLECTION_H
142 virtual const std::
string& getGeometryType() const throw();
151 void setSRID(
int srid) throw();
168 void convert(
te::srs::Converter* converter) override;
179 void computeMBR(
bool cascade) const throw();
188 std::
size_t getNPoints() const throw();
207 const std::vector<
Geometry*>& getGeometries()
const {
return m_geometries; }
#define TE_DEFINE_VISITABLE
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
A base class for values that can be retrieved from the data access module.
An Envelope defines a 2D rectangular region.
It is a collection of other geometric objects.
GeometryCollection(std::size_t nGeom, GeomType t, int srid=0, Envelope *mbr=0)
It initializes the geometry collection with the specified spatial reference system id and envelope.
void removeGeometryN(std::size_t i)
It removes the n-th geometry in this geometry collection.
static const std::string sm_typeName
Geometry type name for GeometryCollection.
std::vector< Geometry * > & getGeometries()
It returns a reference to the internal list of geometries.
void add(Geometry *g)
It adds the geometry into the collection.
virtual ~GeometryCollection()
Virtual destructor.
virtual Dimensionality getDimension() const
For non-homogeneous collections this method will return the largest dimension of the contained object...
void setNumGeometries(std::size_t size)
It sets the number of geometries in this GeometryCollection.
GeometryCollection(const GeometryCollection &rhs)
Copy constructor.
Geometry * getGeometryN(std::size_t i) const
It returns the n-th geometry in this GeometryCollection.
void setGeometryN(std::size_t i, Geometry *g)
It sets the n-th geometry in this geometry collection.
void clear()
It deletes all the elements of the collection.
std::size_t getNumGeometries() const
It returns the number of geometries in this GeometryCollection.
std::vector< Geometry * > m_geometries
The array of geometries that forms the collection.
virtual te::dt::AbstractData * clone() const
It clones the geometry collection.
GeometryCollection & operator=(const GeometryCollection &rhs)
Assignment operator.
Geometry * getGeometryN(std::size_t i)
It returns the n-th geometry in this GeometryCollection.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
Dimensionality
From Wikipedia: "in mathematics, the dimension of an object is an intrinsic property,...
#define TEGEOMEXPORT
You can use this macro in order to export/import classes and functions from this module.