PROJ C++ API
|
Value uniquely identifying an object within a namespace. More...
#include <metadata.hpp>
Public Member Functions | |
const util::optional< Citation > & | authority () PROJ_CONST_DECL |
Return a citation for the organization responsible for definition and maintenance of the code. More... | |
const std::string & | code () PROJ_CONST_DECL |
Return the alphanumeric value identifying an instance in the codespace. More... | |
const util::optional< std::string > & | codeSpace () PROJ_CONST_DECL |
Return the organization responsible for definition and maintenance of the code. More... | |
const util::optional< std::string > & | version () PROJ_CONST_DECL |
Return the version identifier for the namespace. More... | |
const util::optional< std::string > & | description () PROJ_CONST_DECL |
Return the natural language description of the meaning of the code value. More... | |
const util::optional< std::string > & | uri () PROJ_CONST_DECL |
Return the URI of the identifier. More... | |
![]() | |
std::string | exportToWKT (WKTFormatter *formatter) const |
Static Public Member Functions | |
static IdentifierNNPtr | create (const std::string &codeIn=std::string(), const util::PropertyMap &properties=util::PropertyMap()) |
Instanciate a Identifier. More... | |
static bool | isEquivalentName (const char *a, const std::string &b) |
Returns whether two names are considered equivalent. More... | |
static bool | isEquivalentName (const std::string &a, const std::string &b) |
Returns whether two names are considered equivalent. More... | |
Static Public Attributes | |
static const std::string | AUTHORITY_KEY |
Key to set the authority citation of a metadata::Identifier. More... | |
static const std::string | CODE_KEY |
Key to set the code of a metadata::Identifier. More... | |
static const std::string | CODESPACE_KEY |
Key to set the organization responsible for definition and maintenance of the code of a metadata::Identifier. More... | |
static const std::string | VERSION_KEY |
Key to set the version identifier for the namespace of a metadata::Identifier. More... | |
static const std::string | DESCRIPTION_KEY |
Key to set the natural language description of the meaning of the code value of a metadata::Identifier. More... | |
static const std::string | URI_KEY |
Key to set the URI of a metadata::Identifier. More... | |
static const std::string | EPSG |
EPSG codespace. | |
static const std::string | OGC |
OGC codespace. | |
Value uniquely identifying an object within a namespace.
const optional< Citation > & osgeo::proj::metadata::Identifier::authority | ( | ) |
Return a citation for the organization responsible for definition and maintenance of the code.
const std::string & osgeo::proj::metadata::Identifier::code | ( | ) |
Return the alphanumeric value identifying an instance in the codespace.
e.g. "4326" (for EPSG:4326 WGS 84 GeographicCRS)
const optional< std::string > & osgeo::proj::metadata::Identifier::codeSpace | ( | ) |
Return the organization responsible for definition and maintenance of the code.
e.g "EPSG"
|
static |
Instanciate a Identifier.
codeIn | Alphanumeric value identifying an instance in the codespace |
properties | See General properties. Generally, the Identifier::CODESPACE_KEY should be set. |
const optional< std::string > & osgeo::proj::metadata::Identifier::description | ( | ) |
Return the natural language description of the meaning of the code value.
|
static |
Returns whether two names are considered equivalent.
Two names are equivalent by removing any space, underscore, dash, slash, { or } character from them, and comparing ina case insensitive way.
|
static |
Returns whether two names are considered equivalent.
Two names are equivalent by removing any space, underscore, dash, slash, { or } character from them, and comparing ina case insensitive way.
const optional< std::string > & osgeo::proj::metadata::Identifier::uri | ( | ) |
Return the URI of the identifier.
const optional< std::string > & osgeo::proj::metadata::Identifier::version | ( | ) |
Return the version identifier for the namespace.
When appropriate, the edition is identified by the effective date, coded using ISO 8601 date format.
|
static |
Key to set the authority citation of a metadata::Identifier.
The value is to be provided as a string or a metadata::Citation.
|
static |
Key to set the code of a metadata::Identifier.
The value is to be provided as a integer or a string.
|
static |
Key to set the organization responsible for definition and maintenance of the code of a metadata::Identifier.
The value is to be provided as a string.
|
static |
Key to set the natural language description of the meaning of the code value of a metadata::Identifier.
The value is to be provided as a string.
|
static |
Key to set the URI of a metadata::Identifier.
The value is to be provided as a string.
|
static |
Key to set the version identifier for the namespace of a metadata::Identifier.
The value is to be provided as a string.