From 2cfd4d629308063af8e0114d16b600592158e791 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Thu, 14 Nov 2019 02:42:23 +0100 Subject: createOperations(): fix transformation computation from/to a CRS with +geoidgrids and +vunits != m --- src/iso19111/io.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/iso19111/io.cpp') diff --git a/src/iso19111/io.cpp b/src/iso19111/io.cpp index 645bec0b..a0a87f65 100644 --- a/src/iso19111/io.cpp +++ b/src/iso19111/io.cpp @@ -8364,7 +8364,10 @@ PROJStringParser::Private::buildBoundOrCompoundCRSIfNeeded(int iStep, Transformation::createGravityRelatedHeightToGeographic3D( PropertyMap().set(IdentifiedObject::NAME_KEY, "unknown to WGS84 ellipsoidal height"), - crs, GeographicCRS::EPSG_4979, nullptr, geoidgrids, + VerticalCRS::create(createMapWithUnknownName(), vdatum, + VerticalCS::createGravityRelatedHeight( + common::UnitOfMeasure::METRE)), + GeographicCRS::EPSG_4979, nullptr, geoidgrids, std::vector()); auto boundvcrs = BoundCRS::create(vcrs, GeographicCRS::EPSG_4979, transformation); -- cgit v1.2.3