From e4e2991b174ea48b67e9b41c8f356a9cf1bba081 Mon Sep 17 00:00:00 2001 From: "Alan D. Snow" Date: Sun, 18 Apr 2021 05:34:29 -0500 Subject: Added proj_get_celestial_body_list_from_database (#2674) Closes #2667 --- src/proj.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src/proj.h') diff --git a/src/proj.h b/src/proj.h index f32e26b7..49bf991c 100644 --- a/src/proj.h +++ b/src/proj.h @@ -1028,6 +1028,22 @@ typedef struct int deprecated; } PROJ_UNIT_INFO; +/** \brief Structure given description of a celestial body. + * + * This structure may grow over time, and should not be directly allocated by + * client code. + * @since 8.1 + */ +typedef struct +{ + /** Authority name. */ + char* auth_name; + + /** Object name. For example "Earth" */ + char* name; + +} PROJ_CELESTIAL_BODY_INFO; + /**@}*/ @@ -1183,6 +1199,13 @@ PROJ_STRING_LIST PROJ_DLL proj_get_codes_from_database(PJ_CONTEXT *ctx, PJ_TYPE type, int allow_deprecated); +PROJ_CELESTIAL_BODY_INFO PROJ_DLL **proj_get_celestial_body_list_from_database( + PJ_CONTEXT *ctx, + const char *auth_name, + int *out_result_count); + +void PROJ_DLL proj_celestial_body_list_destroy(PROJ_CELESTIAL_BODY_INFO** list); + PROJ_CRS_LIST_PARAMETERS PROJ_DLL *proj_get_crs_list_parameters_create(void); void PROJ_DLL proj_get_crs_list_parameters_destroy( -- cgit v1.2.3