diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2019-02-11 23:58:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-11 23:58:16 +0100 |
| commit | 5141b3908e59a26c9fe66de94bb7388bff741b58 (patch) | |
| tree | 9cf9a136c9dd72e2732ed38470b6c84b558f4b73 /include/proj/io.hpp | |
| parent | 593fcc4b57d0f5c3a46134add142ee8d9316aec6 (diff) | |
| download | PROJ-5141b3908e59a26c9fe66de94bb7388bff741b58.tar.gz PROJ-5141b3908e59a26c9fe66de94bb7388bff741b58.zip | |
Make tmerc an alias for etmerc. (#1234)
* Make tmerc an alias for etmerc
This switches the algorithm used in tmerc to the Poder/Engsager
tmerc algorithm. The original tmerc algorithm of Evenden/Snyder
origin can still be accessed by adding the +approx flag when
initializing a tmerc projection. The +approx flag can also
be used when initializing UTM projections, in which case the
Evenden/Snyder algorithm is used as well.
If a tmerc projection is instantiated on a spherical earth
the Evenden/Snyder algorithm is used as well since the
Poder/Engsager algorithm is only defined on the ellipsoid.
+proj=etmerc can still be instantiated for backwards compatibility
reasons.
Co-authored-by: Kristian Evers <kristianevers@gmail.com>
Co-authored-by: Even Rouault <even.rouault@spatialys.com>
Diffstat (limited to 'include/proj/io.hpp')
| -rw-r--r-- | include/proj/io.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/proj/io.hpp b/include/proj/io.hpp index aedf0457..091efcb7 100644 --- a/include/proj/io.hpp +++ b/include/proj/io.hpp @@ -365,7 +365,7 @@ class PROJ_GCC_DLL PROJStringFormatter { PROJ_DLL ~PROJStringFormatter(); //! @endcond - PROJ_DLL void setUseETMercForTMerc(bool flag); + PROJ_DLL void setUseApproxTMerc(bool flag); PROJ_DLL const std::string &toString() const; @@ -378,7 +378,7 @@ class PROJ_GCC_DLL PROJStringFormatter { PROJ_DLL void startInversion(); PROJ_DLL void stopInversion(); PROJ_INTERNAL bool isInverted() const; - PROJ_INTERNAL bool getUseETMercForTMerc(bool &settingSetOut) const; + PROJ_INTERNAL bool getUseApproxTMerc() const; PROJ_INTERNAL void setCoordinateOperationOptimizations(bool enable); PROJ_DLL void |
