diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-03-12 22:43:42 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2021-03-15 16:16:31 +0100 |
| commit | 5ddddfac622f40a4de920460b64e88e7b9cb5b68 (patch) | |
| tree | 9474e0fc32b5ab2360c048190f06453350ac3d12 /src/proj.h | |
| parent | 1b07ef00c55525420cfbc9467016959e709e6862 (diff) | |
| download | PROJ-5ddddfac622f40a4de920460b64e88e7b9cb5b68.tar.gz PROJ-5ddddfac622f40a4de920460b64e88e7b9cb5b68.zip | |
Add C/C++ API to get SQL statements to insert a CRS into database
Diffstat (limited to 'src/proj.h')
| -rw-r--r-- | src/proj.h | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -1180,8 +1180,32 @@ PROJ_UNIT_INFO PROJ_DLL **proj_get_units_from_database( void PROJ_DLL proj_unit_list_destroy(PROJ_UNIT_INFO** list); /* ------------------------------------------------------------------------- */ +/*! @cond Doxygen_Suppress */ +typedef struct PJ_INSERT_SESSION PJ_INSERT_SESSION; +/*! @endcond */ + +PJ_INSERT_SESSION PROJ_DLL *proj_insert_object_session_create(PJ_CONTEXT *ctx); + +void PROJ_DLL proj_insert_object_session_destroy(PJ_CONTEXT *ctx, + PJ_INSERT_SESSION *session); +PROJ_STRING_LIST PROJ_DLL proj_get_insert_statements(PJ_CONTEXT *ctx, + PJ_INSERT_SESSION *session, + const PJ *object, + const char *authority, + const char *code, + int numeric_codes, + const char *const *options); +char PROJ_DLL *proj_suggests_code_for(PJ_CONTEXT *ctx, + const PJ *object, + const char *authority, + int numeric_code, + const char *const *options); + +void PROJ_DLL proj_string_destroy(char* str); + +/* ------------------------------------------------------------------------- */ /*! @cond Doxygen_Suppress */ typedef struct PJ_OPERATION_FACTORY_CONTEXT PJ_OPERATION_FACTORY_CONTEXT; /*! @endcond */ |
