diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-12-25 10:11:01 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-12-25 10:11:01 +0100 |
| commit | 46e28887e19e82488ff0659ff1f127c908fd4637 (patch) | |
| tree | 8c640c66c1652ca7b5edc8064f72da913df89a16 /src/apps | |
| parent | 41aa90d57e4cdcca2e6337d31be596c8beb1a945 (diff) | |
| download | PROJ-46e28887e19e82488ff0659ff1f127c908fd4637.tar.gz PROJ-46e28887e19e82488ff0659ff1f127c908fd4637.zip | |
projinfo: no longer call createBoundCRSToWGS84IfPossible() for WKT1:GDAL
To align with GDAL 3.0.3 behaviour, no longer automatically try to create
a boundCRS to WGS84 when exporting to WKT1:GDAL. The user has to
explicitly specify --boundcrs-to-wgs84 if he wishes this behaviour.
Diffstat (limited to 'src/apps')
| -rw-r--r-- | src/apps/projinfo.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/apps/projinfo.cpp b/src/apps/projinfo.cpp index fd9b2f46..c1139564 100644 --- a/src/apps/projinfo.cpp +++ b/src/apps/projinfo.cpp @@ -423,24 +423,13 @@ static void outputObject( std::cout << "WKT1:GDAL string:" << std::endl; } - auto crs = nn_dynamic_pointer_cast<CRS>(obj); - std::shared_ptr<IWKTExportable> objToExport; - if (crs) { - objToExport = nn_dynamic_pointer_cast<IWKTExportable>( - crs->createBoundCRSToWGS84IfPossible( - dbContext, allowUseIntermediateCRS)); - } - if (!objToExport) { - objToExport = wktExportable; - } - auto formatter = WKTFormatter::create(WKTFormatter::Convention::WKT1_GDAL); if (outputOpt.singleLine) { formatter->setMultiLine(false); } formatter->setStrict(outputOpt.strict); - auto wkt = objToExport->exportToWKT(formatter.get()); + auto wkt = wktExportable->exportToWKT(formatter.get()); if (outputOpt.c_ify) { wkt = c_ify_string(wkt); } |
