Skip to content

Commit

Permalink
Merge pull request #2928 from OSGeo/backport-2926-to-8.2
Browse files Browse the repository at this point in the history
[Backport 8.2] DOC: Add warning in proj_as_proj_string about potential information loss with CRS
  • Loading branch information
rouault authored Nov 7, 2021
2 parents 96910fc + 730b7b9 commit fa8a542
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/iso19111/c_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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().
Expand Down

0 comments on commit fa8a542

Please sign in to comment.