![]() |
Mapper
0.9.0
API documentation
|
OCD type 1039 string field values packed in a struct for convenient handling. More...
#include <ocd_georef_fields.h>
Public Member Functions | |
void | setupGeoref (Georeferencing &georef, const std::function< void(const QString &)> &warning_handler) const |
Fill in provided georef with data extracted from type 1039 string. More... | |
Static Public Member Functions | |
static OcdGeorefFields | fromGeoref (const Georeferencing &georef, const std::function< void(const QString &)> &warning_handler) |
Translate from Mapper CRS representation into OCD one. More... | |
Public Attributes | |
double | a { 0 } |
Real world angle. More... | |
int | m { 15000 } |
Map scale. More... | |
int | x { 0 } |
Real world offset easting. More... | |
int | y { 0 } |
Real world offset northing. More... | |
int | i { 1000 } |
Grid and zone. More... | |
int | r { 0 } |
Real world coord (0 = paper, 1 = real world) More... | |
OCD type 1039 string field values packed in a struct for convenient handling.
Structure element name corresponds to field code and its value is the field value.
Fields are initialized with safe default values, commonly found in example files shipped with the program.
|
static |
Translate from Mapper CRS representation into OCD one.
georef | Source Georeferencing. |
warning_handler | Function to handle conversion warnings. |
void OpenOrienteering::OcdGeorefFields::setupGeoref | ( | Georeferencing & | georef, |
const std::function< void(const QString &)> & | warning_handler | ||
) | const |
Fill in provided georef with data extracted from type 1039 string.
georef | Reference to a Georeferencing object. |
warning_handler | Function to handle import warnings. |
double OpenOrienteering::OcdGeorefFields::a { 0 } |
Real world angle.
int OpenOrienteering::OcdGeorefFields::i { 1000 } |
Grid and zone.
int OpenOrienteering::OcdGeorefFields::m { 15000 } |
Map scale.
int OpenOrienteering::OcdGeorefFields::r { 0 } |
Real world coord (0 = paper, 1 = real world)
int OpenOrienteering::OcdGeorefFields::x { 0 } |
Real world offset easting.
int OpenOrienteering::OcdGeorefFields::y { 0 } |
Real world offset northing.