diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2018-12-04 16:51:55 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2018-12-04 17:05:33 +0100 |
| commit | 8869f7036efb879620a7e42f9c159a5bb07511cb (patch) | |
| tree | 356c1ced4422cdc1a6f3fe8ba14f12a666fc8c7a /src/crs.cpp | |
| parent | 85c32717ef2c804031e09eda70ed6bd83ae164b7 (diff) | |
| download | PROJ-8869f7036efb879620a7e42f9c159a5bb07511cb.tar.gz PROJ-8869f7036efb879620a7e42f9c159a5bb07511cb.zip | |
export to WKT1 of geocentric CRS: do not emit a TOWGS84 node if the datum is WGS84
Diffstat (limited to 'src/crs.cpp')
| -rw-r--r-- | src/crs.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/crs.cpp b/src/crs.cpp index d4d98fa4..9f1f53c7 100644 --- a/src/crs.cpp +++ b/src/crs.cpp @@ -372,6 +372,11 @@ CRSNNPtr CRS::createBoundCRSToWGS84IfPossible( auto geogCRS = extractGeographicCRS(); auto hubCRS = util::nn_static_pointer_cast<CRS>(GeographicCRS::EPSG_4326); if (geodCRS && !geogCRS) { + if (geodCRS->_isEquivalentTo( + GeographicCRS::EPSG_4978.get(), + util::IComparable::Criterion::EQUIVALENT)) { + return thisAsCRS; + } hubCRS = util::nn_static_pointer_cast<CRS>(GeodeticCRS::EPSG_4978); } else if (!geogCRS || geogCRS->_isEquivalentTo( |
