A feature is a composition of a geometry and its attributes. More...
#include <Feature.h>
Public Member Functions | |
| virtual te::da::DataSetItem * | clone () const override |
| Clones the feature. | |
| void | copyValuesFrom (const te::da::DataSetItem *source, bool copyGeometries=true) |
| Copies the values from the source dataSet item to the destination dataSet item by matching the column names. If a column from the source does not exist in the destination, it will not be copied. | |
| Feature (const Feature &rhs) | |
| It creates a new feature by cloning the values in the source feature (rhs). | |
| Feature (const te::da::DataSet *dataSet) | |
| Feature (const te::da::DataSetItem &dataSetItem) | |
| Constructor. | |
| Feature (const te::da::DataSetType *dataSetType) | |
| bool | getBool (std::size_t i) const |
| It returns the value of the i-th property. | |
| std::unique_ptr< te::dt::ByteArray > | getByteArray (std::size_t i) const |
| It returns the value of the i-th property. | |
| char | getChar (std::size_t i) const |
| It returns the value of the i-th property. | |
| std::unique_ptr< te::dt::DateTime > | getDateTime (std::size_t i) const |
| It returns the value of the i-th property. | |
| double | getDouble (std::size_t i) const |
| It returns the value of the i-th property. | |
| std::unique_ptr< te::gm::Geometry > | getFirstGeometry () const |
| Gets the first geometry associated to this feature. The caller will take the ownership of the object. | |
| te::gm::Geometry * | getFirstGeometryPtr () |
| Gets the first geometry associated to this feature. The caller will NOT take the ownership of the object. | |
| const te::gm::Geometry * | getFirstGeometryPtr () const |
| Gets the first geometry associated to this feature. The caller will NOT take the ownership of the object. | |
| float | getFloat (std::size_t i) const |
| It returns the value of the i-th property. | |
| std::unique_ptr< te::gm::Geometry > | getGeometry (std::size_t i) const |
| It returns the value of the i-th property. | |
| boost::int16_t | getInt16 (std::size_t i) const |
| It returns the value of the i-th property. | |
| boost::int32_t | getInt32 (std::size_t i) const |
| It returns the value of the i-th property. | |
| boost::int64_t | getInt64 (std::size_t i) const |
| It returns the value of the i-th property. | |
| std::string | getNumeric (std::size_t i) const |
| It returns the value of the i-th property. | |
| std::size_t | getNumProperties () const |
| It returns the number of properties. | |
| int | getPropertyDataType (std::size_t pos) const |
| It returns the type of the pos-th property. | |
| const std::string & | getPropertyName (std::size_t pos) const |
| It returns the name of the pos-th property. | |
| const std::vector< std::string > & | getPropertyNames () const |
| It returns the name of properties. | |
| std::size_t | getPropertyPos (const std::string &name) const |
| It returns the name of the pos-th property. | |
| const std::vector< int > & | getPropertyTypes () const |
| It returns the types of properties. | |
| std::unique_ptr< te::rst::Raster > | getRaster (std::size_t i) const |
| It returns the value of the i-th property. | |
| std::string | getString (std::size_t i) const |
| It returns the value of the i-th property. | |
| unsigned char | getUChar (std::size_t i) const |
| It returns the value of the i-th property. | |
| std::unique_ptr< te::dt::AbstractData > | getValue (std::size_t i) const |
| It returns the value of the i-th property. | |
| bool | isNull (std::size_t i) const |
| Checks if the value in the given index is null. | |
| void | setBool (const std::string &name, bool value) |
| It sets the value of the property, indicating its name. | |
| void | setBool (std::size_t i, bool value) |
| It sets the value of the i-th property. | |
| void | setByteArray (const std::string &name, te::dt::ByteArray *value) |
| It sets the value of the property, indicating its name. | |
| void | setByteArray (std::size_t i, te::dt::ByteArray *value) |
| It sets the value of the i-th property. | |
| void | setChar (const std::string &name, char value) |
| It sets the value of the property, indicating its name. | |
| void | setChar (std::size_t i, char value) |
| It sets the value of the i-th property. | |
| void | setDateTime (const std::string &name, te::dt::DateTime *value) |
| It sets the value of the property, indicating its name. | |
| void | setDateTime (std::size_t i, te::dt::DateTime *value) |
| It sets the value of the i-th property. | |
| void | setDouble (const std::string &name, double value) |
| It sets the value of the property, indicating its name. | |
| void | setDouble (std::size_t i, double value) |
| It sets the value of the i-th property. | |
| void | setFirstGeometry (te::gm::Geometry *geometry) |
| Sets the first geometry value associated to this feature. This will take the ownership of the object. | |
| void | setFloat (const std::string &name, float value) |
| It sets the value of the property, indicating its name. | |
| void | setFloat (std::size_t i, float value) |
| It sets the value of the i-th property. | |
| void | setGeometry (const std::string &name, te::gm::Geometry *value) |
| It sets the value of the property, indicating its name. | |
| void | setGeometry (std::size_t i, te::gm::Geometry *value) |
| It sets the value of the i-th property. | |
| void | setInt16 (const std::string &name, boost::int16_t value) |
| It sets the value of the property, indicating its name. | |
| void | setInt16 (std::size_t i, boost::int16_t value) |
| It sets the value of the i-th property. | |
| void | setInt32 (const std::string &name, boost::int32_t value) |
| It sets the value of the property, indicating its name. | |
| void | setInt32 (std::size_t i, boost::int32_t value) |
| It sets the value of the i-th property. | |
| void | setInt64 (const std::string &name, boost::int64_t value) |
| It sets the value of the property, indicating its name. | |
| void | setInt64 (std::size_t i, boost::int64_t value) |
| It sets the value of the i-th property. | |
| void | setNumeric (const std::string &name, const std::string &value) |
| It sets the value of the property, indicating its name. | |
| void | setNumeric (std::size_t i, const std::string &value) |
| It sets the value of the i-th property. | |
| void | setRaster (const std::string &name, te::rst::Raster *value) |
| It sets the value of the property, indicating its name. | |
| void | setRaster (std::size_t i, te::rst::Raster *value) |
| It sets the value of the i-th property. | |
| void | setSRID (int srid) |
| void | setString (const std::string &name, const std::string &value) |
| It sets the value of the property, indicating its name. | |
| void | setString (std::size_t i, const std::string &value) |
| It sets the value of the i-th property. | |
| void | setUChar (const std::string &name, unsigned char value) |
| It sets the value of the property, indicating its name. | |
| void | setUChar (std::size_t i, unsigned char value) |
| It sets the value of the i-th property. | |
| void | setValue (const std::string &name, te::dt::AbstractData *value) |
| It sets the value of the property, indicating its name. | |
| void | setValue (std::size_t i, te::dt::AbstractData *value) |
| It sets the value of the i-th property. | |
| void | transform (int srid) |
| It converts the coordinate values of the feature to the new spatial reference system. | |
| void | transform (te::srs::Converter *converter) |
| It converts the coordinate values of the feature to the new spatial reference system. | |
| virtual | ~Feature () |
| Destructor. | |
Static Public Member Functions | |
| static te::vp::Feature * | createFeatureFromCurrent (const te::da::DataSet *dataSet) |
| Creates a Feature based on the current row of the givem DataSet. | |
| static te::da::DataSetItem * | createFromCurrent (const te::da::DataSet *dataSet) |
| Creates a dataSetItem based on the current row of the givem DataSet. | |
Protected Member Functions | |
| std::size_t | getFirstGeometryPropertyPos () const |
Protected Attributes | |
| boost::ptr_vector< boost::nullable< te::dt::AbstractData > > | m_data |
| The data values of the. | |
| std::size_t | m_firstGeometryPropertyPos |
| std::vector< std::string > | m_vecNames |
| Vector containing the names of the attributes of the dataSet item. | |
| std::vector< int > | m_vecTypes |
| Vector containing the types of the attributes of the dataSet item. | |
A feature is a composition of a geometry and its attributes.
|
explicit |
|
explicit |
|
explicit |
Constructor.
| dataSetItem | The dataset item to be associated with this feature. Feature will take the ownership of the given dataset item |
|
explicit |
It creates a new feature by cloning the values in the source feature (rhs).
| rhs | The right-hand-side object to copy its values. |
|
virtual |
Destructor.
|
overridevirtual |
Clones the feature.
Reimplemented from te::mem::DataSetItem.
|
inherited |
Copies the values from the source dataSet item to the destination dataSet item by matching the column names. If a column from the source does not exist in the destination, it will not be copied.
|
static |
Creates a Feature based on the current row of the givem DataSet.
|
staticinherited |
Creates a dataSetItem based on the current row of the givem DataSet.
|
inherited |
It returns the value of the i-th property.
|
inherited |
It returns the value of the i-th property.
|
inherited |
It returns the value of the i-th property.
|
inherited |
It returns the value of the i-th property.
|
inherited |
It returns the value of the i-th property.
| std::unique_ptr< te::gm::Geometry > te::vp::Feature::getFirstGeometry | ( | ) | const |
Gets the first geometry associated to this feature. The caller will take the ownership of the object.
|
protected |
| te::gm::Geometry * te::vp::Feature::getFirstGeometryPtr | ( | ) |
Gets the first geometry associated to this feature. The caller will NOT take the ownership of the object.
| const te::gm::Geometry * te::vp::Feature::getFirstGeometryPtr | ( | ) | const |
Gets the first geometry associated to this feature. The caller will NOT take the ownership of the object.
|
inherited |
It returns the value of the i-th property.
|
inherited |
It returns the value of the i-th property.
|
inherited |
It returns the value of the i-th property.
|
inherited |
It returns the value of the i-th property.
|
inherited |
It returns the value of the i-th property.
|
inherited |
It returns the value of the i-th property.
|
inherited |
It returns the number of properties.
|
inherited |
It returns the type of the pos-th property.
|
inherited |
It returns the name of the pos-th property.
|
inherited |
It returns the name of properties.
|
inherited |
It returns the name of the pos-th property.
|
inherited |
It returns the types of properties.
|
inherited |
It returns the value of the i-th property.
|
inherited |
It returns the value of the i-th property.
|
inherited |
It returns the value of the i-th property.
|
inherited |
It returns the value of the i-th property.
|
inherited |
Checks if the value in the given index is null.
|
inherited |
It sets the value of the property, indicating its name.
|
inherited |
It sets the value of the i-th property.
|
inherited |
It sets the value of the property, indicating its name.
|
inherited |
It sets the value of the i-th property.
|
inherited |
It sets the value of the property, indicating its name.
|
inherited |
It sets the value of the i-th property.
|
inherited |
It sets the value of the property, indicating its name.
|
inherited |
It sets the value of the i-th property.
|
inherited |
It sets the value of the property, indicating its name.
|
inherited |
It sets the value of the i-th property.
| void te::vp::Feature::setFirstGeometry | ( | te::gm::Geometry * | geometry | ) |
Sets the first geometry value associated to this feature. This will take the ownership of the object.
| The | geometry to be associated to this feature |
|
inherited |
It sets the value of the property, indicating its name.
|
inherited |
It sets the value of the i-th property.
|
inherited |
It sets the value of the property, indicating its name.
|
inherited |
It sets the value of the i-th property.
|
inherited |
It sets the value of the property, indicating its name.
|
inherited |
It sets the value of the i-th property.
|
inherited |
It sets the value of the property, indicating its name.
|
inherited |
It sets the value of the i-th property.
|
inherited |
It sets the value of the property, indicating its name.
|
inherited |
It sets the value of the i-th property.
|
inherited |
It sets the value of the property, indicating its name.
|
inherited |
It sets the value of the i-th property.
|
inherited |
It sets the value of the property, indicating its name.
|
inherited |
It sets the value of the i-th property.
| void te::vp::Feature::setSRID | ( | int | srid | ) |
|
inherited |
It sets the value of the property, indicating its name.
|
inherited |
It sets the value of the i-th property.
|
inherited |
It sets the value of the property, indicating its name.
|
inherited |
It sets the value of the i-th property.
|
inherited |
It sets the value of the property, indicating its name.
|
inherited |
It sets the value of the i-th property.
| void te::vp::Feature::transform | ( | int | srid | ) |
It converts the coordinate values of the feature to the new spatial reference system.
| The | new Spatial Reference System ID used to transform the coordinates of the feature. |
| void te::vp::Feature::transform | ( | te::srs::Converter * | converter | ) |
It converts the coordinate values of the feature to the new spatial reference system.
| The | new Spatial Reference System ID used to transform the coordinates of the feature. Sets the srid of the feature. The given value will be applied to all geometries |
|
protectedinherited |
The data values of the.
Definition at line 236 of file DataSetItem.h.
|
protected |
|
protectedinherited |
Vector containing the names of the attributes of the dataSet item.
Definition at line 234 of file DataSetItem.h.
|
protectedinherited |
Vector containing the types of the attributes of the dataSet item.
Definition at line 235 of file DataSetItem.h.