diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-08-18 20:27:46 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2021-08-19 02:15:04 +0200 |
| commit | 31692d0c0667f26ea1975affeae161beabb279fd (patch) | |
| tree | 562d91eab76ad8196f4a721c4f48e8fb90e22a2e /include | |
| parent | 92d8cc66100d72ba53bbc0bb0651b26310dfce4c (diff) | |
| download | PROJ-31692d0c0667f26ea1975affeae161beabb279fd.tar.gz PROJ-31692d0c0667f26ea1975affeae161beabb279fd.zip | |
BoundCRS: accept importing/exporting in WKT2 and PROJJSON the scope/area/extent/id attributes (fixes #2813)
For PROJJSON only, also accept the ``name`` attribute.
Diffstat (limited to 'include')
| -rw-r--r-- | include/proj/crs.hpp | 5 | ||||
| -rw-r--r-- | include/proj/io.hpp | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/include/proj/crs.hpp b/include/proj/crs.hpp index 481667b5..dcab094a 100644 --- a/include/proj/crs.hpp +++ b/include/proj/crs.hpp @@ -1011,6 +1011,11 @@ class PROJ_GCC_DLL BoundCRS final : public CRS, //! @endcond PROJ_DLL static BoundCRSNNPtr + create(const util::PropertyMap &properties, const CRSNNPtr &baseCRSIn, + const CRSNNPtr &hubCRSIn, + const operation::TransformationNNPtr &transformationIn); + + PROJ_DLL static BoundCRSNNPtr create(const CRSNNPtr &baseCRSIn, const CRSNNPtr &hubCRSIn, const operation::TransformationNNPtr &transformationIn); diff --git a/include/proj/io.hpp b/include/proj/io.hpp index 11912e3d..1c858248 100644 --- a/include/proj/io.hpp +++ b/include/proj/io.hpp @@ -537,7 +537,11 @@ class PROJ_GCC_DLL JSONFormatter { // cppcheck-suppress functionStatic PROJ_INTERNAL bool outputId() const; - PROJ_INTERNAL bool outputUsage() const; + PROJ_INTERNAL bool + outputUsage(bool calledBeforeObjectContext = false) const; + + PROJ_INTERNAL static const char *PROJJSON_v0_2; + PROJ_INTERNAL static const char *PROJJSON_v0_3; //! @endcond |
