diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/iso19111/io.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/iso19111/io.cpp b/src/iso19111/io.cpp index 7f68a579..6175c415 100644 --- a/src/iso19111/io.cpp +++ b/src/iso19111/io.cpp @@ -3773,7 +3773,12 @@ BoundCRSNNPtr WKTParser::Private::buildBoundCRS(const WKTNodeNNPtr &node) { if (dynamic_cast<GeographicCRS *>(targetCRS.get())) { sourceTransformationCRS = sourceCRS->extractGeographicCRS(); if (!sourceTransformationCRS) { - throw ParsingException("Cannot find GeographicCRS in sourceCRS"); + sourceTransformationCRS = + std::dynamic_pointer_cast<VerticalCRS>(sourceCRS); + if (!sourceTransformationCRS) { + throw ParsingException( + "Cannot find GeographicCRS or VerticalCRS in sourceCRS"); + } } } else { sourceTransformationCRS = sourceCRS; |
