From bd251fa2b1fe929f0070dfdb80d41afb3359b974 Mon Sep 17 00:00:00 2001 From: snowman2 Date: Fri, 5 Nov 2021 21:39:16 -0500 Subject: DOC: Add warning in proj_as_proj_string about potential information loss with CRS --- src/iso19111/c_api.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/iso19111/c_api.cpp') diff --git a/src/iso19111/c_api.cpp b/src/iso19111/c_api.cpp index 554e8f56..1ef6aee2 100644 --- a/src/iso19111/c_api.cpp +++ b/src/iso19111/c_api.cpp @@ -1571,6 +1571,11 @@ const char *proj_as_wkt(PJ_CONTEXT *ctx, const PJ *obj, PJ_WKT_TYPE type, * The returned string is valid while the input obj parameter is valid, * and until a next call to proj_as_proj_string() with the same input * object. + * + * \warning If a CRS object was not created from a PROJ string, + * exporting to a PROJ string will in most cases + * cause a loss of information. This can potentially lead to + * erroneous transformations. * * This function calls * osgeo::proj::io::IPROJStringExportable::exportToPROJString(). -- cgit v1.2.3