All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::attributefill::RasterToVector Class Reference

#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::TexturegetTexture (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
 

Detailed Description

Definition at line 57 of file RasterToVector.h.

Constructor & Destructor Documentation

te::attributefill::RasterToVector::RasterToVector ( )

Definition at line 58 of file RasterToVector.cpp.

te::attributefill::RasterToVector::~RasterToVector ( )
inline

Definition at line 63 of file RasterToVector.h.

Member Function Documentation

std::auto_ptr< te::da::DataSetType > te::attributefill::RasterToVector::getDataSetType ( )
protected
std::vector< te::rp::Texture > te::attributefill::RasterToVector::getTexture ( te::rst::Raster rst,
te::gm::Geometry geom,
int  bands 
)
protected
bool te::attributefill::RasterToVector::paramsAreValid ( )
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().

bool te::attributefill::RasterToVector::save ( std::auto_ptr< te::mem::DataSet result,
std::auto_ptr< te::da::DataSetType outDsType 
)
protected
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 
)
void te::attributefill::RasterToVector::setOutput ( te::da::DataSourcePtr  outDsrc,
std::string  dsName 
)
void te::attributefill::RasterToVector::setParams ( std::vector< unsigned int >  bands,
std::vector< te::stat::StatisticalSummary statSum,
bool  texture 
)

Member Data Documentation

std::vector<unsigned int> te::attributefill::RasterToVector::m_bands
protected

Definition at line 100 of file RasterToVector.h.

te::da::DataSourcePtr te::attributefill::RasterToVector::m_inRasterDsrc
protected

Definition at line 92 of file RasterToVector.h.

std::auto_ptr<te::da::DataSetType> te::attributefill::RasterToVector::m_inRasterDsType
protected

Definition at line 94 of file RasterToVector.h.

std::string te::attributefill::RasterToVector::m_inRasterName
protected

Definition at line 93 of file RasterToVector.h.

te::da::DataSourcePtr te::attributefill::RasterToVector::m_inVectorDsrc
protected

Definition at line 95 of file RasterToVector.h.

std::auto_ptr<te::da::DataSetType> te::attributefill::RasterToVector::m_inVectorDsType
protected

Definition at line 97 of file RasterToVector.h.

std::string te::attributefill::RasterToVector::m_inVectorName
protected

Definition at line 96 of file RasterToVector.h.

std::string te::attributefill::RasterToVector::m_outDset
protected

Definition at line 104 of file RasterToVector.h.

te::da::DataSourcePtr te::attributefill::RasterToVector::m_outDsrc
protected

Definition at line 103 of file RasterToVector.h.

std::vector<te::stat::StatisticalSummary> te::attributefill::RasterToVector::m_statSum
protected

Definition at line 99 of file RasterToVector.h.

bool te::attributefill::RasterToVector::m_texture
protected

Definition at line 101 of file RasterToVector.h.


The documentation for this class was generated from the following files: