diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2018-12-28 11:39:45 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2018-12-28 11:39:45 +0100 |
| commit | c8cce384a175edc666de388e3e9307a8cd5c9501 (patch) | |
| tree | 4fb8c53d716408c41b05d33913b3991f85488edf /src | |
| parent | d669631ad36641e49fca9e96a4bdd5e590efa239 (diff) | |
| download | PROJ-c8cce384a175edc666de388e3e9307a8cd5c9501.tar.gz PROJ-c8cce384a175edc666de388e3e9307a8cd5c9501.zip | |
Make createOperation() better work with BoundCRS (to take into account the extent of their base CRS)
Diffstat (limited to 'src')
| -rw-r--r-- | src/iso19111/coordinateoperation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/iso19111/coordinateoperation.cpp b/src/iso19111/coordinateoperation.cpp index 442a9b78..ad174fc5 100644 --- a/src/iso19111/coordinateoperation.cpp +++ b/src/iso19111/coordinateoperation.cpp @@ -434,6 +434,10 @@ static const metadata::ExtentPtr &getExtent(const crs::CRSNNPtr &crs) { if (!domains.empty()) { return domains[0]->domainOfValidity(); } + const auto *boundCRS = dynamic_cast<const crs::BoundCRS *>(crs.get()); + if (boundCRS) { + return getExtent(boundCRS->baseCRS()); + } return nullExtent; } |
