aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-09-28 23:23:38 +0200
committerEven Rouault <even.rouault@spatialys.com>2021-09-28 23:23:38 +0200
commitf269fd8fa8a209fcd564c2d318f2deb7ecdd64e7 (patch)
tree8189b01f740b34b0cef60c9db5418a7829566942 /src
parent6cea38f649a6c74fe816d59d04a85b51198b4f2c (diff)
downloadPROJ-f269fd8fa8a209fcd564c2d318f2deb7ecdd64e7.tar.gz
PROJ-f269fd8fa8a209fcd564c2d318f2deb7ecdd64e7.zip
CRS::extractGeodeticCRS(): implement for DerivedProjectedCRS (related to refs OSGeo/gdal#3927)
Diffstat (limited to 'src')
-rw-r--r--src/iso19111/crs.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/iso19111/crs.cpp b/src/iso19111/crs.cpp
index a12c6aa0..7c42c18c 100644
--- a/src/iso19111/crs.cpp
+++ b/src/iso19111/crs.cpp
@@ -201,6 +201,10 @@ const GeodeticCRS *CRS::extractGeodeticCRSRaw() const {
if (boundCRS) {
return boundCRS->baseCRS()->extractGeodeticCRSRaw();
}
+ auto derivedProjectedCRS = dynamic_cast<const DerivedProjectedCRS *>(this);
+ if (derivedProjectedCRS) {
+ return derivedProjectedCRS->baseCRS()->extractGeodeticCRSRaw();
+ }
return nullptr;
}
//! @endcond