diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-11-06 18:44:12 +0100 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2021-11-06 17:53:26 +0000 |
| commit | 730b7b9e9f5bb35aa67e9e73830c92e70e0a26c9 (patch) | |
| tree | 4ca26f83644551991e875a4e530f769d4740379b | |
| parent | b9809123252f0fd74e36cedb06866824aca9a124 (diff) | |
| download | PROJ-730b7b9e9f5bb35aa67e9e73830c92e70e0a26c9.tar.gz PROJ-730b7b9e9f5bb35aa67e9e73830c92e70e0a26c9.zip | |
Merge pull request #2926 from snowman2/warn
DOC: Add warning in proj_as_proj_string about potential information loss with CRS
| -rw-r--r-- | src/iso19111/c_api.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/iso19111/c_api.cpp b/src/iso19111/c_api.cpp index acf36402..2440298b 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(). |
