29 #include "../../dataaccess/utils/Utils.h" 30 #include "../../geometry/GeometryProperty.h" 31 #include "../../memory/DataSet.h" 32 #include "../../raster/Raster.h" 44 KernelMap::iterator it =
m_kMap.begin();
48 delete it->second.first;
118 int id = atoi(strId.c_str());
133 std::pair<te::gm::Geometry*, double> pair(g, value);
135 m_kMap.insert(KernelMap::value_type(
id, pair));
virtual std::unique_ptr< te::gm::Geometry > getGeometry(std::size_t i) const =0
Method for retrieving a geometric attribute value.
te::sa::KernelTree m_kTree
Attribute used to locate near geometries.
A class that models the description of a dataset.
void saveDataSet(te::da::DataSet *dataSet, te::da::DataSetType *dsType)
std::unique_ptr< te::mem::DataSet > runDataSetKernel(te::sa::KernelInputParams *inputParams, te::sa::KernelTree &kTree, te::sa::KernelMap &kMap, te::da::DataSetType *dsType)
PrimaryKey * getPrimaryKey() const
It returns the primary key associated to the dataset type.
const std::vector< te::dt::Property * > & getProperties() const
It returns the properties that take part of the primary key.
void runRasterKernel(te::sa::KernelInputParams *inputParams, te::sa::KernelTree &kTree, te::sa::KernelMap &kMap, te::rst::Raster *raster)
virtual bool moveNext()=0
It moves the internal pointer to the next item of the collection.
An Envelope defines a 2D rectangular region.
virtual std::string getAsString(std::size_t i, int precision=0) const
Method for retrieving a data value as a string plain representation.
Utility functions for the data access module.
This file contains a class that represents the kernel map operation.
std::unique_ptr< te::sa::KernelInputParams > m_inputParams
Kernel input parameters.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
KernelOutputType
Defines the kernel result storage mode.
A dataset is the unit of information manipulated by the data access module of TerraLib.
std::unique_ptr< te::sa::KernelOutputParams > m_outputParams
Attribute with the kernel output parameters.
virtual void execute()
Function to execute the kernel operation.
void insert(const te::gm::Envelope &mbr, const DATATYPE &data)
It inserts an item into the tree.
virtual 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.
It describes a primary key (pk) constraint.
virtual bool moveBeforeFirst()=0
It moves the internal pointer to a position before the first item in the collection.
KernelMapOperation()
Default constructor.
TESAEXPORT double GetDataValue(te::dt::AbstractData *ad)
Function used to get the numeric value from a gpm property.
te::sa::KernelMap m_kMap
Kernel map with input data.
TEDATAACCESSEXPORT te::gm::GeometryProperty * GetFirstGeomProperty(const DataSetType *dt)
std::unique_ptr< te::da::DataSetType > createDataSetType(te::da::DataSetType *dsType)
~KernelMapOperation()
Virtual destructor.
std::unique_ptr< te::rst::Raster > buildRaster(te::sa::KernelInputParams *inputParams, te::sa::KernelTree &kTree, std::string driver)
void setInputParameters(te::sa::KernelInputParams *inParams)
const std::string & getName() const
It returns the property name.