Mapper  0.9.0
API documentation
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
OpenOrienteering::OcdGeorefFields Struct Reference

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...
 

Detailed Description

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.

Member Function Documentation

◆ fromGeoref()

OcdGeorefFields OpenOrienteering::OcdGeorefFields::fromGeoref ( const Georeferencing georef,
const std::function< void(const QString &)> &  warning_handler 
)
static

Translate from Mapper CRS representation into OCD one.

Parameters
georefSource Georeferencing.
warning_handlerFunction to handle conversion warnings.
Returns
Data for OCD type 1039 string compilation.

◆ setupGeoref()

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.

Parameters
georefReference to a Georeferencing object.
warning_handlerFunction to handle import warnings.

Member Data Documentation

◆ a

double OpenOrienteering::OcdGeorefFields::a { 0 }

Real world angle.

◆ i

int OpenOrienteering::OcdGeorefFields::i { 1000 }

Grid and zone.

◆ m

int OpenOrienteering::OcdGeorefFields::m { 15000 }

Map scale.

◆ r

int OpenOrienteering::OcdGeorefFields::r { 0 }

Real world coord (0 = paper, 1 = real world)

◆ x

int OpenOrienteering::OcdGeorefFields::x { 0 }

Real world offset easting.

◆ y

int OpenOrienteering::OcdGeorefFields::y { 0 }

Real world offset northing.


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