From c8cce384a175edc666de388e3e9307a8cd5c9501 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Fri, 28 Dec 2018 11:39:45 +0100 Subject: Make createOperation() better work with BoundCRS (to take into account the extent of their base CRS) --- src/iso19111/coordinateoperation.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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(crs.get()); + if (boundCRS) { + return getExtent(boundCRS->baseCRS()); + } return nullExtent; } -- cgit v1.2.3