27 #include "../common/STLUtils.h"
28 #include "../dataaccess/dataset/ObjectId.h"
29 #include "../datatype/AbstractData.h"
30 #include "../geometry/Geometry.h"
113 return m_id->getValueAsString() ==
id->getValueAsString();
125 f->
setGeometry(dynamic_cast<te::gm::Geometry*>(m_geom->clone()));
128 std::map<std::size_t, te::dt::AbstractData*> data;
129 for(std::map<std::size_t, te::dt::AbstractData*>::const_iterator it = m_data.begin(); it != m_data.end(); ++it)
132 data[it->first] = it->second->clone();
void setId(te::da::ObjectId *id)
TEEDITEXPORT te::da::ObjectId * GenerateId()
te::gm::Geometry * m_geom
te::da::ObjectId * getId() const
te::gm::Geometry * getGeometry() const
void set(te::da::ObjectId *id, te::gm::Geometry *geom)
This class represents a geographic feature.
This class represents an unique id for a data set element.
bool isEquals(te::da::ObjectId *id)
void setData(const std::map< std::size_t, te::dt::AbstractData * > &data)
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
Utility functions for TerraLib Edit module.
void setGeometry(te::gm::Geometry *geom)
void FreeContents(boost::unordered_map< K, V * > &m)
This function can be applied to a map of pointers. It will delete each pointer in the map...
const std::map< std::size_t, te::dt::AbstractData * > & getData() const