From e6e6e4ca345e774910afa5bbe485c3d9f7851cd4 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 28 Sep 2021 14:47:09 +0200 Subject: Add a mapping for versioned authorities, so that one can use IAU:xxxx or IAU_2015:xxxx transparently --- include/proj/io.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include') diff --git a/include/proj/io.hpp b/include/proj/io.hpp index 6b811b2d..eefec11e 100644 --- a/include/proj/io.hpp +++ b/include/proj/io.hpp @@ -512,6 +512,8 @@ class PROJ_GCC_DLL JSONFormatter { PROJ_INTERNAL CPLJSonStreamingWriter * writer() const; + PROJ_INTERNAL const DatabaseContextPtr &databaseContext() const; + struct ObjectContext { JSONFormatter &m_formatter; @@ -912,6 +914,17 @@ class PROJ_GCC_DLL DatabaseContext { getTransformationsForGridName(const DatabaseContextNNPtr &databaseContext, const std::string &gridName); + PROJ_INTERNAL bool + getAuthorityAndVersion(const std::string &versionedAuthName, + std::string &authNameOut, std::string &versionOut); + + PROJ_INTERNAL bool getVersionedAuthority(const std::string &authName, + const std::string &version, + std::string &versionedAuthNameOut); + + PROJ_INTERNAL std::vector + getVersionedAuthoritiesFromName(const std::string &authName); + //! @endcond protected: -- cgit v1.2.3