From 3121d9bc309b439adcc2ab9743a3d2b3a8f48296 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Thu, 17 Jan 2019 10:40:12 +0100 Subject: import/export PROJ strings from ISO19111 code: require/output +type=crs for CRS objects (refs #1214) --- include/proj/io.hpp | 4 +- src/4D_api.cpp | 146 ++++++++++------- src/apps/cs2cs.cpp | 5 +- src/iso19111/crs.cpp | 9 +- src/iso19111/factory.cpp | 6 +- src/iso19111/io.cpp | 23 ++- src/proj_internal.h | 2 + test/cli/testprojinfo_out.dist | 10 +- test/unit/test_c_api.cpp | 26 +-- test/unit/test_crs.cpp | 133 +++++++-------- test/unit/test_factory.cpp | 24 +-- test/unit/test_io.cpp | 356 ++++++++++++++++++++++------------------- test/unit/test_operation.cpp | 74 +++++---- 13 files changed, 463 insertions(+), 355 deletions(-) diff --git a/include/proj/io.hpp b/include/proj/io.hpp index 7f7639cd..813b4bdb 100644 --- a/include/proj/io.hpp +++ b/include/proj/io.hpp @@ -526,7 +526,9 @@ class PROJ_GCC_DLL IPROJStringExportable { * *
  • For PROJStringFormatter::Convention::PROJ_4, format a string * compatible with the OGRSpatialReference::exportToProj4() of GDAL - * <=2.3. + * <=2.3. It is only compatible of a few CRS objects. The PROJ string + * will also contain a +type=crs parameter to disambiguish the nature of + * the string from a CoordinateOperation. *