aboutsummaryrefslogtreecommitdiff
path: root/src/iso19111/factory.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-02-06 14:26:06 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-02-06 14:26:06 +0100
commit457b173cbe8fdb790b011d1828a0fd9f8f6221a4 (patch)
treee077da59252a134097e64b54ba66b174725650b4 /src/iso19111/factory.cpp
parent149bd81691e309d4ab22bed944ea69fbeaec450f (diff)
downloadPROJ-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.cpp6
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]);