diff options
| author | Even Rouault <even.rouault@mines-paris.org> | 2019-01-09 16:24:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-09 16:24:16 +0100 |
| commit | 5b75e5fdccc531f7b0e3dcd636fa1ff3500bb071 (patch) | |
| tree | c718433341207fa688e85e145cf83ac4149491ab /include/proj/io.hpp | |
| parent | 11bc4783ca2c5fed8603d0c49f5aea102eca2432 (diff) | |
| parent | a6899c98a6455dc022bdd6785af3e528488422b8 (diff) | |
| download | PROJ-5b75e5fdccc531f7b0e3dcd636fa1ff3500bb071.tar.gz PROJ-5b75e5fdccc531f7b0e3dcd636fa1ff3500bb071.zip | |
Merge pull request #1217 from rouault/remove_proj_5_crs_export
ISO19111: remove PROJ.5 specific format for CRS (refs #1214)
Diffstat (limited to 'include/proj/io.hpp')
| -rw-r--r-- | include/proj/io.hpp | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/include/proj/io.hpp b/include/proj/io.hpp index ec3301f8..7f7639cd 100644 --- a/include/proj/io.hpp +++ b/include/proj/io.hpp @@ -373,7 +373,9 @@ class PROJ_GCC_DLL PROJStringFormatter { //! @cond Doxygen_Suppress PROJ_DLL void - startInversion(); + setCRSExport(bool b); + PROJ_INTERNAL bool getCRSExport() const; + PROJ_DLL void startInversion(); PROJ_DLL void stopInversion(); PROJ_INTERNAL bool isInverted() const; PROJ_INTERNAL bool getUseETMercForTMerc(bool &settingSetOut) const; @@ -510,24 +512,15 @@ class PROJ_GCC_DLL IPROJStringExportable { /** \brief Builds a PROJ string representation. * * <ul> - * <li>For PROJStringFormatter::Convention::PROJ_5 (the default), return - * strings that generally express PROJ.5 pipelines. + * <li>For PROJStringFormatter::Convention::PROJ_5 (the default), * <ul> - * <li>For a crs::GeographicCRS, returns a string expressing the - * transformation from geographic coordinates expressed in radian with - * longitude, latitude order, and with respect to the international - * reference meridian, into geographic coordinates expressed in the units - * and axis order of the CRS, taking into account its prime meridian.</li> - * <li>For a geocentric crs::GeodeticCRS, returns a string expressing the - * transformation from geographic coordinates expressed in radian with - * longitude, latitude order, and with respect to the international - * reference meridian, into geocentric coordinates.</li> - * <li>For a - * crs::ProjectedCRS / crs::DerivedGeographicCRS / crs::DerivedProjectedCRS, - * returns a string expressing the transformation from the base CRS to the - * CRS</li> - * <li>For a crs::BoundCRS, throws a FormattingException.</li> - * <li>For operation::CoordinateTransformations, returns a PROJ + * <li>For a crs::CRS, returns the same as + * PROJStringFormatter::Convention::PROJ_4. It should be noted that the + * export of a CRS as a PROJ string may cause loss of many important aspects + * of a CRS definition. Consequently it is discouraged to use it for + * interoperability in newer projects. The choice of a WKT representation + * will be a better option.</li> + * <li>For operation::CoordinateOperation, returns a PROJ * pipeline.</li> * </ul> * |
