aboutsummaryrefslogtreecommitdiff
path: root/src/apps/projinfo.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-04-21 20:45:49 +0200
committerGitHub <noreply@github.com>2020-04-21 20:45:49 +0200
commite493a5c17b2ebebb687b1758c0a10c418ffd49d3 (patch)
treed6f5bc7ad7d86c8af0e49675490b9195212042a8 /src/apps/projinfo.cpp
parentea18e39b3b4905b7e6087d1683f62f843cde5564 (diff)
downloadPROJ-e493a5c17b2ebebb687b1758c0a10c418ffd49d3.tar.gz
PROJ-e493a5c17b2ebebb687b1758c0a10c418ffd49d3.zip
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
Diffstat (limited to 'src/apps/projinfo.cpp')
-rw-r--r--src/apps/projinfo.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}