Class used to calculate the kernel ratio of a datasets. More...
#include <KernelRatioOperation.h>
Public Member Functions | |
virtual void | execute () |
Function to execute the kernel operation. More... | |
KernelRatioOperation () | |
Default constructor. More... | |
void | setInputParameters (te::sa::KernelInputParams *inParamsA, te::sa::KernelInputParams *inParamsB) |
void | setOutputParameters (te::sa::KernelOutputParams *outParams) |
~KernelRatioOperation () | |
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_inputParamsA |
Kernel input parameters A. More... | |
std::auto_ptr< te::sa::KernelInputParams > | m_inputParamsB |
Kernel input parameters B. More... | |
te::sa::KernelMap | m_kMapA |
Kernel map with input data A. More... | |
te::sa::KernelMap | m_kMapB |
Kernel map with input data B. 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 ratio of a datasets.
Definition at line 53 of file KernelRatioOperation.h.
te::sa::KernelRatioOperation::KernelRatioOperation | ( | ) |
Default constructor.
Definition at line 39 of file KernelRatioOperation.cpp.
te::sa::KernelRatioOperation::~KernelRatioOperation | ( | ) |
Virtual destructor.
Definition at line 44 of file KernelRatioOperation.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 141 of file KernelRatioOperation.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 69 of file KernelRatioOperation.cpp.
References te::sa::Attribute, te::sa::DataSetRatioKernel(), te::dt::GEOMETRY_TYPE, te::da::GetFirstPropertyPos(), te::sa::Grid, and te::sa::GridRatioKernel().
Referenced by te::sa::KernelRatioDialog::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::KernelRatioOperation::setInputParameters | ( | te::sa::KernelInputParams * | inParamsA, |
te::sa::KernelInputParams * | inParamsB | ||
) |
Definition at line 135 of file KernelRatioOperation.cpp.
Referenced by te::sa::KernelRatioDialog::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 A.
Definition at line 80 of file KernelRatioOperation.h.
|
protected |
Kernel input parameters B.
Definition at line 81 of file KernelRatioOperation.h.
|
protected |
Kernel map with input data A.
Definition at line 77 of file KernelRatioOperation.h.
|
protected |
Kernel map with input data B.
Definition at line 78 of file KernelRatioOperation.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.