From ae779eaa8264914a401f585f747a0f87fd5350e9 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Fri, 4 Oct 2019 01:13:43 +0200 Subject: 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 --- include/proj/crs.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/proj') 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> 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 -- cgit v1.2.3