aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-11-07 20:07:26 +0100
committerGitHub <noreply@github.com>2021-11-07 20:07:26 +0100
commitfa8a542f40acba39b7ce3671a88cb2fcac79afb0 (patch)
tree9779413c6b35460e9d39058537a3c5d84a17fd99 /src
parent96910fc0bbfc20055cef50bf6e2da2774b652607 (diff)
parent730b7b9e9f5bb35aa67e9e73830c92e70e0a26c9 (diff)
downloadPROJ-fa8a542f40acba39b7ce3671a88cb2fcac79afb0.tar.gz
PROJ-fa8a542f40acba39b7ce3671a88cb2fcac79afb0.zip
Merge pull request #2928 from OSGeo/backport-2926-to-8.2
[Backport 8.2] DOC: Add warning in proj_as_proj_string about potential information loss with CRS
Diffstat (limited to 'src')
-rw-r--r--src/iso19111/c_api.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/iso19111/c_api.cpp b/src/iso19111/c_api.cpp
index 1b9d89c8..70f589b3 100644
--- a/src/iso19111/c_api.cpp
+++ b/src/iso19111/c_api.cpp
@@ -1589,6 +1589,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().