te::mnt::Profile Class Reference

#include <Profile.h>

Public Member Functions

std::unique_ptr< te::rst::RastergetPrepareRaster ()
 Reads raster. More...
 
 Profile ()
 Default constructor. More...
 
bool runIsolinesProfile (std::vector< te::gm::LineString * > visadas, std::vector< te::gm::LineString * > &profileSet)
 Calculate Profile from isolines. More...
 
bool runRasterProfile (std::vector< te::gm::LineString * > visadas, std::vector< te::gm::LineString * > &profileSet)
 Calculate Profile from raster. More...
 
bool runTINProfile (std::vector< te::gm::LineString * > visadas, std::vector< te::gm::LineString * > &profileSet)
 Calculate Profile from TIN. More...
 
void setInput (te::da::DataSourcePtr inDsrc, std::string inName, std::unique_ptr< te::da::DataSetType > inDsetType, double dummy, std::string zattr)
 Sets input parameters to calculate profile. More...
 
void setSRID (int srid)
 Sets SRID. More...
 
 ~Profile ()
 Virtual destructor. More...
 

Private Member Functions

te::gm::LineStringcalculateProfile (std::vector< te::gm::Geometry * > &isolines, te::gm::LineString &trajectory)
 

Private Attributes

std::string m_attrZ
 Z attribute name. More...
 
double m_dummy
 Nodata value. More...
 
te::da::DataSourcePtr m_inDsrc
 Input Datasource. More...
 
std::unique_ptr< te::da::DataSetTypem_inDsType
 Input datasettype. More...
 
std::string m_inName
 Input data name. More...
 
int m_srid
 Attribute with spatial reference information. More...
 

Detailed Description

Definition at line 60 of file Profile.h.

Constructor & Destructor Documentation

te::mnt::Profile::Profile ( )
default

Default constructor.

te::mnt::Profile::~Profile ( )
default

Virtual destructor.

Member Function Documentation

std::unique_ptr< te::rst::Raster > te::mnt::Profile::getPrepareRaster ( )

Reads raster.

Definition at line 90 of file Profile.cpp.

References ds, te::da::GetFirstRasterProperty(), te::dt::Property::getName(), m_inDsrc, and m_inName.

Referenced by runRasterProfile().

void te::mnt::Profile::setInput ( te::da::DataSourcePtr  inDsrc,
std::string  inName,
std::unique_ptr< te::da::DataSetType inDsetType,
double  dummy,
std::string  zattr 
)

Sets input parameters to calculate profile.

Definition at line 80 of file Profile.cpp.

References m_attrZ, m_dummy, m_inDsrc, m_inDsType, and m_inName.

void te::mnt::Profile::setSRID ( int  srid)
inline

Sets SRID.

Definition at line 93 of file Profile.h.

Member Data Documentation

std::string te::mnt::Profile::m_attrZ
private

Z attribute name.

Definition at line 103 of file Profile.h.

Referenced by runIsolinesProfile(), and setInput().

double te::mnt::Profile::m_dummy
private

Nodata value.

Definition at line 99 of file Profile.h.

Referenced by runRasterProfile(), and setInput().

te::da::DataSourcePtr te::mnt::Profile::m_inDsrc
private

Input Datasource.

Definition at line 100 of file Profile.h.

Referenced by getPrepareRaster(), runIsolinesProfile(), runTINProfile(), and setInput().

std::unique_ptr<te::da::DataSetType> te::mnt::Profile::m_inDsType
private

Input datasettype.

Definition at line 102 of file Profile.h.

Referenced by setInput().

std::string te::mnt::Profile::m_inName
private

Input data name.

Definition at line 101 of file Profile.h.

Referenced by getPrepareRaster(), runIsolinesProfile(), runTINProfile(), and setInput().

int te::mnt::Profile::m_srid
private

Attribute with spatial reference information.

Definition at line 98 of file Profile.h.

Referenced by calculateProfile(), runIsolinesProfile(), runRasterProfile(), and runTINProfile().


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