aboutsummaryrefslogtreecommitdiff
path: root/include/proj/crs.hpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-04-21 20:45:49 +0200
committerGitHub <noreply@github.com>2020-04-21 20:45:49 +0200
commite493a5c17b2ebebb687b1758c0a10c418ffd49d3 (patch)
treed6f5bc7ad7d86c8af0e49675490b9195212042a8 /include/proj/crs.hpp
parentea18e39b3b4905b7e6087d1683f62f843cde5564 (diff)
downloadPROJ-e493a5c17b2ebebb687b1758c0a10c418ffd49d3.tar.gz
PROJ-e493a5c17b2ebebb687b1758c0a10c418ffd49d3.zip
Add limited support for non-conformant WKT1 LAS COMPD_CS[] (#2171)
* Allow importing EPSG:{horizontal_code}+{geographic_code} and turn it into valid Geographic 3D or Projected 3D CRS internally * Allow importing WKT1 COMPD_CS[] with above structure * On an object imported that way, allow exporting to WKT1_GDAL, with this non-standard structure of a horizontal CRS + geographic CRS
Diffstat (limited to 'include/proj/crs.hpp')
-rw-r--r--include/proj/crs.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/proj/crs.hpp b/include/proj/crs.hpp
index 30134cb4..61844f79 100644
--- a/include/proj/crs.hpp
+++ b/include/proj/crs.hpp
@@ -138,6 +138,8 @@ class PROJ_GCC_DLL CRS : public common::ObjectUsage,
PROJ_INTERNAL CRSNNPtr normalizeForVisualization() const;
+ PROJ_INTERNAL CRSNNPtr allowNonConformantWKT1Export() const;
+
//! @endcond
protected:
@@ -892,6 +894,14 @@ class PROJ_GCC_DLL CompoundCRS final : public CRS,
const std::vector<CRSNNPtr>
&components); // throw InvalidCompoundCRSException
+ //! @cond Doxygen_Suppress
+ PROJ_INTERNAL static CRSNNPtr
+ createLax(const util::PropertyMap &properties,
+ const std::vector<CRSNNPtr> &components,
+ const io::DatabaseContextPtr
+ &dbContext); // throw InvalidCompoundCRSException
+ //! @endcond
+
protected:
// relaxed: standard say SingleCRSNNPtr
PROJ_INTERNAL explicit CompoundCRS(const std::vector<CRSNNPtr> &components);