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 From 5d6bdadfca419c1d54d455e240743791e6cea44e Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 28 Sep 2021 15:09:24 +0200 Subject: projinfo --list-crs / proj_get_crs_info_list_from_database(): make it work with IAU generic authority name --- include/proj/io.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/proj/io.hpp b/include/proj/io.hpp index eefec11e..47703442 100644 --- a/include/proj/io.hpp +++ b/include/proj/io.hpp @@ -922,7 +922,7 @@ class PROJ_GCC_DLL DatabaseContext { const std::string &version, std::string &versionedAuthNameOut); - PROJ_INTERNAL std::vector + PROJ_DLL std::vector getVersionedAuthoritiesFromName(const std::string &authName); //! @endcond -- cgit v1.2.3