From 730b7b9e9f5bb35aa67e9e73830c92e70e0a26c9 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sat, 6 Nov 2021 18:44:12 +0100 Subject: [PATCH] Merge pull request #2926 from snowman2/warn 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(+) diff --git a/src/iso19111/c_api.cpp b/src/iso19111/c_api.cpp index acf364026e..2440298b58 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().