aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-10-04 01:13:43 +0200
committerEven Rouault <even.rouault@spatialys.com>2019-10-04 01:13:43 +0200
commitae779eaa8264914a401f585f747a0f87fd5350e9 (patch)
treea82bfb05cf329f05fb2563389b9efe5f002595e9 /include
parent109f75c74ee9e251b9507aeb5f3add109042bd5f (diff)
downloadPROJ-ae779eaa8264914a401f585f747a0f87fd5350e9.tar.gz
PROJ-ae779eaa8264914a401f585f747a0f87fd5350e9.zip
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')
-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