te::attributefill::RasterToVector Class Reference

#include <RasterToVector.h>

Public Member Functions

bool paramsAreValid ()
 
 RasterToVector ()
 
bool run ()
 
void setInput (te::rst::Raster *inRaster, te::da::DataSourcePtr inVectorDsrc, std::string inVectorName, te::da::DataSetTypeConverter *inVectorDsType, const te::da::ObjectIdSet *oidSet=0)
 
void setOutput (te::da::DataSourcePtr outDsrc, std::string dsName)
 
void setParams (std::vector< unsigned int > bands, std::vector< te::stat::StatisticalSummary > statSum, bool iteratorByBox, bool texture)
 
 ~RasterToVector ()
 

Protected Member Functions

std::unique_ptr< da::DataSetTypegetDataSetType (std::vector< std::vector< double > > pixelDistinct=std::vector< std::vector< double > >())
 
void getPixelDistinct (rst::Raster &inputRaster, unsigned int inputRasterBand, std::vector< double > &values)
 
std::vector< te::rp::TexturegetTexture (te::rst::Raster *rst, te::gm::Geometry *geom, int band)
 
void joinMaps (std::map< double, int > &mainMap, std::map< double, int > &newMap)
 
void joinMaps (std::map< double, double > &mainMap, std::map< double, double > &newMap)
 
void save (te::da::DataSet *result, te::da::DataSetType *outDsType)
 

Protected Attributes

std::vector< unsigned intm_bands
 
te::rst::Rasterm_inRaster
 
te::da::DataSourcePtr m_inVectorDsrc
 
std::unique_ptr< te::da::DataSetTypeConverterm_inVectorDsType
 
std::string m_inVectorName
 
bool m_iteratorByBox
 
const te::da::ObjectIdSetm_oidSet
 
std::string m_outDset
 
te::da::DataSourcePtr m_outDsrc
 
std::vector< te::stat::StatisticalSummarym_statSum
 
bool m_texture
 

Detailed Description

Definition at line 58 of file RasterToVector.h.

Constructor & Destructor Documentation

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

Definition at line 63 of file RasterToVector.h.

References band, compose::bands, and mixture::rst.

Member Function Documentation

std::unique_ptr< te::da::DataSetType > te::attributefill::RasterToVector::getDataSetType ( std::vector< std::vector< double > >  pixelDistinct = std::vector<std::vector<double> >())
protected
void te::attributefill::RasterToVector::getPixelDistinct ( rst::Raster inputRaster,
unsigned int  inputRasterBand,
std::vector< double > &  values 
)
protected
void te::attributefill::RasterToVector::joinMaps ( std::map< double, int > &  mainMap,
std::map< double, int > &  newMap 
)
protected

Definition at line 891 of file src/terralib/attributefill/RasterToVector.cpp.

Referenced by run().

void te::attributefill::RasterToVector::joinMaps ( std::map< double, double > &  mainMap,
std::map< double, double > &  newMap 
)
protected
bool te::attributefill::RasterToVector::paramsAreValid ( )
bool te::attributefill::RasterToVector::run ( )

Definition at line 116 of file src/terralib/attributefill/RasterToVector.cpp.

References te::stat::AMPLITUDE, b, band, te::stat::COUNT, te::da::CreateAdapter(), te::rst::Grid::geoToGrid(), te::gm::CurvePolygon::getArea(), te::rst::Raster::getBand(), getDataSetType(), te::rst::Raster::getExtent(), te::da::GetFirstGeomProperty(), te::gm::GeometryCollection::getGeometryN(), te::rst::Raster::getGrid(), te::attributefill::GetMinMaxLineAndColumn(), te::dt::Property::getName(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::stat::GetNumericStatisticalSummary(), te::gm::GeometryCollection::getNumGeometries(), te::stat::GetPercentOfEachClassByArea(), te::attributefill::GetPercentOfEachClassByArea(), getPixelDistinct(), te::rst::Band::getProperty(), te::mem::DataSetItem::getPropertyName(), te::rst::Raster::getResolutionX(), te::rst::Raster::getResolutionY(), te::gm::GeometryProperty::getSRID(), te::rst::Raster::getSRID(), getTexture(), te::rst::Raster::getValue(), te::attributefill::GetValuesFromBand(), te::rp::RasterAttributes::getValuesFromBand(), te::gm::Point::getX(), te::gm::Point::getY(), te::gm::Envelope::intersects(), te::common::TaskProgress::isActive(), joinMaps(), te::stat::KURTOSIS, te::stat::NumericStatisticalSummary::m_amplitude, m_bands, te::stat::NumericStatisticalSummary::m_count, m_inRaster, m_inVectorDsrc, m_inVectorDsType, m_inVectorName, m_iteratorByBox, 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::rst::BandProperty::m_noDataValue, m_oidSet, te::stat::NumericStatisticalSummary::m_percentEachClass, te::stat::NumericStatisticalSummary::m_skewness, m_statSum, te::stat::NumericStatisticalSummary::m_stdDeviation, te::stat::NumericStatisticalSummary::m_sum, m_texture, 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::Multi2Single(), te::gm::MultiPointType, te::gm::MultiPolygonType, te::stat::PERCENT_EACH_CLASS_BY_AREA, te::gm::PointType, te::gm::PolygonType, te::common::TaskProgress::pulse(), te::rst::Round(), save(), 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, te::stat::VARIANCE, te::gm::Coord2D::x, and te::gm::Coord2D::y.

Referenced by te::attributefill::RasterToVectorDialog::onOkPushButtonClicked(), RasterToVectorInPGIS(), and RasterToVectorInSHP().

void te::attributefill::RasterToVector::save ( te::da::DataSet result,
te::da::DataSetType outDsType 
)
protected
void te::attributefill::RasterToVector::setInput ( te::rst::Raster inRaster,
te::da::DataSourcePtr  inVectorDsrc,
std::string  inVectorName,
te::da::DataSetTypeConverter inVectorDsType,
const te::da::ObjectIdSet oidSet = 0 
)
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  iteratorByBox,
bool  texture 
)

Member Data Documentation

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

Definition at line 108 of file RasterToVector.h.

Referenced by getDataSetType(), run(), and setParams().

te::rst::Raster* te::attributefill::RasterToVector::m_inRaster
protected

Definition at line 101 of file RasterToVector.h.

Referenced by run(), and setInput().

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

Definition at line 102 of file RasterToVector.h.

Referenced by run(), and setInput().

std::unique_ptr<te::da::DataSetTypeConverter> te::attributefill::RasterToVector::m_inVectorDsType
protected

Definition at line 104 of file RasterToVector.h.

Referenced by getDataSetType(), paramsAreValid(), run(), and setInput().

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

Definition at line 103 of file RasterToVector.h.

Referenced by run(), and setInput().

bool te::attributefill::RasterToVector::m_iteratorByBox
protected

Definition at line 109 of file RasterToVector.h.

Referenced by run(), and setParams().

const te::da::ObjectIdSet* te::attributefill::RasterToVector::m_oidSet
protected

Definition at line 105 of file RasterToVector.h.

Referenced by run(), and setInput().

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

Definition at line 113 of file RasterToVector.h.

Referenced by getDataSetType(), paramsAreValid(), and setOutput().

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

Definition at line 112 of file RasterToVector.h.

Referenced by paramsAreValid(), save(), and setOutput().

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

Definition at line 107 of file RasterToVector.h.

Referenced by getDataSetType(), run(), and setParams().

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

Definition at line 110 of file RasterToVector.h.

Referenced by getDataSetType(), run(), and setParams().


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