A template for a coordinate reference system specification (CRS) string.
More...
#include <crs_template.h>
A template for a coordinate reference system specification (CRS) string.
A CRSTemplate may contain one or more parameters described by the CRSTemplateParameter class. For each parameter, spec_template must contain a number of free parameters for QString::arg(), e.g. "%1" for the first parameter.
◆ Parameter
◆ ParameterList
◆ CRSTemplate() [1/2]
Creates a new CRS template.
The id must be unique and different from "Local". The template takes ownership of the parameters in the list.
The coordinates_name may contain placeholders written @ which refer to the parameter with the given ID. They can be replaced with actual parameter values when calling coordinatesName().
◆ CRSTemplate() [2/2]
OpenOrienteering::CRSTemplate::CRSTemplate |
( |
const CRSTemplate & |
| ) |
|
|
delete |
◆ ~CRSTemplate()
OpenOrienteering::CRSTemplate::~CRSTemplate |
( |
| ) |
|
Destructor.
This deletes the parameters.
◆ coordinatesName()
QString OpenOrienteering::CRSTemplate::coordinatesName |
( |
const std::vector< QString > & |
values = {} | ) |
const |
Returns the display name for the coordinates of this template, e.g.
"UTM coordinates".
The values list must be either of the same size as the templates list parameters, or empty. The given parameter values are substituted for the respective @ placeholders in the coordinates_name which was passed to the constructor.
◆ id()
QString OpenOrienteering::CRSTemplate::id |
( |
| ) |
const |
|
inline |
Returns the unique ID of this template.
◆ name()
QString OpenOrienteering::CRSTemplate::name |
( |
| ) |
const |
|
inline |
Returns the display name of this template.
◆ operator=()
◆ parameters()
◆ specificationTemplate()
QString OpenOrienteering::CRSTemplate::specificationTemplate |
( |
| ) |
const |
|
inline |
Returns the specification string template in Proj.4 format.
The documentation for this class was generated from the following files: