te::attributefill::VectorToRaster Class Reference

#include <VectorToRaster.h>

Public Member Functions

bool paramsAreValid ()
 
bool run ()
 
void setInput (te::da::DataSourcePtr inVectorDsrc, std::string inVectorName, std::unique_ptr< te::da::DataSetTypeConverter > inVectorDsType)
 
void setOutput (te::da::DataSourcePtr outDsrc, std::string dsName)
 
void setParams (std::vector< std::string > selectedAttVec, double resolutionX, double resolutionY, int columns, int rows, bool useDummy, int dummy=0)
 
 VectorToRaster ()
 
 ~VectorToRaster ()
 

Protected Attributes

int m_columns
 
int m_dummy
 
te::da::DataSourcePtr m_inVectorDsrc
 
std::unique_ptr< te::da::DataSetTypeConverterm_inVectorDsType
 
std::string m_inVectorName
 
std::string m_outDset
 
te::da::DataSourcePtr m_outDsrc
 
double m_resolutionX
 
double m_resolutionY
 
int m_rows
 
std::vector< std::string > m_selectedAttVec
 
bool m_setDummy
 

Detailed Description

Definition at line 55 of file VectorToRaster.h.

Constructor & Destructor Documentation

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

Definition at line 61 of file VectorToRaster.h.

Member Function Documentation

bool te::attributefill::VectorToRaster::run ( )

Definition at line 121 of file src/terralib/attributefill/VectorToRaster.cpp.

References b, te::rst::PolygonIterator< T >::begin(), te::rst::LineIterator< T >::begin(), te::rst::PointSetIterator< T >::begin(), te::dt::DOUBLE_TYPE, te::rst::PolygonIterator< T >::end(), te::rst::LineIterator< T >::end(), te::rst::PointSetIterator< T >::end(), te::rst::FillRaster(), te::rst::PolygonIterator< T >::getColumn(), te::rst::LineIterator< T >::getColumn(), te::rst::PointSetIterator< T >::getColumn(), te::da::GetFirstGeomProperty(), te::dt::Property::getName(), te::gm::LineString::getNPoints(), te::gm::LineString::getPointN(), te::rst::PolygonIterator< T >::getRow(), te::rst::LineIterator< T >::getRow(), te::rst::PointSetIterator< T >::getRow(), te::gm::GeometryProperty::getSRID(), te::sa::Grid, te::common::TaskProgress::isActive(), line, te::gm::LineStringType, m_dummy, m_inVectorDsrc, m_inVectorDsType, m_inVectorName, te::rst::BandProperty::m_noDataValue, m_outDsrc, m_resolutionX, m_resolutionY, m_selectedAttVec, m_setDummy, te::rst::RasterFactory::make(), te::gm::Multi2Single(), te::gm::MultiLineStringType, te::gm::MultiPointType, te::gm::MultiPolygonType, te::gm::PointType, te::gm::PolygonType, te::common::TaskProgress::pulse(), mixture::rst, te::gm::Point::setSRID(), te::gm::CurvePolygon::setSRID(), te::common::TaskProgress::setTotalSteps(), TE_TR, and te::common::TaskProgress::useTimer().

Referenced by te::attributefill::VectorToRasterDialog::onOkPushButtonClicked(), and VectorToRaster().

void te::attributefill::VectorToRaster::setInput ( te::da::DataSourcePtr  inVectorDsrc,
std::string  inVectorName,
std::unique_ptr< te::da::DataSetTypeConverter inVectorDsType 
)
void te::attributefill::VectorToRaster::setOutput ( te::da::DataSourcePtr  outDsrc,
std::string  dsName 
)
void te::attributefill::VectorToRaster::setParams ( std::vector< std::string >  selectedAttVec,
double  resolutionX,
double  resolutionY,
int  columns,
int  rows,
bool  useDummy,
int  dummy = 0 
)

Member Data Documentation

int te::attributefill::VectorToRaster::m_columns
protected

Definition at line 90 of file VectorToRaster.h.

Referenced by paramsAreValid(), and setParams().

int te::attributefill::VectorToRaster::m_dummy
protected

Definition at line 93 of file VectorToRaster.h.

Referenced by run(), and setParams().

te::da::DataSourcePtr te::attributefill::VectorToRaster::m_inVectorDsrc
protected

Definition at line 83 of file VectorToRaster.h.

Referenced by run(), and setInput().

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

Definition at line 85 of file VectorToRaster.h.

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

std::string te::attributefill::VectorToRaster::m_inVectorName
protected

Definition at line 84 of file VectorToRaster.h.

Referenced by run(), and setInput().

std::string te::attributefill::VectorToRaster::m_outDset
protected

Definition at line 96 of file VectorToRaster.h.

Referenced by paramsAreValid(), and setOutput().

te::da::DataSourcePtr te::attributefill::VectorToRaster::m_outDsrc
protected

Definition at line 95 of file VectorToRaster.h.

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

double te::attributefill::VectorToRaster::m_resolutionX
protected

Definition at line 88 of file VectorToRaster.h.

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

double te::attributefill::VectorToRaster::m_resolutionY
protected

Definition at line 89 of file VectorToRaster.h.

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

int te::attributefill::VectorToRaster::m_rows
protected

Definition at line 91 of file VectorToRaster.h.

Referenced by paramsAreValid(), and setParams().

std::vector<std::string> te::attributefill::VectorToRaster::m_selectedAttVec
protected

Definition at line 87 of file VectorToRaster.h.

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

bool te::attributefill::VectorToRaster::m_setDummy
protected

Definition at line 92 of file VectorToRaster.h.

Referenced by run(), and setParams().


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