aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-09-28 14:47:09 +0200
committerEven Rouault <even.rouault@spatialys.com>2021-09-28 14:47:09 +0200
commite6e6e4ca345e774910afa5bbe485c3d9f7851cd4 (patch)
treedd1cd3df30565228b932bbfc1d8d97e142111344 /include
parentf982d9d3104731727c445930bf14008d1c572d0a (diff)
downloadPROJ-e6e6e4ca345e774910afa5bbe485c3d9f7851cd4.tar.gz
PROJ-e6e6e4ca345e774910afa5bbe485c3d9f7851cd4.zip
Add a mapping for versioned authorities, so that one can use IAU:xxxx or IAU_2015:xxxx transparently
Diffstat (limited to 'include')
-rw-r--r--include/proj/io.hpp13
1 files changed, 13 insertions, 0 deletions
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<std::string>
+ getVersionedAuthoritiesFromName(const std::string &authName);
+
//! @endcond
protected: