29 #ifndef __TERRALIB_ATTRIBUTEFILL_INTERNAL_RASTER_TO_VECTOR_H
30 #define __TERRALIB_ATTRIBUTEFILL_INTERNAL_RASTER_TO_VECTOR_H
34 #include "../dataaccess/dataset/DataSet.h"
35 #include "../dataaccess/dataset/DataSetType.h"
36 #include "../dataaccess/dataset/DataSetTypeConverter.h"
37 #include "../dataaccess/dataset/ObjectIdSet.h"
38 #include "../dataaccess/datasource/DataSource.h"
40 #include "../datatype/Property.h"
42 #include "../memory/DataSet.h"
43 #include "../raster/Raster.h"
44 #include "../rp/Texture.h"
45 #include "../statistics/core/Enums.h"
56 namespace attributefill
69 std::string inVectorName,
74 std::vector<te::stat::StatisticalSummary> statSum,
75 bool iteratorByBox,
bool texture);
85 unsigned int inputRasterBand,
86 std::vector<double>& values);
89 std::vector<std::vector<double> > pixelDistinct =
90 std::vector<std::vector<double> >());
95 void joinMaps(std::map<double, int>& mainMap, std::map<double, int>& newMap);
97 void joinMaps(std::map<double, double>& mainMap, std::map<double, double>& newMap);
void setParams(std::vector< unsigned int > bands, std::vector< te::stat::StatisticalSummary > statSum, bool iteratorByBox, bool texture)
std::vector< unsigned int > m_bands
std::string m_inVectorName
te::da::DataSourcePtr m_outDsrc
std::unique_ptr< te::da::DataSetTypeConverter > m_inVectorDsType
std::vector< te::stat::StatisticalSummary > m_statSum
std::vector< te::rp::Texture > getTexture(te::rst::Raster *rst, te::gm::Geometry *geom, int band)
std::unique_ptr< da::DataSetType > getDataSetType(std::vector< std::vector< double > > pixelDistinct=std::vector< std::vector< double > >())
const te::da::ObjectIdSet * m_oidSet
te::da::DataSourcePtr m_inVectorDsrc
void joinMaps(std::map< double, double > &mainMap, std::map< double, double > &newMap)
void getPixelDistinct(rst::Raster &inputRaster, unsigned int inputRasterBand, std::vector< double > &values)
void setOutput(te::da::DataSourcePtr outDsrc, std::string dsName)
void setInput(te::rst::Raster *inRaster, te::da::DataSourcePtr inVectorDsrc, std::string inVectorName, te::da::DataSetTypeConverter *inVectorDsType, const te::da::ObjectIdSet *oidSet=0)
void save(te::da::DataSet *result, te::da::DataSetType *outDsType)
te::rst::Raster * m_inRaster
void joinMaps(std::map< double, int > &mainMap, std::map< double, int > &newMap)
An converter for DataSetType.
A class that models the description of a dataset.
A dataset is the unit of information manipulated by the data access module of TerraLib.
This class represents a set of unique ids created in the same context. i.e. from the same data set.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
An abstract class for raster data strucutures.
boost::shared_ptr< DataSource > DataSourcePtr
#define TEATTRIBUTEFILLEXPORT
You can use this macro in order to export/import classes and functions from this module.
Proxy configuration file for TerraView (see terraview_config.h).