diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2018-12-28 19:04:27 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2018-12-28 19:04:27 +0100 |
| commit | 18e63a90b187bcf6421694ed95e90923516c5fef (patch) | |
| tree | 7aff781ace7dd3704e3f96c32c6bcf01edf6c804 /src/iso19111/util.cpp | |
| parent | 123011447a2d7d25041cc3e466408a0d81bb4d3b (diff) | |
| parent | d43a09983fd0c115a175613c7d77a648b0500791 (diff) | |
| download | PROJ-18e63a90b187bcf6421694ed95e90923516c5fef.tar.gz PROJ-18e63a90b187bcf6421694ed95e90923516c5fef.zip | |
Merge remote-tracking branch 'rouault/gdalbarn'
Diffstat (limited to 'src/iso19111/util.cpp')
| -rw-r--r-- | src/iso19111/util.cpp | 11 |
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 // --------------------------------------------------------------------------- |
