From 9bb6e214fa121bf4f2d5c4948bdc0dbe24d0c3b6 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sun, 29 Nov 2020 17:38:23 +0100 Subject: Add option to allow export of Geographic/Projected 3D CRS in WKT1_GDAL as CompoundCRS with a VerticalCRS being an ellipsoidal height, which is not conformant. But needed for LAS 1.4 that only supports WKT1 This is a partial backport of https://github.com/OSGeo/PROJ/pull/2450, with only the new ALLOW_ELLIPSOIDAL_HEIGHT_AS_VERTICAL_CRS=YES option of proj_as_wkt() --- include/proj/io.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/proj/io.hpp b/include/proj/io.hpp index 20dcedfe..2e796a9d 100644 --- a/include/proj/io.hpp +++ b/include/proj/io.hpp @@ -342,6 +342,10 @@ class PROJ_GCC_DLL WKTFormatter { PROJ_INTERNAL void ingestWKTNode(const WKTNodeNNPtr &node); + PROJ_INTERNAL WKTFormatter & + setAllowEllipsoidalHeightAsVerticalCRS(bool allow) noexcept; + PROJ_INTERNAL bool isAllowedEllipsoidalHeightAsVerticalCRS() const noexcept; + //! @endcond protected: -- cgit v1.2.3