aboutsummaryrefslogtreecommitdiff
path: root/src/iso19111/util.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2018-12-28 16:44:28 +0100
committerEven Rouault <even.rouault@spatialys.com>2018-12-28 16:44:28 +0100
commitf49a5b744a28fe2a51cdcb7b4bc86f5d834f1e54 (patch)
tree2e995db7ec543eb29680825d12d9ff244afb888d /src/iso19111/util.cpp
parent9660576bf3be57c196325ebd8de417984b7160b1 (diff)
downloadPROJ-f49a5b744a28fe2a51cdcb7b4bc86f5d834f1e54.tar.gz
PROJ-f49a5b744a28fe2a51cdcb7b4bc86f5d834f1e54.zip
importFromWKT: better deal with axis of the baseCRS of a projected CRS
Diffstat (limited to 'src/iso19111/util.cpp')
-rw-r--r--src/iso19111/util.cpp11
1 files changed, 11 insertions, 0 deletions
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
// ---------------------------------------------------------------------------