aboutsummaryrefslogtreecommitdiff
path: root/include/proj
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-03-18 14:49:13 +0100
committerGitHub <noreply@github.com>2021-03-18 14:49:13 +0100
commitd4e5e1a833fa37afb5829d9eb9bfbe1472425df4 (patch)
tree1042dd9a9a6934b39a766c3b219ade22b9dd15c7 /include/proj
parent979e3a3ba0b270f7401a57105411375bb99ddbb5 (diff)
parenteae06c94dba10640ca2d669c4e7b356a1613f9f3 (diff)
downloadPROJ-d4e5e1a833fa37afb5829d9eb9bfbe1472425df4.tar.gz
PROJ-d4e5e1a833fa37afb5829d9eb9bfbe1472425df4.zip
Merge pull request #2577 from rouault/insert_sql
Add capability to get SQL statements to add custom CRS in the database
Diffstat (limited to 'include/proj')
-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 2f935a0c..96a97142 100644
--- a/include/proj/io.hpp
+++ b/include/proj/io.hpp
@@ -838,6 +838,19 @@ class PROJ_GCC_DLL DatabaseContext {
PROJ_DLL std::vector<std::string> getDatabaseStructure() const;
+ PROJ_DLL void startInsertStatementsSession();
+
+ PROJ_DLL std::string
+ suggestsCodeFor(const common::IdentifiedObjectNNPtr &object,
+ const std::string &authName, bool numericCode);
+
+ PROJ_DLL std::vector<std::string> getInsertStatementsFor(
+ const common::IdentifiedObjectNNPtr &object,
+ const std::string &authName, const std::string &code, bool numericCode,
+ const std::vector<std::string> &allowedAuthorities = {"EPSG", "PROJ"});
+
+ PROJ_DLL void stopInsertStatementsSession();
+
PROJ_PRIVATE :
//! @cond Doxygen_Suppress
PROJ_DLL void *