Container for general georeference definition. More...
#include <spatmod/georeference.h>
Container for general georeference definition.
| SPATMOD::GEOREFERENCE::GEOREFERENCE | ( | ) |
Default constructor.
| SPATMOD::GEOREFERENCE::GEOREFERENCE | ( | const GEOREFERENCE & | rhs | ) |
Copy constructor.
| SPATMOD::GEOREFERENCE::GEOREFERENCE | ( | const TRANS2D_MAPGEN & | Trans | ) |
Implicit constructor from TRANS2D_MAPGEN.
Only the "input" side of the TRANS2D_MAPGEN instance is used.
| Trans | Transformation to new coordinates |
| SPATMOD::GEOREFERENCE::~GEOREFERENCE | ( | ) |
Destructor.
| ERRVALUE SPATMOD::GEOREFERENCE::ApplyTransInput | ( | const TRANS2D_AFFINE & | Trans | ) |
Apply transformation to "input" coordinates.
| Trans | Transformation to new coordinates |
| ERRVALUE SPATMOD::GEOREFERENCE::ComputeScale | ( | const DPOINT2D & | point, | |
| DPOINT2D & | scale, | |||
| bool | ConvertToMeters | |||
| ) | const |
Compute "scaling" from object to georeferenced units.
Scaling returned will be to units of CRS X/Y axes or to linear meter.
| point | Point in "object" coordinates | |
| scale | Scale returned | |
| ConvertToMeters | Convert to linear meters if possible |
| AXISORIENTATION SPATMOD::GEOREFERENCE::GetAxisOrientation | ( | ) | const |
Get relative axis orientation.
| const SPATREF::COORDREFSYS& SPATMOD::GEOREFERENCE::GetCRS | ( | ) | const [inline] |
Get coordinate reference system.
| const DOUBLE_ARRAY<CTRLPOINT3>& SPATMOD::GEOREFERENCE::GetCtrlPoints | ( | ) | const [inline] |
Get control point array.
| MODEL SPATMOD::GEOREFERENCE::GetModel | ( | ) | const |
Get tranformation model.
| ERRVALUE SPATMOD::GEOREFERENCE::GetTransAffine | ( | TRANS2D_AFFINE & | TransAffine, | |
| const DRECT2D & | extent, | |||
| double | accuracy = 1.0 | |||
| ) | const |
Get affine transformation if possible.
| const TRANS2D_MAPGEN& SPATMOD::GEOREFERENCE::GetTransGen | ( | ) | const [inline] |
Get general transformation from source to defined CRS.
| bool SPATMOD::GEOREFERENCE::HasCtrlPoints | ( | ) | const [inline] |
Determine if has control points.
| GEOREFERENCE& SPATMOD::GEOREFERENCE::operator= | ( | const GEOREFERENCE & | rhs | ) |
Assignment.
| ERRVALUE SPATMOD::GEOREFERENCE::SetCtrlPoints | ( | const SPATREF::COORDREFSYS & | CoordRefSys, | |
| const CTRLPOINT3 * | CtrlPoints, | |||
| int | NumCtrlPoints, | |||
| AXISORIENTATION | AxisOrient, | |||
| MODEL | Model = MODEL_Affine | |||
| ) |
Set control points and compute transformation.
| CoordRefSys | Coordinate Reference System | |
| CtrlPoints | Control points to set | |
| NumCtrlPoints | Number of control points | |
| AxisOrient | Axis orientation | |
| Model | Transformation model |
| ERRVALUE SPATMOD::GEOREFERENCE::SetCtrlPoints | ( | const SPATREF::COORDREFSYS & | CoordRefSys, | |
| const DOUBLE_ARRAY< CTRLPOINT3 > & | CtrlPoints, | |||
| AXISORIENTATION | AxisOrient, | |||
| MODEL | Model = MODEL_Affine | |||
| ) | [inline] |
Set control points and compute transformation.
| CoordRefSys | Coordinate Reference System | |
| CtrlPoints | Control points to set | |
| AxisOrient | Axis orientation | |
| Model | Transformation model |
| void SPATMOD::GEOREFERENCE::SetTransAffine | ( | const SPATREF::COORDREFSYS & | CoordRefSys, | |
| const TRANS2D_AFFINE & | TransAffine | |||
| ) |
Set affine transformation.
Will clear any previously set control points.
| TransAffine | Transformation to set |
| void SPATMOD::GEOREFERENCE::SetTransGen | ( | const TRANS2D_MAPGEN & | TransGen | ) |
Set general transformation.
Will clear any previously set control points. Only the "input" side of the TRANS2D_MAPGEN instance is used.
| TransGen | Transformation to set |
1.6.1