diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-11-14 12:36:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-14 12:36:41 +0100 |
| commit | 448af96a817b86fcd38c07c2a0c3b183cd988ef2 (patch) | |
| tree | de98d004a54fc09cf30588cb2e4feffa6c85b650 /src/iso19111/io.cpp | |
| parent | c42801be9b2e783430708287987cf7b0b8cd850b (diff) | |
| parent | 2cfd4d629308063af8e0114d16b600592158e791 (diff) | |
| download | PROJ-448af96a817b86fcd38c07c2a0c3b183cd988ef2.tar.gz PROJ-448af96a817b86fcd38c07c2a0c3b183cd988ef2.zip | |
Merge pull request #1731 from rouault/fix_createoperations_with_geoidgrids_and_non_metre_vunits
createOperations(): fix transformation computation from/to a CRS with +geoidgrids and +vunits != m
Diffstat (limited to 'src/iso19111/io.cpp')
| -rw-r--r-- | src/iso19111/io.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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<PositionalAccuracyNNPtr>()); auto boundvcrs = BoundCRS::create(vcrs, GeographicCRS::EPSG_4979, transformation); |
