aboutsummaryrefslogtreecommitdiff
path: root/include/proj/crs.hpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-08-16 12:25:07 +0200
committerGitHub <noreply@github.com>2021-08-16 12:25:07 +0200
commit2ddf80a41b90e866ecf113030ff2e241464cb1c8 (patch)
treeeb4942d69214eabd8e10398cfe852016dcf0ea36 /include/proj/crs.hpp
parent0d64108dc8c91bed36ea49ac04e56f4f43a84d27 (diff)
parentbc97ca635668e5457afc9dbb491c5aa5525ca7de (diff)
downloadPROJ-2ddf80a41b90e866ecf113030ff2e241464cb1c8.tar.gz
PROJ-2ddf80a41b90e866ecf113030ff2e241464cb1c8.zip
Merge pull request #2806 from OSGeo/backport-2805-to-8.1
[Backport 8.1] Implement promoteTo3D() / demoteTo2D() for DerivedGeographicCRS (fixes #2803)
Diffstat (limited to 'include/proj/crs.hpp')
-rw-r--r--include/proj/crs.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/proj/crs.hpp b/include/proj/crs.hpp
index 0f8c5e42..44dda0c5 100644
--- a/include/proj/crs.hpp
+++ b/include/proj/crs.hpp
@@ -1168,6 +1168,10 @@ class PROJ_GCC_DLL DerivedGeographicCRS final : public GeographicCRS,
const operation::ConversionNNPtr &derivingConversionIn,
const cs::EllipsoidalCSNNPtr &csIn);
+ PROJ_DLL DerivedGeographicCRSNNPtr
+ demoteTo2D(const std::string &newName,
+ const io::DatabaseContextPtr &dbContext) const;
+
//! @cond Doxygen_Suppress
PROJ_INTERNAL void _exportToWKT(io::WKTFormatter *formatter)
const override; // throw(io::FormattingException)