#include <SplineGrassMitasova.h>
Public Member Functions | |
bool | calculateGrid () |
bool | GenerateGridSplineGrass () |
Method to calculate a grid from a vector of samples using a Spline (GRASS) fitting algorithm. More... | |
bool | GenerateGridSplineMitasova () |
Method to calculate a grid from a vector of samples using a Spline (Mitasova) fitting algorithm. More... | |
std::auto_ptr< te::rst::Raster > | Initialize (bool spline, unsigned int &nro_neighb, double &rx1, double &ry2, unsigned int &outputWidth, unsigned int &outputHeight) |
void | Interpolation (te::gm::PointZ &pg, std::vector< te::gm::PointZ > &points, std::vector< double > &distq) |
Interpolates the z value of the pg point3d. \ This method interpolates the z value of the pg point3d using the \ information on the current partition, the dist double vector and. More... | |
double | Interpwq (te::gm::PointZ &pg, std::vector< te::gm::PointZ > &points, std::vector< double > &distq) |
Interpolates the z value of the pg point3d using an weighted average by quadrant. \ Implements the interpolator that uses the average, weighted by the inverse \ square distance, of the nearest neighbours by quadrant. More... | |
double | Interpwqz (te::gm::PointZ &pg, std::vector< te::gm::PointZ > &points, std::vector< double > &distq) |
Interpolates the z value of the pg point3d using an weighted average by quadrant and by z values. \ Implements the interpolator tha uses the average, weighted by the inverse \ square distance, of the nearest neighbours by z values and by quadrant. \ This method accepts no repeated z values in the interpolation. More... | |
bool | run () |
Calculate GRID \ return true or false. More... | |
void | setControlPoints (double xMin, double xMax, double yMin, double yMax, int nMax, double xOrigem, double yOrigem, double dnorm) |
void | setEnvelope (te::gm::Envelope &env) |
void | setInput (te::da::DataSourcePtr inDsrc, std::string inDsetName, std::auto_ptr< te::da::DataSetType > inDsetType) |
It sets the Datasource that is being used to generate TIN. More... | |
void | setOutput (std::map< std::string, std::string > &dsinfo) |
It sets the Datasource that is being used to save TIN. More... | |
void | setParams (const std::string &attr, double resx, double resy, Interpolator gt, double rad, int pow) |
It sets the parameters that is being used to save TIN. More... | |
void | setSRID (int srid) |
SplineInterpolationGrassMitasova (int minPoints=mitasovaMINPOINTS, double tension=mitasovaTENSION, double smooth=mitasovaSMOOTH) | |
Contructors. More... | |
virtual | ~SplineInterpolationGrassMitasova () |
Destructor. More... | |
Protected Attributes | |
KD_ADAPTATIVE_TREE * | m_adaptativeTree |
std::string | m_attrZ |
Attribute used to calculate grid. More... | |
std::vector< std::pair< te::gm::Coord2D, te::gm::PointZ > > | m_dataset |
std::map< std::string, std::string > | m_dsinfo |
te::gm::Envelope | m_env |
Attribute used to restrict the area to generate the raster. More... | |
std::string | m_inDsetName |
std::auto_ptr< te::da::DataSetType > | m_inDsetType |
te::da::DataSourcePtr | m_inDsrc |
Interpolator | m_inter |
selected interpolation method More... | |
double | m_nodatavalue |
no data value More... | |
int | m_power |
power More... | |
double | m_radius |
radius More... | |
double | m_resx |
double | m_resy |
grid resolution in X and Y More... | |
te::rst::Raster * | m_rst |
int | m_smoothM |
smooth factor used More... | |
int | m_srid |
Attribute with spatial reference information. More... | |
double | m_tolerance |
tolerance used to simplify lines More... | |
Private Member Functions | |
double | amax1 (double arg1, double arg2) |
double | amin1 (double arg1, double arg2) |
void | G_lubksb (std::vector< std::vector< double > > &a, int n, std::vector< int > &indx, std::vector< double > &b) |
int | G_ludcmp (std::vector< std::vector< double > > &, int, std::vector< int > &, double &) |
int | IL_check_at_points_2d (std::vector< double > &b, double &ertot, double zmin, double dnorm, double fi) |
double | IL_crst (double r, double fi) |
bool | IL_grid_calc (double xMin, double xMax, double yMin, double yMax, double zMin, double zMax, int KMAX2, std::vector< double > &b, double fi, double dnorm) |
int | IL_matrix_create (std::vector< std::vector< double > > &matrix, std::vector< int > &indx, double fi, double rsm, int KMAX2) |
Private Attributes | |
int | m_minimoPontos |
std::vector< te::gm::PointZ > | m_pointsRegion |
Control Points of grid region. More... | |
double | m_smooth |
double | m_tension |
Definition at line 20 of file SplineGrassMitasova.h.
te::mnt::SplineInterpolationGrassMitasova::SplineInterpolationGrassMitasova | ( | int | minPoints = mitasovaMINPOINTS , |
double | tension = mitasovaTENSION , |
||
double | smooth = mitasovaSMOOTH |
||
) |
Contructors.
|
virtual |
Destructor.
|
private |
|
private |
bool te::mnt::SplineInterpolationGrassMitasova::calculateGrid | ( | ) |
|
private |
|
private |
|
inherited |
Method to calculate a grid from a vector of samples using a Spline (GRASS) fitting algorithm.
|
inherited |
Method to calculate a grid from a vector of samples using a Spline (Mitasova) fitting algorithm.
|
private |
|
private |
|
private |
|
private |
|
inherited |
|
inherited |
Interpolates the z value of the pg point3d. \ This method interpolates the z value of the pg point3d using the \ information on the current partition, the dist double vector and.
pg | points to an point3d whose z value must be calculated |
points | vector that contains points from point pg to the partition points |
distq | points to a double vector that contains distance values from point pg to the partition points. |
|
inherited |
Interpolates the z value of the pg point3d using an weighted average by quadrant. \ Implements the interpolator that uses the average, weighted by the inverse \ square distance, of the nearest neighbours by quadrant.
|
inherited |
Interpolates the z value of the pg point3d using an weighted average by quadrant and by z values. \ Implements the interpolator tha uses the average, weighted by the inverse \ square distance, of the nearest neighbours by z values and by quadrant. \ This method accepts no repeated z values in the interpolation.
|
inherited |
Calculate GRID \ return true or false.
void te::mnt::SplineInterpolationGrassMitasova::setControlPoints | ( | double | xMin, |
double | xMax, | ||
double | yMin, | ||
double | yMax, | ||
int | nMax, | ||
double | xOrigem, | ||
double | yOrigem, | ||
double | dnorm | ||
) |
|
inherited |
Function used to set the envelope parameter
|
inherited |
It sets the Datasource that is being used to generate TIN.
inDsrc | The datasource being used. |
inDsetName | datasource name |
inDsetType | input DataSetType |
type | Input type: Sample or Isoline |
|
inherited |
It sets the Datasource that is being used to save TIN.
|
inherited |
It sets the parameters that is being used to save TIN.
resx,resy | resolution X and Y. |
gt | interpolator |
|
inherited |
Function used to set the Spatial Reference System ID
|
protectedinherited |
Definition at line 146 of file CalculateGrid.h.
|
protectedinherited |
Attribute used to calculate grid.
Definition at line 130 of file CalculateGrid.h.
|
protectedinherited |
Definition at line 147 of file CalculateGrid.h.
|
protectedinherited |
Definition at line 132 of file CalculateGrid.h.
|
protectedinherited |
Attribute used to restrict the area to generate the raster.
Definition at line 124 of file CalculateGrid.h.
|
protectedinherited |
Definition at line 127 of file CalculateGrid.h.
|
protectedinherited |
Definition at line 128 of file CalculateGrid.h.
|
protectedinherited |
Definition at line 126 of file CalculateGrid.h.
|
protectedinherited |
selected interpolation method
Definition at line 135 of file CalculateGrid.h.
|
private |
Definition at line 34 of file SplineGrassMitasova.h.
|
protectedinherited |
no data value
Definition at line 144 of file CalculateGrid.h.
|
private |
Control Points of grid region.
Definition at line 47 of file SplineGrassMitasova.h.
|
protectedinherited |
power
Definition at line 137 of file CalculateGrid.h.
|
protectedinherited |
radius
Definition at line 136 of file CalculateGrid.h.
|
protectedinherited |
Definition at line 134 of file CalculateGrid.h.
|
protectedinherited |
grid resolution in X and Y
Definition at line 134 of file CalculateGrid.h.
|
protectedinherited |
Definition at line 141 of file CalculateGrid.h.
|
private |
Definition at line 36 of file SplineGrassMitasova.h.
|
protectedinherited |
smooth factor used
Definition at line 139 of file CalculateGrid.h.
|
protectedinherited |
Attribute with spatial reference information.
Definition at line 123 of file CalculateGrid.h.
|
private |
Definition at line 35 of file SplineGrassMitasova.h.
|
protectedinherited |
tolerance used to simplify lines
Definition at line 143 of file CalculateGrid.h.