From 5ddddfac622f40a4de920460b64e88e7b9cb5b68 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Fri, 12 Mar 2021 22:43:42 +0100 Subject: Add C/C++ API to get SQL statements to insert a CRS into database --- include/proj/io.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include/proj') diff --git a/include/proj/io.hpp b/include/proj/io.hpp index 2f935a0c..5f0dd475 100644 --- a/include/proj/io.hpp +++ b/include/proj/io.hpp @@ -838,6 +838,19 @@ class PROJ_GCC_DLL DatabaseContext { PROJ_DLL std::vector 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 + getInsertStatementsFor(const common::IdentifiedObjectNNPtr &object, + const std::string &authName, const std::string &code, + bool numericCode); + + PROJ_DLL void stopInsertStatementsSession(); + PROJ_PRIVATE : //! @cond Doxygen_Suppress PROJ_DLL void * -- cgit v1.2.3