diff options
| author | snowman2 <alansnow21@gmail.com> | 2021-11-05 21:39:16 -0500 |
|---|---|---|
| committer | snowman2 <alansnow21@gmail.com> | 2021-11-05 21:39:16 -0500 |
| commit | bd251fa2b1fe929f0070dfdb80d41afb3359b974 (patch) | |
| tree | 568e17e32adeb6ac077f9858366398626e09db4b /src | |
| parent | 76dfefe8fc9191bf2df8a232e379b85ca09c7d7d (diff) | |
| download | PROJ-bd251fa2b1fe929f0070dfdb80d41afb3359b974.tar.gz PROJ-bd251fa2b1fe929f0070dfdb80d41afb3359b974.zip | |
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.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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(). |
