diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-04-24 11:39:47 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2021-04-24 11:39:47 +0200 |
| commit | 3ffa2c50ad7cb6441e0d9c385e1b307f50546ae3 (patch) | |
| tree | 147c3461af1f52e50c16dbb8a08565bedcd11094 | |
| parent | 93dc8422c4cddf5fa52824222143effa6bb4d67f (diff) | |
| download | PROJ-3ffa2c50ad7cb6441e0d9c385e1b307f50546ae3.tar.gz PROJ-3ffa2c50ad7cb6441e0d9c385e1b307f50546ae3.zip | |
getInsertStatementsFor(): replace while with if (master only, CID 320133)
| -rw-r--r-- | src/iso19111/factory.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/iso19111/factory.cpp b/src/iso19111/factory.cpp index d95ccbf4..f8f06000 100644 --- a/src/iso19111/factory.cpp +++ b/src/iso19111/factory.cpp @@ -2153,7 +2153,8 @@ std::vector<std::string> DatabaseContext::Private::getInsertStatementsFor( for (const auto &candidate : candidates) { if (candidate.second == 100) { const auto &ids = candidate.first->identifiers(); - for (const auto &id : ids) { + if (!ids.empty()) { + const auto &id = ids.front(); geodAuthName = *(id->codeSpace()); geodCode = id->code(); break; |
