From f49a5b744a28fe2a51cdcb7b4bc86f5d834f1e54 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Fri, 28 Dec 2018 16:44:28 +0100 Subject: importFromWKT: better deal with axis of the baseCRS of a projected CRS --- src/iso19111/util.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/iso19111/util.cpp') diff --git a/src/iso19111/util.cpp b/src/iso19111/util.cpp index ac6357a2..b8c6c439 100644 --- a/src/iso19111/util.cpp +++ b/src/iso19111/util.cpp @@ -282,6 +282,17 @@ const BaseObjectNNPtr *PropertyMap::get(const std::string &key) const { } return nullptr; } +// --------------------------------------------------------------------------- + +//! @cond Doxygen_Suppress +void PropertyMap::unset(const std::string &key) { + for (auto iter = d->list_.begin(); iter != d->list_.end(); ++iter) { + if (iter->first == key) { + d->list_.erase(iter); + return; + } + } +} //! @endcond // --------------------------------------------------------------------------- -- cgit v1.2.3