#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::DataSetType > | getDataSetType (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::Texture > | getTexture (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 int > | m_bands |
| te::rst::Raster * | m_inRaster |
| te::da::DataSourcePtr | m_inVectorDsrc |
| std::unique_ptr< te::da::DataSetTypeConverter > | m_inVectorDsType |
| std::string | m_inVectorName |
| bool | m_iteratorByBox |
| const te::da::ObjectIdSet * | m_oidSet |
| std::string | m_outDset |
| te::da::DataSourcePtr | m_outDsrc |
| std::vector< te::stat::StatisticalSummary > | m_statSum |
| bool | m_texture |
Definition at line 58 of file RasterToVector.h.
|
default |
|
inline |
Definition at line 63 of file RasterToVector.h.
References band, compose::bands, and mixture::rst.
|
protected |
Definition at line 679 of file src/terralib/attributefill/RasterToVector.cpp.
References b, te::dt::DOUBLE_TYPE, m_bands, m_inVectorDsType, m_outDset, m_statSum, m_texture, and te::da::Constraint::setName().
Referenced by run().
|
protected |
Definition at line 640 of file src/terralib/attributefill/RasterToVector.cpp.
References col, te::rst::Raster::getBand(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::rst::Band::getProperty(), te::rst::Band::getValue(), te::rst::BandProperty::m_noDataValue, and nCols.
Referenced by run().
|
protected |
Definition at line 850 of file src/terralib/attributefill/RasterToVector.cpp.
References te::rst::Raster::getBandDataType(), te::rst::GetDataTypeRanges(), te::gm::GeometryCollection::getGeometryN(), te::gm::Geometry::getGeomTypeId(), te::rp::RasterAttributes::getGLCM(), te::rp::RasterAttributes::getGLCMMetrics(), te::common::Singleton< RasterSummaryManager >::getInstance(), te::gm::MultiPolygonType, te::rst::SUMMARY_MAX, and te::rst::SUMMARY_MIN.
Referenced by run().
|
protected |
Definition at line 891 of file src/terralib/attributefill/RasterToVector.cpp.
Referenced by run().
|
protected |
Definition at line 903 of file src/terralib/attributefill/RasterToVector.cpp.
| bool te::attributefill::RasterToVector::paramsAreValid | ( | ) |
Definition at line 102 of file src/terralib/attributefill/RasterToVector.cpp.
References m_inVectorDsType, m_outDset, and m_outDsrc.
Referenced by te::attributefill::RasterToVectorDialog::onOkPushButtonClicked(), RasterToVectorInPGIS(), and RasterToVectorInSHP().
| 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().
|
protected |
Definition at line 915 of file src/terralib/attributefill/RasterToVector.cpp.
References te::dt::Property::getName(), te::da::DataSetTypeConverter::getResult(), m_outDsrc, te::da::DataSet::moveBeforeFirst(), and te::common::Tokenize().
Referenced by run().
| 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 |
||
| ) |
Definition at line 71 of file src/terralib/attributefill/RasterToVector.cpp.
References m_inRaster, m_inVectorDsrc, m_inVectorDsType, m_inVectorName, and m_oidSet.
Referenced by te::attributefill::RasterToVectorDialog::onOkPushButtonClicked(), RasterToVectorInPGIS(), and RasterToVectorInSHP().
| void te::attributefill::RasterToVector::setOutput | ( | te::da::DataSourcePtr | outDsrc, |
| std::string | dsName | ||
| ) |
Definition at line 95 of file src/terralib/attributefill/RasterToVector.cpp.
References m_outDset, and m_outDsrc.
Referenced by te::attributefill::RasterToVectorDialog::onOkPushButtonClicked(), RasterToVectorInPGIS(), and RasterToVectorInSHP().
| void te::attributefill::RasterToVector::setParams | ( | std::vector< unsigned int > | bands, |
| std::vector< te::stat::StatisticalSummary > | statSum, | ||
| bool | iteratorByBox, | ||
| bool | texture | ||
| ) |
Definition at line 83 of file src/terralib/attributefill/RasterToVector.cpp.
References compose::bands, m_bands, m_iteratorByBox, m_statSum, and m_texture.
Referenced by te::attributefill::RasterToVectorDialog::onOkPushButtonClicked(), RasterToVectorInPGIS(), and RasterToVectorInSHP().
|
protected |
Definition at line 108 of file RasterToVector.h.
Referenced by getDataSetType(), run(), and setParams().
|
protected |
Definition at line 101 of file RasterToVector.h.
Referenced by run(), and setInput().
|
protected |
Definition at line 102 of file RasterToVector.h.
Referenced by run(), and setInput().
|
protected |
Definition at line 104 of file RasterToVector.h.
Referenced by getDataSetType(), paramsAreValid(), run(), and setInput().
|
protected |
Definition at line 103 of file RasterToVector.h.
Referenced by run(), and setInput().
|
protected |
Definition at line 109 of file RasterToVector.h.
Referenced by run(), and setParams().
|
protected |
Definition at line 105 of file RasterToVector.h.
Referenced by run(), and setInput().
|
protected |
Definition at line 113 of file RasterToVector.h.
Referenced by getDataSetType(), paramsAreValid(), and setOutput().
|
protected |
Definition at line 112 of file RasterToVector.h.
Referenced by paramsAreValid(), save(), and setOutput().
|
protected |
Definition at line 107 of file RasterToVector.h.
Referenced by getDataSetType(), run(), and setParams().
|
protected |
Definition at line 110 of file RasterToVector.h.
Referenced by getDataSetType(), run(), and setParams().