From e493a5c17b2ebebb687b1758c0a10c418ffd49d3 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 21 Apr 2020 20:45:49 +0200 Subject: Add limited support for non-conformant WKT1 LAS COMPD_CS[] (#2171) * Allow importing EPSG:{horizontal_code}+{geographic_code} and turn it into valid Geographic 3D or Projected 3D CRS internally * Allow importing WKT1 COMPD_CS[] with above structure * On an object imported that way, allow exporting to WKT1_GDAL, with this non-standard structure of a horizontal CRS + geographic CRS --- src/apps/projinfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/apps/projinfo.cpp') diff --git a/src/apps/projinfo.cpp b/src/apps/projinfo.cpp index ed732aaa..cd04433d 100644 --- a/src/apps/projinfo.cpp +++ b/src/apps/projinfo.cpp @@ -479,8 +479,8 @@ static void outputObject( std::cout << "WKT1:GDAL string:" << std::endl; } - auto formatter = - WKTFormatter::create(WKTFormatter::Convention::WKT1_GDAL); + auto formatter = WKTFormatter::create( + WKTFormatter::Convention::WKT1_GDAL, dbContext); if (outputOpt.singleLine) { formatter->setMultiLine(false); } -- cgit v1.2.3