From 46e28887e19e82488ff0659ff1f127c908fd4637 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 25 Dec 2019 10:11:01 +0100 Subject: 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. --- src/apps/projinfo.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/apps/projinfo.cpp') 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(obj); - std::shared_ptr objToExport; - if (crs) { - objToExport = nn_dynamic_pointer_cast( - 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); } -- cgit v1.2.3