From 862f04e7d9114cfbb1502ce257de0966aa5c362a Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Thu, 26 Sep 2019 11:57:37 +0200 Subject: Improve vertical transformation support When we had a transformation between a compoundCRS and a target geographicCRS, we did not take into account that in the vertical->other_geog_CRS transformation we used, the other_geog_CRS was an implicit interpolation CRS. Thus before doing vertical adjustment, we must go to this interpolation CRS. The workflow is thus: source CRS -> interpolation CRS + vertical adjustment + interplation CRS -> target CRS --- include/proj/crs.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/proj') diff --git a/include/proj/crs.hpp b/include/proj/crs.hpp index 65459058..c07904c8 100644 --- a/include/proj/crs.hpp +++ b/include/proj/crs.hpp @@ -345,6 +345,10 @@ class PROJ_GCC_DLL GeographicCRS : public GeodeticCRS { const datum::DatumEnsemblePtr &datumEnsemble, const cs::EllipsoidalCSNNPtr &cs); + PROJ_DLL GeographicCRSNNPtr + demoteTo2D(const std::string &newName, + const io::DatabaseContextPtr &dbContext) const; + PROJ_DLL static const GeographicCRSNNPtr EPSG_4267; // NAD27 PROJ_DLL static const GeographicCRSNNPtr EPSG_4269; // NAD83 PROJ_DLL static const GeographicCRSNNPtr EPSG_4326; // WGS 84 2D -- cgit v1.2.3