aboutsummaryrefslogtreecommitdiff
path: root/include/proj
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-10-04 11:45:43 +0200
committerGitHub <noreply@github.com>2019-10-04 11:45:43 +0200
commit2bac8760df976adb3e112f98cfcbfc5d9d90e22a (patch)
tree72a481a5887fec8401e4b825c38d3747d2b23911 /include/proj
parent7bfef6a9c94482826a41687f795b1a991e17ed35 (diff)
parentae779eaa8264914a401f585f747a0f87fd5350e9 (diff)
downloadPROJ-2bac8760df976adb3e112f98cfcbfc5d9d90e22a.tar.gz
PROJ-2bac8760df976adb3e112f98cfcbfc5d9d90e22a.zip
Merge pull request #1656 from rouault/demote_to_2D
Add a proj_crs_demote_to_2D(). Useful if forced to export a 3D CRS to a best approximate as WKT1 that doesn't support it
Diffstat (limited to 'include/proj')
-rw-r--r--include/proj/crs.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/proj/crs.hpp b/include/proj/crs.hpp
index c07904c8..2b919c71 100644
--- a/include/proj/crs.hpp
+++ b/include/proj/crs.hpp
@@ -111,6 +111,9 @@ class PROJ_GCC_DLL CRS : public common::ObjectUsage,
promoteTo3D(const std::string &newName,
const io::DatabaseContextPtr &dbContext) const;
+ PROJ_DLL CRSNNPtr demoteTo2D(const std::string &newName,
+ const io::DatabaseContextPtr &dbContext) const;
+
PROJ_PRIVATE :
//! @cond Doxygen_Suppress
PROJ_INTERNAL const GeodeticCRS *
@@ -588,6 +591,10 @@ class PROJ_GCC_DLL ProjectedCRS final : public DerivedCRS,
PROJ_DLL std::list<std::pair<ProjectedCRSNNPtr, int>>
identify(const io::AuthorityFactoryPtr &authorityFactory) const;
+ PROJ_DLL ProjectedCRSNNPtr
+ demoteTo2D(const std::string &newName,
+ const io::DatabaseContextPtr &dbContext) const;
+
PROJ_PRIVATE :
//! @cond Doxygen_Suppress
PROJ_INTERNAL void