Go to the documentation of this file.
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; }
331 #endif // __TERRALIB_GEOMETRY_INTERNAL_GEOMETRYCOLLECTION_H
An Envelope defines a 2D rectangular region.
virtual te::dt::AbstractData * clone() const
It clones the geometry collection.
GeometryCollection & operator=(const GeometryCollection &rhs)
Assignment operator.
static const std::string sm_typeName
Geometry type name for GeometryCollection.
std::vector< Geometry * > m_geometries
The array of geometries that forms the collection.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
void add(Geometry *g)
It adds the geometry into the collection.
#define TEGEOMEXPORT
You can use this macro in order to export/import classes and functions from this module.
It is a collection of other geometric objects.
virtual Dimensionality getDimension() const
For non-homogeneous collections this method will return the largest dimension of the contained object...
std::vector< Geometry * > & getGeometries()
It returns a reference to the internal list of geometries.
GeometryCollection(const GeometryCollection &rhs)
Copy constructor.
Dimensionality
From Wikipedia: "in mathematics, the dimension of an object is an intrinsic property,...
#define TE_DEFINE_VISITABLE
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 setGeometryN(std::size_t i, Geometry *g)
It sets the n-th geometry in this geometry collection.
A base class for values that can be retrieved from the data access module.
void clear()
It deletes all the elements of the collection.
virtual ~GeometryCollection()
Virtual destructor.
Geometry * getGeometryN(std::size_t i)
It returns the n-th geometry in this GeometryCollection.
void removeGeometryN(std::size_t i)
It removes the n-th geometry in this geometry collection.
void setNumGeometries(std::size_t size)
It sets the number of geometries 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.
std::size_t getNumGeometries() const
It returns the number of geometries in this GeometryCollection.
Geometry * getGeometryN(std::size_t i) const
It returns the n-th geometry in this GeometryCollection.