From f06045c2f0145ec2290913fa144cd690e70736fd Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Thu, 6 Dec 2018 21:28:16 +0100 Subject: Add API to retrieve non-deprecated equivalent of an object --- include/proj/crs.hpp | 3 +++ include/proj/io.hpp | 4 ++++ 2 files changed, 7 insertions(+) (limited to 'include') diff --git a/include/proj/crs.hpp b/include/proj/crs.hpp index bdb36cd4..10d1f07e 100644 --- a/include/proj/crs.hpp +++ b/include/proj/crs.hpp @@ -101,6 +101,9 @@ class PROJ_GCC_DLL CRS : public common::ObjectUsage { PROJ_DLL std::list> identify(const io::AuthorityFactoryPtr &authorityFactory) const; + PROJ_DLL std::list + getNonDeprecated(const io::DatabaseContextNNPtr &dbContext) const; + PROJ_PRIVATE : //! @cond Doxygen_Suppress PROJ_INTERNAL const GeodeticCRS * diff --git a/include/proj/io.hpp b/include/proj/io.hpp index f511bf5b..ee024a72 100644 --- a/include/proj/io.hpp +++ b/include/proj/io.hpp @@ -736,6 +736,10 @@ class PROJ_GCC_DLL DatabaseContext { getAllowedAuthorities(const std::string &sourceAuthName, const std::string &targetAuthName) const; + PROJ_INTERNAL std::list> + getNonDeprecated(const std::string &tableName, const std::string &authName, + const std::string &code) const; + //! @endcond protected: -- cgit v1.2.3