aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2018-12-06 21:28:16 +0100
committerEven Rouault <even.rouault@spatialys.com>2018-12-06 21:49:59 +0100
commitf06045c2f0145ec2290913fa144cd690e70736fd (patch)
tree555131a028f47e9225eb54d836f973c84e40a816 /include
parent4022e2093a6773458c2453e42089c987da6efbf9 (diff)
downloadPROJ-f06045c2f0145ec2290913fa144cd690e70736fd.tar.gz
PROJ-f06045c2f0145ec2290913fa144cd690e70736fd.zip
Add API to retrieve non-deprecated equivalent of an object
Diffstat (limited to 'include')
-rw-r--r--include/proj/crs.hpp3
-rw-r--r--include/proj/io.hpp4
2 files changed, 7 insertions, 0 deletions
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<std::pair<CRSNNPtr, int>>
identify(const io::AuthorityFactoryPtr &authorityFactory) const;
+ PROJ_DLL std::list<CRSNNPtr>
+ 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<std::pair<std::string, std::string>>
+ getNonDeprecated(const std::string &tableName, const std::string &authName,
+ const std::string &code) const;
+
//! @endcond
protected: