diff options
| author | Alan D. Snow <alansnow21@gmail.com> | 2021-04-18 05:34:29 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-18 12:34:29 +0200 |
| commit | e4e2991b174ea48b67e9b41c8f356a9cf1bba081 (patch) | |
| tree | d523f7534caf2662f1b97d5e8e40b5d16886c998 /src/proj.h | |
| parent | 3d1c573dc9d9f56ced597554ad9fa1643f0a0ae9 (diff) | |
| download | PROJ-e4e2991b174ea48b67e9b41c8f356a9cf1bba081.tar.gz PROJ-e4e2991b174ea48b67e9b41c8f356a9cf1bba081.zip | |
Added proj_get_celestial_body_list_from_database (#2674)
Closes #2667
Diffstat (limited to 'src/proj.h')
| -rw-r--r-- | src/proj.h | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -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( |
