diff options
Diffstat (limited to 'src/crs.cpp')
| -rw-r--r-- | src/crs.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/crs.cpp b/src/crs.cpp index 10bec815..d873e81b 100644 --- a/src/crs.cpp +++ b/src/crs.cpp @@ -574,6 +574,22 @@ CRSNNPtr CRS::alterName(const std::string &newName) const { // --------------------------------------------------------------------------- +//! @cond Doxygen_Suppress + +CRSNNPtr CRS::alterId(const std::string &authName, + const std::string &code) const { + auto crs = shallowClone(); + auto props = util::PropertyMap(); + props.set(metadata::Identifier::CODESPACE_KEY, authName) + .set(metadata::Identifier::CODE_KEY, code); + crs->setProperties(props); + return crs; +} + +//! @endcond + +// --------------------------------------------------------------------------- + /** \brief Identify the CRS with reference CRSs. * * The candidate CRSs are either hard-coded, or looked in the database when |
