diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-02-06 14:26:06 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-02-06 14:26:06 +0100 |
| commit | 457b173cbe8fdb790b011d1828a0fd9f8f6221a4 (patch) | |
| tree | e077da59252a134097e64b54ba66b174725650b4 /src/iso19111/factory.cpp | |
| parent | 149bd81691e309d4ab22bed944ea69fbeaec450f (diff) | |
| download | PROJ-457b173cbe8fdb790b011d1828a0fd9f8f6221a4.tar.gz PROJ-457b173cbe8fdb790b011d1828a0fd9f8f6221a4.zip | |
ISO19111: Handle database area objects with no bounding box
Diffstat (limited to 'src/iso19111/factory.cpp')
| -rw-r--r-- | src/iso19111/factory.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/iso19111/factory.cpp b/src/iso19111/factory.cpp index c862cc5b..a3047f8b 100644 --- a/src/iso19111/factory.cpp +++ b/src/iso19111/factory.cpp @@ -1485,6 +1485,12 @@ AuthorityFactory::createExtent(const std::string &code) const { try { const auto &row = res.front(); const auto &name = row[0]; + if (row[1].empty()) { + auto extent = metadata::Extent::create( + util::optional<std::string>(name), {}, {}, {}); + d->context()->d->cache(code, extent); + return extent; + } double south_lat = c_locale_stod(row[1]); double north_lat = c_locale_stod(row[2]); double west_lon = c_locale_stod(row[3]); |
