#include <RasterToVector.h>
Public Member Functions | |
bool | paramsAreValid () |
RasterToVector () | |
bool | run () |
void | setInput (te::da::DataSourcePtr inRasterDsrc, std::string inRasterName, std::auto_ptr< te::da::DataSetType > inRasterDsType, te::da::DataSourcePtr inVectorDsrc, std::string inVectorName, std::auto_ptr< te::da::DataSetType > inVectorDsType) |
void | setOutput (te::da::DataSourcePtr outDsrc, std::string dsName) |
void | setParams (std::vector< unsigned int > bands, std::vector< te::stat::StatisticalSummary > statSum, bool texture) |
~RasterToVector () | |
Protected Member Functions | |
std::auto_ptr < te::da::DataSetType > | getDataSetType () |
std::vector< te::rp::Texture > | getTexture (te::rst::Raster *rst, te::gm::Geometry *geom, int bands) |
bool | save (std::auto_ptr< te::mem::DataSet > result, std::auto_ptr< te::da::DataSetType > outDsType) |
Protected Attributes | |
std::vector< unsigned int > | m_bands |
te::da::DataSourcePtr | m_inRasterDsrc |
std::auto_ptr < te::da::DataSetType > | m_inRasterDsType |
std::string | m_inRasterName |
te::da::DataSourcePtr | m_inVectorDsrc |
std::auto_ptr < te::da::DataSetType > | m_inVectorDsType |
std::string | m_inVectorName |
std::string | m_outDset |
te::da::DataSourcePtr | m_outDsrc |
std::vector < te::stat::StatisticalSummary > | m_statSum |
bool | m_texture |
Definition at line 57 of file RasterToVector.h.
te::attributefill::RasterToVector::RasterToVector | ( | ) |
Definition at line 58 of file RasterToVector.cpp.
|
inline |
Definition at line 63 of file RasterToVector.h.
|
protected |
Definition at line 313 of file RasterToVector.cpp.
References te::dt::DOUBLE_TYPE, te::da::Constraint::getName(), and te::da::Constraint::setName().
|
protected |
Definition at line 415 of file RasterToVector.cpp.
References te::gm::GeometryCollection::getGeometryN(), te::gm::Geometry::getGeomTypeId(), te::rp::RasterAttributes::getGLCM(), te::rp::RasterAttributes::getGLCMMetrics(), and te::gm::MultiPolygonType.
bool te::attributefill::RasterToVector::paramsAreValid | ( | ) |
Definition at line 92 of file RasterToVector.cpp.
Referenced by te::attributefill::RasterToVectorDialog::onOkPushButtonClicked().
bool te::attributefill::RasterToVector::run | ( | ) |
Definition at line 106 of file RasterToVector.cpp.
References te::stat::AMPLITUDE, te::stat::COUNT, te::da::GetFirstGeomProperty(), te::da::GetFirstRasterProperty(), te::gm::GeometryCollection::getGeometryN(), te::dt::Property::getName(), te::gm::GeometryCollection::getNumGeometries(), te::rp::RasterAttributes::getStatistics(), te::rp::RasterAttributes::getValuesFromRaster(), te::common::TaskProgress::isActive(), te::stat::KURTOSIS, te::stat::NumericStatisticalSummary::m_amplitude, te::stat::NumericStatisticalSummary::m_count, te::stat::NumericStatisticalSummary::m_kurtosis, te::stat::NumericStatisticalSummary::m_maxVal, te::stat::NumericStatisticalSummary::m_mean, te::stat::NumericStatisticalSummary::m_median, te::stat::NumericStatisticalSummary::m_minVal, te::stat::NumericStatisticalSummary::m_mode, te::stat::NumericStatisticalSummary::m_skewness, te::stat::NumericStatisticalSummary::m_stdDeviation, te::stat::NumericStatisticalSummary::m_sum, te::stat::NumericStatisticalSummary::m_validCount, te::stat::NumericStatisticalSummary::m_varCoeff, te::stat::NumericStatisticalSummary::m_variance, te::stat::MAX_VALUE, te::stat::MEAN, te::stat::MEDIAN, te::stat::MIN_VALUE, te::stat::MODE, te::gm::MultiPolygonType, te::gm::PolygonType, te::common::TaskProgress::pulse(), te::mem::DataSetItem::setDouble(), te::mem::DataSetItem::setString(), te::common::TaskProgress::setTotalSteps(), te::mem::DataSetItem::setValue(), te::stat::SKEWNESS, te::stat::STANDARD_DEVIATION, te::stat::SUM, TE_TR, te::common::TaskProgress::useTimer(), te::stat::VALID_COUNT, te::stat::VAR_COEFF, and te::stat::VARIANCE.
Referenced by te::attributefill::RasterToVectorDialog::onOkPushButtonClicked().
|
protected |
Definition at line 444 of file RasterToVector.cpp.
References te::da::PrimaryKey::add(), te::da::CreateAdapter(), and te::da::DataSetTypeConverter::getResult().
void te::attributefill::RasterToVector::setInput | ( | te::da::DataSourcePtr | inRasterDsrc, |
std::string | inRasterName, | ||
std::auto_ptr< te::da::DataSetType > | inRasterDsType, | ||
te::da::DataSourcePtr | inVectorDsrc, | ||
std::string | inVectorName, | ||
std::auto_ptr< te::da::DataSetType > | inVectorDsType | ||
) |
Definition at line 62 of file RasterToVector.cpp.
Referenced by te::attributefill::RasterToVectorDialog::onOkPushButtonClicked().
void te::attributefill::RasterToVector::setOutput | ( | te::da::DataSourcePtr | outDsrc, |
std::string | dsName | ||
) |
Definition at line 86 of file RasterToVector.cpp.
Referenced by te::attributefill::RasterToVectorDialog::onOkPushButtonClicked().
void te::attributefill::RasterToVector::setParams | ( | std::vector< unsigned int > | bands, |
std::vector< te::stat::StatisticalSummary > | statSum, | ||
bool | texture | ||
) |
Definition at line 77 of file RasterToVector.cpp.
Referenced by te::attributefill::RasterToVectorDialog::onOkPushButtonClicked().
|
protected |
Definition at line 100 of file RasterToVector.h.
|
protected |
Definition at line 92 of file RasterToVector.h.
|
protected |
Definition at line 94 of file RasterToVector.h.
|
protected |
Definition at line 93 of file RasterToVector.h.
|
protected |
Definition at line 95 of file RasterToVector.h.
|
protected |
Definition at line 97 of file RasterToVector.h.
|
protected |
Definition at line 96 of file RasterToVector.h.
|
protected |
Definition at line 104 of file RasterToVector.h.
|
protected |
Definition at line 103 of file RasterToVector.h.
|
protected |
Definition at line 99 of file RasterToVector.h.
|
protected |
Definition at line 101 of file RasterToVector.h.