Implementation of a random-access dataset class for the TerraLib In-Memory Data Access driver. More...
#include <DataSet.h>
Public Member Functions | |
| void | add (DataSetItem *item) |
| It adds a new item to the dataset and takes its ownership. More... | |
| void | add (const std::string &propertyName, std::size_t propertyType, const te::dt::AbstractData *defaultValue=0) |
| It adds a new property to the dataset schema and fills this new property with a default value. More... | |
| void | clear () |
| It clears all the dataset items. More... | |
| void | copy (te::da::DataSet &src, std::size_t limit=0) |
| It copies up to limit items from the source dataset. More... | |
| void | copy (te::da::DataSet &src, const std::vector< std::size_t > &properties, std::size_t limit=0) |
| It copies up to limit items from the source dataset (src). More... | |
| DataSet (const te::da::DataSetType *const dt) | |
| It constructs an empty dataset having the schema dt. More... | |
| DataSet (te::da::DataSet &rhs) | |
| Regular copy constructor. More... | |
| DataSet (const DataSet &rhs, const bool deepCopy=false) | |
| It creates a new In-Memory dataset with the items from the rhs dataset. More... | |
| DataSet (te::da::DataSet &rhs, const std::vector< std::size_t > &properties, std::size_t limit=0) | |
| Copy constructor with property restriction. More... | |
| void | drop (std::size_t pos) |
| It drops a property from the dataset. More... | |
| void | remove () |
| It removes the current dataset item. More... | |
| void | remove (DataSetItem *item) |
| It removes a specific dataset item. More... | |
| void | update (te::dt::Property *prop) |
| It update a property from the dataset. More... | |
| ~DataSet () | |
| Destructor. More... | |
DataSet inherited methods | |
| te::common::TraverseType | getTraverseType () const |
| It returns the traverse type associated to the dataset. More... | |
| te::common::AccessPolicy | getAccessPolicy () const |
| It returns the read and write permission associated to the dataset. More... | |
| std::size_t | getNumProperties () const |
| It returns the number of properties that composes an item of the dataset. More... | |
| int | getPropertyDataType (std::size_t pos) const |
| It returns the underlying data type of the property at position pos. More... | |
| void | setPropertyDataType (int dt, std::size_t pos) |
| std::string | getPropertyName (std::size_t pos) const |
| It returns the property name at position pos. More... | |
| void | setPropertyName (const std::string &name, std::size_t pos) |
| std::string | getDatasetNameOfProperty (std::size_t pos) const |
| It returns the underlying dataset name of the property at position pos. More... | |
| DataSetItem * | getItem () const |
| bool | isEmpty () const |
| It returns true if the collection is empty. More... | |
| bool | isConnected () const |
| It returns true if the dataset is connected and false if it is disconnected. A dataset can be connected or disconnected. A connected dataset, after its creation through the data source transactor, continues to depend on the connection given by its associated data source. Differently, a disconnected dataset, after its creation, no more depends of the connection given by the data source, and it continues to live after the connection has been released to the data source. More... | |
| std::size_t | size () const |
| It returns the collection size, if it is known. More... | |
| std::unique_ptr< te::gm::Envelope > | getExtent (std::size_t i) |
| It computes the bounding rectangle for a spatial property of the dataset. More... | |
| bool | moveNext () |
| It moves the internal pointer to the next item of the collection. More... | |
| bool | movePrevious () |
| It moves the internal pointer to the previous item of the collection. More... | |
| bool | moveBeforeFirst () |
| It moves the internal pointer to a position before the first item in the collection. More... | |
| bool | moveFirst () |
| It moves the internal pointer to the first item in the collection. More... | |
| bool | moveLast () |
| It sets the dataset internal pointer to the last item in the collection. More... | |
| bool | move (std::size_t i) |
| It moves the dataset internal pointer to a given position. More... | |
| bool | isAtBegin () const |
| It tells if the dataset internal pointer is on the first element of the collection or not. More... | |
| bool | isBeforeBegin () const |
| It tells if the dataset internal pointer is in a position before the first element of the collection or not. More... | |
| bool | isAtEnd () const |
| It tells if the dataset internal pointer is on the last element of the collection. More... | |
| bool | isAfterEnd () const |
| It tells if the dataset internal pointer is on the sentinel position after the last element of the collection or not. More... | |
| bool | isPositionValid () const |
| It tells if the dataset internal pointer is on a valid position. More... | |
| char | getChar (std::size_t i) const |
| Method for retrieving a signed character attribute value (1 byte long). More... | |
| unsigned char | getUChar (std::size_t i) const |
| Method for retrieving an unsigned character attribute value (1 byte long). More... | |
| boost::int16_t | getInt16 (std::size_t i) const |
| Method for retrieving a 16-bit integer attribute value (2 bytes long). More... | |
| boost::int32_t | getInt32 (std::size_t i) const |
| Method for retrieving a 32-bit integer attribute value (4 bytes long). More... | |
| boost::int64_t | getInt64 (std::size_t i) const |
| Method for retrieving a 64-bit integer attribute value (8 bytes long). More... | |
| bool | getBool (std::size_t i) const |
| Method for retrieving a boolean attribute value. More... | |
| float | getFloat (std::size_t i) const |
| Method for retrieving a float attribute value. More... | |
| double | getDouble (std::size_t i) const |
| Method for retrieving a double attribute value. More... | |
| std::string | getNumeric (std::size_t i) const |
| Method for retrieving a numeric attribute value. More... | |
| std::string | getString (std::size_t i) const |
| Method for retrieving a string value attribute. More... | |
| std::unique_ptr< te::dt::ByteArray > | getByteArray (std::size_t i) const |
| Method for retrieving a byte array. More... | |
| std::unique_ptr< te::gm::Geometry > | getGeometry (std::size_t i) const |
| Method for retrieving a geometric attribute value. More... | |
| std::unique_ptr< te::rst::Raster > | getRaster (std::size_t i) const |
| Method for retrieving a raster attribute value. More... | |
| std::unique_ptr< te::dt::DateTime > | getDateTime (std::size_t i) const |
| Method for retrieving a date and time attribute value. More... | |
| std::unique_ptr< te::dt::Array > | getArray (std::size_t i) const |
| Method for retrieving an array. More... | |
| std::unique_ptr< te::dt::AbstractData > | getValue (std::size_t i) const |
| Method for retrieving any other type of data value stored in the data source. More... | |
| bool | isNull (std::size_t i) const |
| It checks if the attribute value is NULL. More... | |
Methods to set values to the DataSet | |
These methods will take the ownership of the given pointers. | |
| void | setChar (std::size_t i, char value) |
| void | setChar (const std::string &name, char value) |
| void | setUChar (std::size_t i, unsigned char value) |
| void | setUChar (const std::string &name, unsigned char value) |
| void | setInt16 (std::size_t i, boost::int16_t value) |
| void | setInt16 (const std::string &name, boost::int16_t value) |
| void | setInt32 (std::size_t i, boost::int32_t value) |
| void | setInt32 (const std::string &name, boost::int32_t value) |
| void | setInt64 (std::size_t i, boost::int64_t value) |
| void | setInt64 (const std::string &name, boost::int64_t value) |
| void | setBool (std::size_t i, bool value) |
| void | setBool (const std::string &name, bool value) |
| void | setFloat (std::size_t i, float value) |
| void | setFloat (const std::string &name, float value) |
| void | setDouble (std::size_t i, double value) |
| void | setDouble (const std::string &name, double value) |
| void | setNumeric (std::size_t i, const std::string &value) |
| void | setNumeric (const std::string &name, const std::string &value) |
| void | setString (std::size_t i, const std::string &value) |
| void | setString (const std::string &name, const std::string &value) |
| void | setByteArray (std::size_t i, te::dt::ByteArray *value) |
| void | setByteArray (const std::string &name, te::dt::ByteArray *value) |
| void | setGeometry (std::size_t i, te::gm::Geometry *value) |
| void | setGeometry (const std::string &name, te::gm::Geometry *value) |
| void | setRaster (std::size_t i, te::rst::Raster *value) |
| void | setRaster (const std::string &name, te::rst::Raster *value) |
| void | setDateTime (std::size_t i, te::dt::DateTime *value) |
| void | setDateTime (const std::string &name, te::dt::DateTime *value) |
| void | setValue (std::size_t i, te::dt::AbstractData *value) |
| void | setValue (const std::string &name, te::dt::AbstractData *ad) |
DataSet Element Properties | |
Methods for retrieving/setting the dataset item component values without the need to explicitly instantiate an item via getItem method. | |
| virtual char | getChar (const std::string &name) const |
| Method for retrieving a signed character attribute value (1 byte long). More... | |
| virtual unsigned char | getUChar (const std::string &name) const |
| Method for retrieving an unsigned character attribute value (1 byte long). More... | |
| virtual boost::int16_t | getInt16 (const std::string &name) const |
| Method for retrieving a 16-bit integer attribute value (2 bytes long). More... | |
| virtual boost::int32_t | getInt32 (const std::string &name) const |
| Method for retrieving a 32-bit integer attribute value (4 bytes long). More... | |
| virtual boost::int64_t | getInt64 (const std::string &name) const |
| Method for retrieving a 64-bit integer attribute value (8 bytes long). More... | |
| virtual bool | getBool (const std::string &name) const |
| Method for retrieving a boolean attribute value. More... | |
| virtual float | getFloat (const std::string &name) const |
| Method for retrieving a float attribute value. More... | |
| virtual double | getDouble (const std::string &name) const |
| Method for retrieving a double attribute value. More... | |
| virtual std::string | getNumeric (const std::string &name) const |
| Method for retrieving a numeric attribute value. More... | |
| virtual std::string | getString (const std::string &name) const |
| Method for retrieving a string attribute value. More... | |
| virtual std::unique_ptr< te::dt::ByteArray > | getByteArray (const std::string &name) const |
| Method for retrieving a byte array. More... | |
| virtual std::unique_ptr< te::gm::Geometry > | getGeometry (const std::string &name) const |
| Method for retrieving a geometric attribute value. More... | |
| virtual std::unique_ptr< te::rst::Raster > | getRaster (const std::string &name) const |
| Method for retrieving a raster attribute value. More... | |
| virtual std::unique_ptr< te::dt::DateTime > | getDateTime (const std::string &name) const |
| Method for retrieving a date and time attribute value. More... | |
| virtual std::unique_ptr< te::dt::Array > | getArray (const std::string &name) const |
| Method for retrieving an array. More... | |
| virtual std::unique_ptr< te::dt::AbstractData > | getValue (const std::string &name) const |
| Method for retrieving any other type of data value stored in the data source. More... | |
| virtual std::string | getAsString (std::size_t i, int precision=0) const |
| Method for retrieving a data value as a string plain representation. More... | |
| virtual std::string | getAsString (const std::string &name, int precision=0) const |
| Method for retrieving a data value as a string plain representation. More... | |
| virtual bool | isNull (const std::string &name) const |
| It checks if the attribute value is NULL. More... | |
Protected Attributes | |
| int | m_i |
| The index of the current item. More... | |
| boost::shared_ptr< boost::ptr_vector< DataSetItem > > | m_items |
| The list of dataset items. More... | |
| std::vector< std::string > | m_pnames |
| The list of property names. More... | |
| std::vector< int > | m_ptypes |
| The list of property types. More... | |
Implementation of a random-access dataset class for the TerraLib In-Memory Data Access driver.
Definition at line 65 of file memory/DataSet.h.
|
explicit |
It constructs an empty dataset having the schema dt.
| dt | The DataSetType associated to the dataset. |
Definition at line 47 of file memory/DataSet.cpp.
References te::da::GetPropertyInfo(), m_pnames, and m_ptypes.
| te::mem::DataSet::DataSet | ( | te::da::DataSet & | rhs | ) |
Regular copy constructor.
It creates a new In-Memory dataset with the items from the rhs dataset.
| rhs | The dataset which will provide the items. |
Definition at line 54 of file memory/DataSet.cpp.
References copy(), te::da::GetPropertyInfo(), m_pnames, and m_ptypes.
It creates a new In-Memory dataset with the items from the rhs dataset.
| rhs | The dataset which will provide the items to copy from. |
| deepCopy | If true the new dataset instance will clone all dataset items from the source dataset (rhs), otherwise it will share all items. |
Definition at line 63 of file memory/DataSet.cpp.
References te::da::GetPropertyInfo(), m_items, m_pnames, and m_ptypes.
| te::mem::DataSet::DataSet | ( | te::da::DataSet & | rhs, |
| const std::vector< std::size_t > & | properties, | ||
| std::size_t | limit = 0 |
||
| ) |
Copy constructor with property restriction.
It creates a new memory data set with items from a source dataset (rhs) considering just some properties.
| rhs | The data set whose data set items will be copied. |
| properties | The list of properties which will be considered in the copy. |
| limit | The number of items to be copied. Use 0 to copy all items. |
Definition at line 75 of file memory/DataSet.cpp.
References copy(), te::da::DataSet::getPropertyDataType(), te::da::DataSet::getPropertyName(), m_pnames, m_ptypes, and ~DataSet().
|
virtualdefault |
| void te::mem::DataSet::add | ( | DataSetItem * | item | ) |
It adds a new item to the dataset and takes its ownership.
| item | The item to be added to the dataset. |
Definition at line 150 of file memory/DataSet.cpp.
References m_items.
Referenced by te::cellspace::CellularSpacesOperations::addCell(), te::mem::DataSource::addProperty(), create_ds_memory(), CreatingDataSetInMemory(), CreatingDataSetInMemoryGivingDt(), te::vp::BufferMemory::dissolveMemory(), te::vp::Merge::executeMemory(), te::qt::plugins::terramobile::fillExtraColumns(), te::ws::ogc::wms::WMSLayer::getData(), Editor::getEditedDataSet(), te::qt::plugins::edit::ToolBar::onSaveActivated(), te::vp::IntersectionMemory::pairwiseIntersection(), te::vp::BufferQuery::prepareDataSet(), GAP::SavePol(), te::vp::GeometricOpQuery::SetOutputDSet(), te::qt::plugins::terramobile::GeoPackageSynchronizer::synchronize(), te::vp::Dissolve::threadSave(), te::vp::IntersectionQuery::updateGeomType(), and te::vp::Intersection::updateGeomType().
| void te::mem::DataSet::add | ( | const std::string & | propertyName, |
| std::size_t | propertyType, | ||
| const te::dt::AbstractData * | defaultValue = 0 |
||
| ) |
It adds a new property to the dataset schema and fills this new property with a default value.
| prop | The new property that will be created. The dataset will take its ownership. |
| defaultValue | The default value that will be used to fill the new property values. May be a NULL value. |
Definition at line 176 of file memory/DataSet.cpp.
References te::dt::AbstractData::clone(), m_items, m_pnames, and m_ptypes.
| void te::mem::DataSet::clear | ( | ) |
It clears all the dataset items.
Definition at line 92 of file memory/DataSet.cpp.
References m_items.
Referenced by te::vp::BufferMemory::dissolveMemory(), and te::vp::GroupThreadManager::getClearOutputDataSet().
| void te::mem::DataSet::copy | ( | te::da::DataSet & | src, |
| std::size_t | limit = 0 |
||
| ) |
It copies up to limit items from the source dataset.
| src | The source dataset with the items that will be copied. |
| limit | The number of items to be copied. Use 0 to copy all items. |
Definition at line 97 of file memory/DataSet.cpp.
References te::da::DataSet::getNumProperties().
Referenced by te::mem::DataSource::add(), and DataSet().
| void te::mem::DataSet::copy | ( | te::da::DataSet & | src, |
| const std::vector< std::size_t > & | properties, | ||
| std::size_t | limit = 0 |
||
| ) |
It copies up to limit items from the source dataset (src).
| src | The source dataset with the items that will be copied. |
| properties | The list of properties which will be considered in the copy. |
| limit | The number of items to be copied. Use 0 to copy all items. |
Definition at line 109 of file memory/DataSet.cpp.
References te::da::DataSet::getValue(), te::da::DataSet::isNull(), m_items, te::da::DataSet::moveNext(), and TE_TR.
| void te::mem::DataSet::drop | ( | std::size_t | pos | ) |
It drops a property from the dataset.
| prop | The property that will be dropped. |
Definition at line 187 of file memory/DataSet.cpp.
References m_items, m_pnames, and m_ptypes.
Referenced by te::mem::DataSource::dropProperty(), and te::qt::plugins::edit::ToolBar::onSaveActivated().
|
virtual |
It returns the read and write permission associated to the dataset.
Implements te::da::DataSet.
Definition at line 214 of file memory/DataSet.cpp.
References te::common::RWAccess.
|
virtual |
Method for retrieving an array.
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 556 of file memory/DataSet.cpp.
|
virtualinherited |
Method for retrieving an array.
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 145 of file dataaccess/dataset/DataSet.cpp.
References te::da::DataSet::getArray(), and te::da::GetPropertyPos().
|
virtualinherited |
Method for retrieving a data value as a string plain representation.
| i | The attribute index. |
| precision | The precision in the conversion. |
Definition at line 219 of file dataaccess/dataset/DataSet.cpp.
References te::dt::ARRAY_TYPE, b, te::dt::BOOLEAN_TYPE, te::dt::BYTE_ARRAY_TYPE, te::dt::CHAR_TYPE, te::common::Convert2String(), te::dt::DATETIME_TYPE, te::dt::DOUBLE_TYPE, te::dt::FLOAT_TYPE, te::dt::GEOMETRY_TYPE, te::da::DataSet::getArray(), te::da::DataSet::getBool(), te::da::DataSet::getByteArray(), te::da::DataSet::getChar(), te::da::DataSet::getDateTime(), te::da::DataSet::getDouble(), te::da::DataSet::getFloat(), te::da::DataSet::getGeometry(), te::da::DataSet::getInt16(), te::da::DataSet::getInt32(), te::da::DataSet::getInt64(), te::da::DataSet::getNumeric(), te::da::DataSet::getPropertyDataType(), te::da::DataSet::getRaster(), te::da::DataSet::getString(), te::da::DataSet::getUChar(), te::dt::INT16_TYPE, te::dt::INT32_TYPE, te::dt::INT64_TYPE, te::dt::NUMERIC_TYPE, te::dt::RASTER_TYPE, te::dt::STRING_TYPE, and te::dt::UCHAR_TYPE.
Referenced by te::ogr::Transactor::add(), te::gpkg::Transactor::add(), te::sa::AssociateGPMVertexAttribute(), te::sa::KernelMapOperation::buildTree(), te::sa::KernelRatioOperation::buildTree(), te::sa::SkaterOperation::createDataSet(), te::qt::widgets::DataSetTableModel::data(), te::map::QueryLayerRenderer::drawDatSetGeometries(), te::da::DataSet::getAsString(), te::attributefill::VectorToVectorMemory::getDistinctClasses(), te::qt::widgets::DefaultFeatureInfoMaker::getGeometryInfo(), te::edit::EditInfoTool::getInfo(), te::qt::widgets::Promoter::preProcessKeys(), PrintDataSet(), PrintDataSetValues(), te::sa::BayesLocalOperation::runBayesLocal(), ToHighlight(), te::da::TupleToStringConverter(), TupleToStringUpperCaseConverter(), te::ado::Transactor::update(), and te::pgis::Transactor::update().
|
virtualinherited |
Method for retrieving a data value as a string plain representation.
| name | The attribute name. |
| precision | The precision in the conversion. |
| Exception | if property not found. |
Definition at line 307 of file dataaccess/dataset/DataSet.cpp.
References te::da::DataSet::getAsString(), te::da::DataSet::getNumProperties(), te::da::GetPropertyPos(), and TE_TR.
|
virtual |
Method for retrieving a boolean attribute value.
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 421 of file memory/DataSet.cpp.
|
virtualinherited |
Method for retrieving a boolean attribute value.
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 82 of file dataaccess/dataset/DataSet.cpp.
References te::da::DataSet::getBool(), and te::da::GetPropertyPos().
|
virtual |
Method for retrieving a byte array.
You can use this method in order to retrieve a BLOB data.
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 496 of file memory/DataSet.cpp.
|
virtualinherited |
Method for retrieving a byte array.
You can use this method in order to retrieve a BLOB data.
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 117 of file dataaccess/dataset/DataSet.cpp.
References te::da::DataSet::getByteArray(), and te::da::GetPropertyPos().
|
virtual |
Method for retrieving a signed character attribute value (1 byte long).
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 346 of file memory/DataSet.cpp.
|
virtualinherited |
Method for retrieving a signed character attribute value (1 byte long).
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 47 of file dataaccess/dataset/DataSet.cpp.
References te::da::DataSet::getChar(), and te::da::GetPropertyPos().
|
virtual |
It returns the underlying dataset name of the property at position pos.
| i | The property position of interest. |
Implements te::da::DataSet.
Definition at line 260 of file memory/DataSet.cpp.
|
virtual |
Method for retrieving a date and time attribute value.
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 541 of file memory/DataSet.cpp.
References m_i.
|
virtualinherited |
Method for retrieving a date and time attribute value.
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 138 of file dataaccess/dataset/DataSet.cpp.
References te::da::DataSet::getDateTime(), and te::da::GetPropertyPos().
|
virtual |
Method for retrieving a double attribute value.
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 451 of file memory/DataSet.cpp.
Referenced by te::sa::DataSetAdaptRadiusKernel(), te::sa::DataSetKernelNormalize(), te::sa::DataSetRatioKernel(), te::sa::BayesGlobalOperation::runBayesGlobal(), and te::sa::BayesLocalOperation::runBayesLocal().
|
virtualinherited |
Method for retrieving a double attribute value.
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 96 of file dataaccess/dataset/DataSet.cpp.
References te::da::DataSet::getDouble(), and te::da::GetPropertyPos().
|
virtual |
It computes the bounding rectangle for a spatial property of the dataset.
| i | The position of a spatial property to get its bounding box. |
| Exception | It throws an exception if something goes wrong during MBR search. |
Implements te::da::DataSet.
Definition at line 219 of file memory/DataSet.cpp.
References getGeometry(), and m_items.
Referenced by te::vp::BufferMemory::dissolveMemory().
|
virtual |
Method for retrieving a float attribute value.
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 436 of file memory/DataSet.cpp.
|
virtualinherited |
Method for retrieving a float attribute value.
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 89 of file dataaccess/dataset/DataSet.cpp.
References te::da::DataSet::getFloat(), and te::da::GetPropertyPos().
|
virtual |
Method for retrieving a geometric attribute value.
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 511 of file memory/DataSet.cpp.
Referenced by te::sa::DataSetAdaptRadiusKernel(), te::sa::DataSetKernelNormalize(), te::sa::DataSetRatioKernel(), te::sa::DataSetStatRadiusKernel(), te::vp::BufferMemory::dissolveMemory(), and getExtent().
|
virtualinherited |
Method for retrieving a geometric attribute value.
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 124 of file dataaccess/dataset/DataSet.cpp.
References te::da::DataSet::getGeometry(), and te::da::GetPropertyPos().
|
virtual |
Method for retrieving a 16-bit integer attribute value (2 bytes long).
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 376 of file memory/DataSet.cpp.
|
virtualinherited |
Method for retrieving a 16-bit integer attribute value (2 bytes long).
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 61 of file dataaccess/dataset/DataSet.cpp.
References te::da::DataSet::getInt16(), and te::da::GetPropertyPos().
|
virtual |
Method for retrieving a 32-bit integer attribute value (4 bytes long).
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 391 of file memory/DataSet.cpp.
Referenced by te::vp::BufferMemory::dissolveMemory().
|
virtualinherited |
Method for retrieving a 32-bit integer attribute value (4 bytes long).
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 68 of file dataaccess/dataset/DataSet.cpp.
References te::da::DataSet::getInt32(), and te::da::GetPropertyPos().
|
virtual |
Method for retrieving a 64-bit integer attribute value (8 bytes long).
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 406 of file memory/DataSet.cpp.
|
virtualinherited |
Method for retrieving a 64-bit integer attribute value (8 bytes long).
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 75 of file dataaccess/dataset/DataSet.cpp.
References te::da::DataSet::getInt64(), and te::da::GetPropertyPos().
| te::mem::DataSetItem * te::mem::DataSet::getItem | ( | ) | const |
Definition at line 265 of file memory/DataSet.cpp.
References te::mem::DataSetItem::clone(), m_i, and m_items.
|
virtual |
Method for retrieving a numeric attribute value.
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 466 of file memory/DataSet.cpp.
|
virtualinherited |
Method for retrieving a numeric attribute value.
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 103 of file dataaccess/dataset/DataSet.cpp.
References te::da::DataSet::getNumeric(), and te::da::GetPropertyPos().
|
virtual |
It returns the number of properties that composes an item of the dataset.
Implements te::da::DataSet.
Definition at line 235 of file memory/DataSet.cpp.
References m_pnames.
Referenced by te::qt::plugins::terramobile::fillExtraColumns(), and te::qt::plugins::terramobile::GeoPackageSynchronizer::synchronize().
|
virtual |
It returns the underlying data type of the property at position pos.
| i | The property position of interest. |
Implements te::da::DataSet.
Definition at line 240 of file memory/DataSet.cpp.
References m_ptypes.
|
virtual |
It returns the property name at position pos.
| i | The property name at the position of interest. |
Implements te::da::DataSet.
Definition at line 250 of file memory/DataSet.cpp.
References m_pnames.
Referenced by te::qt::plugins::terramobile::fillExtraColumns().
|
virtual |
Method for retrieving a raster attribute value.
| i | The attribute index. |
| Exception | It can throw an exception if:
|
Implements te::da::DataSet.
Definition at line 526 of file memory/DataSet.cpp.
|
virtualinherited |
Method for retrieving a raster attribute value.
| name | The attribute name. |
| Exception | It can throw an exception if:
|
Reimplemented in te::gdal::DataSet.
Definition at line 131 of file dataaccess/dataset/DataSet.cpp.
References te::da::GetPropertyPos(), and te::da::DataSet::getRaster().
|
virtual |
Method for retrieving a string value attribute.
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 481 of file memory/DataSet.cpp.
|
virtualinherited |
Method for retrieving a string attribute value.
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 110 of file dataaccess/dataset/DataSet.cpp.
References te::da::GetPropertyPos(), and te::da::DataSet::getString().
|
virtual |
It returns the traverse type associated to the dataset.
Implements te::da::DataSet.
Definition at line 209 of file memory/DataSet.cpp.
References te::common::RANDOM.
|
virtual |
Method for retrieving an unsigned character attribute value (1 byte long).
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 361 of file memory/DataSet.cpp.
|
virtualinherited |
Method for retrieving an unsigned character attribute value (1 byte long).
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 54 of file dataaccess/dataset/DataSet.cpp.
References te::da::GetPropertyPos(), and te::da::DataSet::getUChar().
|
virtual |
Method for retrieving any other type of data value stored in the data source.
This method can be use for extensible datatypes.
| i | The attribute index. |
Reimplemented from te::da::DataSet.
Definition at line 562 of file memory/DataSet.cpp.
|
virtualinherited |
Method for retrieving any other type of data value stored in the data source.
This method can be use for extensible datatypes.
| name | The attribute name. |
Definition at line 212 of file dataaccess/dataset/DataSet.cpp.
References te::da::GetPropertyPos(), and te::da::DataSet::getValue().
|
virtual |
It tells if the dataset internal pointer is on the sentinel position after the last element of the collection or not.
Implements te::da::DataSet.
Definition at line 336 of file memory/DataSet.cpp.
|
virtual |
It tells if the dataset internal pointer is on the first element of the collection or not.
Implements te::da::DataSet.
Definition at line 321 of file memory/DataSet.cpp.
References m_i.
|
virtual |
It tells if the dataset internal pointer is on the last element of the collection.
Implements te::da::DataSet.
Definition at line 331 of file memory/DataSet.cpp.
|
virtual |
It tells if the dataset internal pointer is in a position before the first element of the collection or not.
Implements te::da::DataSet.
Definition at line 326 of file memory/DataSet.cpp.
References m_i.
|
virtual |
It returns true if the dataset is connected and false if it is disconnected. A dataset can be connected or disconnected. A connected dataset, after its creation through the data source transactor, continues to depend on the connection given by its associated data source. Differently, a disconnected dataset, after its creation, no more depends of the connection given by the data source, and it continues to live after the connection has been released to the data source.
Implements te::da::DataSet.
Definition at line 275 of file memory/DataSet.cpp.
|
virtual |
It returns true if the collection is empty.
Implements te::da::DataSet.
Definition at line 270 of file memory/DataSet.cpp.
References m_items.
Referenced by te::qt::plugins::terramobile::GeoPackageSynchronizer::synchronize().
|
virtual |
It checks if the attribute value is NULL.
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 577 of file memory/DataSet.cpp.
Referenced by te::vp::BufferMemory::dissolveMemory().
|
virtualinherited |
It checks if the attribute value is NULL.
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 319 of file dataaccess/dataset/DataSet.cpp.
References te::da::GetPropertyPos(), and te::da::DataSet::isNull().
|
virtual |
It tells if the dataset internal pointer is on a valid position.
Implements te::da::DataSet.
Definition at line 341 of file memory/DataSet.cpp.
|
virtual |
It moves the dataset internal pointer to a given position.
| i | The position the dataset internal pointer must be set up. |
Implements te::da::DataSet.
Definition at line 315 of file memory/DataSet.cpp.
|
virtual |
It moves the internal pointer to a position before the first item in the collection.
Implements te::da::DataSet.
Definition at line 297 of file memory/DataSet.cpp.
References m_i.
Referenced by te::sa::DataSetAdaptRadiusKernel(), te::sa::DataSetKernelNormalize(), te::sa::DataSetRatioKernel(), te::sa::DataSetStatRadiusKernel(), te::vp::BufferMemory::dissolveMemory(), te::qt::plugins::edit::ToolBar::onSaveActivated(), te::vp::IntersectionMemory::pairwiseIntersection(), te::sa::BayesGlobalOperation::runBayesGlobal(), te::sa::BayesLocalOperation::runBayesLocal(), te::qt::widgets::VectorizationWizard::saveDataSet(), te::qt::widgets::RasterizationWizard::saveDataSet(), te::sa::SamplePointsGeneratorAbstract::saveDataSet(), te::qt::widgets::SegmenterAdvancedOptionsWizardPage::saveDataSet(), and te::qt::widgets::CloudDetectionDialog::saveDataSet().
|
virtual |
It moves the internal pointer to the first item in the collection.
Implements te::da::DataSet.
Definition at line 303 of file memory/DataSet.cpp.
References m_i.
|
virtual |
It sets the dataset internal pointer to the last item in the collection.
Implements te::da::DataSet.
Definition at line 309 of file memory/DataSet.cpp.
|
virtual |
It moves the internal pointer to the next item of the collection.
You always has to call this method in order to move the internal pointer to the first item in the collection. This method can be used to traverse a dataset.
Implements te::da::DataSet.
Definition at line 285 of file memory/DataSet.cpp.
Referenced by te::sa::DataSetAdaptRadiusKernel(), te::sa::DataSetKernelNormalize(), te::sa::DataSetRatioKernel(), te::sa::DataSetStatRadiusKernel(), te::vp::BufferMemory::dissolveMemory(), te::vp::IntersectionMemory::pairwiseIntersection(), te::mem::DataSource::remove(), te::sa::BayesGlobalOperation::runBayesGlobal(), and te::sa::BayesLocalOperation::runBayesLocal().
|
virtual |
It moves the internal pointer to the previous item of the collection.
Implements te::da::DataSet.
Definition at line 291 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::remove | ( | ) |
It removes the current dataset item.
Definition at line 155 of file memory/DataSet.cpp.
Referenced by te::mem::DataSource::remove().
| void te::mem::DataSet::remove | ( | DataSetItem * | item | ) |
It removes a specific dataset item.
Definition at line 160 of file memory/DataSet.cpp.
| void te::mem::DataSet::setBool | ( | std::size_t | i, |
| bool | value | ||
| ) |
Definition at line 426 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setBool | ( | const std::string & | name, |
| bool | value | ||
| ) |
Definition at line 431 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setByteArray | ( | std::size_t | i, |
| te::dt::ByteArray * | value | ||
| ) |
Definition at line 501 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setByteArray | ( | const std::string & | name, |
| te::dt::ByteArray * | value | ||
| ) |
Definition at line 506 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setChar | ( | std::size_t | i, |
| char | value | ||
| ) |
Definition at line 351 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setChar | ( | const std::string & | name, |
| char | value | ||
| ) |
Definition at line 356 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setDateTime | ( | std::size_t | i, |
| te::dt::DateTime * | value | ||
| ) |
Definition at line 546 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setDateTime | ( | const std::string & | name, |
| te::dt::DateTime * | value | ||
| ) |
Definition at line 551 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setDouble | ( | std::size_t | i, |
| double | value | ||
| ) |
Definition at line 456 of file memory/DataSet.cpp.
References m_i.
Referenced by te::sa::DataSetAdaptRadiusKernel(), te::sa::DataSetKernelNormalize(), te::sa::DataSetRatioKernel(), te::sa::DataSetStatRadiusKernel(), te::sa::BayesGlobalOperation::runBayesGlobal(), and te::sa::BayesLocalOperation::runBayesLocal().
| void te::mem::DataSet::setDouble | ( | const std::string & | name, |
| double | value | ||
| ) |
Definition at line 461 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setFloat | ( | std::size_t | i, |
| float | value | ||
| ) |
Definition at line 441 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setFloat | ( | const std::string & | name, |
| float | value | ||
| ) |
Definition at line 446 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setGeometry | ( | std::size_t | i, |
| te::gm::Geometry * | value | ||
| ) |
Definition at line 516 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setGeometry | ( | const std::string & | name, |
| te::gm::Geometry * | value | ||
| ) |
Definition at line 521 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setInt16 | ( | std::size_t | i, |
| boost::int16_t | value | ||
| ) |
Definition at line 381 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setInt16 | ( | const std::string & | name, |
| boost::int16_t | value | ||
| ) |
Definition at line 386 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setInt32 | ( | std::size_t | i, |
| boost::int32_t | value | ||
| ) |
Definition at line 396 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setInt32 | ( | const std::string & | name, |
| boost::int32_t | value | ||
| ) |
Definition at line 401 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setInt64 | ( | std::size_t | i, |
| boost::int64_t | value | ||
| ) |
Definition at line 411 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setInt64 | ( | const std::string & | name, |
| boost::int64_t | value | ||
| ) |
Definition at line 416 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setNumeric | ( | std::size_t | i, |
| const std::string & | value | ||
| ) |
Definition at line 471 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setNumeric | ( | const std::string & | name, |
| const std::string & | value | ||
| ) |
Definition at line 476 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setPropertyDataType | ( | int | dt, |
| std::size_t | pos | ||
| ) |
Definition at line 245 of file memory/DataSet.cpp.
Referenced by te::qt::plugins::edit::ToolBar::onSaveActivated().
| void te::mem::DataSet::setPropertyName | ( | const std::string & | name, |
| std::size_t | pos | ||
| ) |
Definition at line 255 of file memory/DataSet.cpp.
References m_pnames.
Referenced by te::mem::DataSource::renameProperty().
| void te::mem::DataSet::setRaster | ( | std::size_t | i, |
| te::rst::Raster * | value | ||
| ) |
Definition at line 531 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setRaster | ( | const std::string & | name, |
| te::rst::Raster * | value | ||
| ) |
Definition at line 536 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setString | ( | std::size_t | i, |
| const std::string & | value | ||
| ) |
Definition at line 486 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setString | ( | const std::string & | name, |
| const std::string & | value | ||
| ) |
Definition at line 491 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setUChar | ( | std::size_t | i, |
| unsigned char | value | ||
| ) |
Definition at line 366 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setUChar | ( | const std::string & | name, |
| unsigned char | value | ||
| ) |
Definition at line 371 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setValue | ( | std::size_t | i, |
| te::dt::AbstractData * | value | ||
| ) |
Definition at line 567 of file memory/DataSet.cpp.
References m_i.
| void te::mem::DataSet::setValue | ( | const std::string & | name, |
| te::dt::AbstractData * | ad | ||
| ) |
Definition at line 572 of file memory/DataSet.cpp.
References m_i.
|
virtual |
It returns the collection size, if it is known.
It may return std::string::npos if the size is not known, or it would be too costly to compute it.
Implements te::da::DataSet.
Definition at line 280 of file memory/DataSet.cpp.
References m_items.
Referenced by te::sa::DataSetAdaptRadiusKernel(), te::sa::DataSetKernelNormalize(), te::sa::DataSetRatioKernel(), te::sa::DataSetStatRadiusKernel(), te::qt::plugins::terramobile::fillExtraColumns(), te::qt::plugins::edit::ToolBar::onSaveActivated(), te::sa::BayesGlobalOperation::runBayesGlobal(), te::sa::BayesLocalOperation::runBayesLocal(), and te::qt::plugins::terramobile::GeoPackageSynchronizer::synchronize().
| void te::mem::DataSet::update | ( | te::dt::Property * | prop | ) |
It update a property from the dataset.
| prop | The property that will be updated. |
Definition at line 198 of file memory/DataSet.cpp.
|
protected |
The index of the current item.
Definition at line 387 of file memory/DataSet.h.
Referenced by getBool(), getByteArray(), getChar(), getDateTime(), getDouble(), getFloat(), getGeometry(), getInt16(), getInt32(), getInt64(), getItem(), getNumeric(), getRaster(), getString(), getUChar(), getValue(), isAfterEnd(), isAtBegin(), isAtEnd(), isBeforeBegin(), isNull(), isPositionValid(), move(), moveBeforeFirst(), moveFirst(), moveLast(), moveNext(), movePrevious(), remove(), setBool(), setByteArray(), setChar(), setDateTime(), setDouble(), setFloat(), setGeometry(), setInt16(), setInt32(), setInt64(), setNumeric(), setRaster(), setString(), setUChar(), and setValue().
|
protected |
The list of dataset items.
Definition at line 384 of file memory/DataSet.h.
Referenced by add(), clear(), copy(), DataSet(), drop(), getBool(), getByteArray(), getChar(), getDouble(), getExtent(), getFloat(), getGeometry(), getInt16(), getInt32(), getInt64(), getItem(), getNumeric(), getRaster(), getString(), getUChar(), getValue(), isAfterEnd(), isAtEnd(), isEmpty(), isNull(), isPositionValid(), move(), moveLast(), moveNext(), remove(), and size().
|
protected |
The list of property names.
Definition at line 385 of file memory/DataSet.h.
Referenced by add(), DataSet(), drop(), getNumProperties(), getPropertyName(), and setPropertyName().
|
protected |
The list of property types.
Definition at line 386 of file memory/DataSet.h.
Referenced by add(), DataSet(), drop(), getPropertyDataType(), and setPropertyDataType().