aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-11-06 18:44:12 +0100
committerGitHub <noreply@github.com>2021-11-06 18:44:12 +0100
commit01afa55e56148a668eabeb271a15352f920b3bca (patch)
treea1ed24a97b3aefe3210fed8abd89283d1fbe0df9 /src
parentdfe1de8c0ebfea95702564903587f95c77cc6d0f (diff)
parentbd251fa2b1fe929f0070dfdb80d41afb3359b974 (diff)
downloadPROJ-01afa55e56148a668eabeb271a15352f920b3bca.tar.gz
PROJ-01afa55e56148a668eabeb271a15352f920b3bca.zip
Merge pull request #2926 from snowman2/warn
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 96351619..cbc6485a 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().