Class used to calculate the kernel map of a dataset. More...
#include <KernelMapOperation.h>
Public Member Functions | |
virtual void | execute () |
Function to execute the kernel operation. More... | |
KernelMapOperation () | |
Default constructor. More... | |
void | setInputParameters (te::sa::KernelInputParams *inParams) |
void | setOutputParameters (te::sa::KernelOutputParams *outParams) |
~KernelMapOperation () | |
Virtual destructor. More... | |
Protected Member Functions | |
std::auto_ptr< te::rst::Raster > | buildRaster (te::sa::KernelInputParams *inputParams, te::sa::KernelTree &kTree, std::string driver) |
virtual void | buildTree () |
std::auto_ptr< te::mem::DataSet > | createDataSet (te::da::DataSet *inputDataSet, te::da::DataSetType *dsType) |
std::auto_ptr < te::da::DataSetType > | createDataSetType (te::da::DataSetType *dsType) |
std::auto_ptr< te::mem::DataSet > | runDataSetKernel (te::sa::KernelInputParams *inputParams, te::sa::KernelTree &kTree, te::sa::KernelMap &kMap, te::da::DataSetType *dsType) |
void | runRasterKernel (te::sa::KernelInputParams *inputParams, te::sa::KernelTree &kTree, te::sa::KernelMap &kMap, te::rst::Raster *raster) |
void | saveDataSet (te::da::DataSet *dataSet, te::da::DataSetType *dsType) |
Protected Attributes | |
std::auto_ptr < te::sa::KernelInputParams > | m_inputParams |
Kernel input parameters. More... | |
te::sa::KernelMap | m_kMap |
Kernel map with input data. More... | |
te::sa::KernelTree | m_kTree |
Attribute used to locate near geometries. More... | |
std::auto_ptr < te::sa::KernelOutputParams > | m_outputParams |
Attribute with the kernel output parameters. More... | |
Class used to calculate the kernel map of a dataset.
Definition at line 53 of file KernelMapOperation.h.
te::sa::KernelMapOperation::KernelMapOperation | ( | ) |
Default constructor.
Definition at line 39 of file KernelMapOperation.cpp.
te::sa::KernelMapOperation::~KernelMapOperation | ( | ) |
Virtual destructor.
Definition at line 44 of file KernelMapOperation.cpp.
|
protectedinherited |
Function used to create the output raster
Definition at line 113 of file KernelOperation.cpp.
References te::dt::DOUBLE_TYPE, te::da::GetFirstGeomProperty(), te::gm::Envelope::getHeight(), te::sam::rtree::Index< DATATYPE, MAXNODES, MINNODES >::getMBR(), te::gm::GeometryProperty::getSRID(), te::gm::Envelope::getWidth(), te::sa::Grid, te::sa::KernelInputParams::m_dsType, te::rst::BandProperty::m_noDataValue, te::rst::RasterFactory::make(), and TE_UNKNOWN_SRS.
|
protectedvirtual |
Function used to build the tree with data set information
Implements te::sa::KernelOperation.
Definition at line 95 of file KernelMapOperation.cpp.
References te::da::DataSet::getAsString(), te::sa::GetDataValue(), te::da::GetFirstGeomProperty(), te::da::DataSet::getGeometry(), te::dt::Property::getName(), te::da::DataSetType::getPrimaryKey(), te::da::PrimaryKey::getProperties(), te::da::DataSet::getValue(), te::da::DataSet::moveBeforeFirst(), and te::da::DataSet::moveNext().
|
protectedinherited |
Function used to create the output dataset
Definition at line 205 of file KernelOperation.cpp.
References te::da::DataSet::getNumProperties(), te::da::DataSet::getValue(), te::da::DataSet::moveBeforeFirst(), te::da::DataSet::moveNext(), te::mem::DataSetItem::setDouble(), and te::mem::DataSetItem::setValue().
|
protectedinherited |
Function used to create the output dataset type
Definition at line 180 of file KernelOperation.cpp.
References te::dt::Property::clone(), te::dt::DOUBLE_TYPE, te::dt::CompositeProperty::getProperties(), te::dt::Property::setId(), and te::dt::Property::setParent().
|
virtual |
Function to execute the kernel operation.
Implements te::sa::KernelOperation.
Definition at line 58 of file KernelMapOperation.cpp.
References te::sa::Attribute, and te::sa::Grid.
Referenced by te::sa::KernelMapDialog::onOkPushButtonClicked().
|
protectedinherited |
Function used to run kernel when output data is dataset
Definition at line 83 of file KernelOperation.cpp.
References te::sa::DataSetAdaptRadiusKernel(), te::sa::DataSetStatRadiusKernel(), te::dt::GEOMETRY_TYPE, te::da::GetFirstPropertyPos(), te::gm::Envelope::getHeight(), te::sam::rtree::Index< DATATYPE, MAXNODES, MINNODES >::getMBR(), te::dt::CompositeProperty::getPropertyPosition(), te::gm::Envelope::getWidth(), te::sa::KernelInputParams::m_ds, te::sa::KernelInputParams::m_radiusPercentValue, and te::sa::KernelInputParams::m_useAdaptativeRadius.
|
protectedinherited |
Function used to run kernel when output data is a raster
Definition at line 64 of file KernelOperation.cpp.
References te::rst::Grid::getExtent(), te::rst::Raster::getGrid(), te::gm::Envelope::getHeight(), te::gm::Envelope::getWidth(), te::sa::GridAdaptRadiusKernel(), te::sa::GridStatRadiusKernel(), te::sa::KernelInputParams::m_radiusPercentValue, and te::sa::KernelInputParams::m_useAdaptativeRadius.
|
protectedinherited |
Function used to save the output dataset
Definition at line 153 of file KernelOperation.cpp.
References te::common::Singleton< DataSourceManager >::getInstance(), and te::da::DataSet::moveBeforeFirst().
void te::sa::KernelMapOperation::setInputParameters | ( | te::sa::KernelInputParams * | inParams | ) |
Definition at line 90 of file KernelMapOperation.cpp.
Referenced by te::sa::KernelMapDialog::onOkPushButtonClicked().
|
inherited |
Definition at line 59 of file KernelOperation.cpp.
Referenced by te::sa::KernelMapDialog::onOkPushButtonClicked(), and te::sa::KernelRatioDialog::onOkPushButtonClicked().
|
protected |
Kernel input parameters.
Definition at line 79 of file KernelMapOperation.h.
|
protected |
Kernel map with input data.
Definition at line 77 of file KernelMapOperation.h.
|
protectedinherited |
Attribute used to locate near geometries.
Definition at line 102 of file KernelOperation.h.
|
protectedinherited |
Attribute with the kernel output parameters.
Definition at line 100 of file KernelOperation.h.