aboutsummaryrefslogtreecommitdiff
path: root/src/proj.h
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-04-11 13:27:35 +0200
committerEven Rouault <even.rouault@spatialys.com>2021-04-12 12:48:42 +0200
commitd582ac8bae02b25e25685755173715ebf9349573 (patch)
treea02305fcb019ba5013cec218209b0c09a473005a /src/proj.h
parent3bc25ac8a9deb868174a19392266dd2c870e3179 (diff)
downloadPROJ-d582ac8bae02b25e25685755173715ebf9349573.tar.gz
PROJ-d582ac8bae02b25e25685755173715ebf9349573.zip
Add proj_get_celestial_body_name() and make proj_get_crs_info_list_from_database() filter on and return celestial body name
Diffstat (limited to 'src/proj.h')
-rw-r--r--src/proj.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/proj.h b/src/proj.h
index ef6d5841..f32e26b7 100644
--- a/src/proj.h
+++ b/src/proj.h
@@ -948,6 +948,11 @@ typedef struct
/** Name of the projection method for a projected CRS. Might be NULL even
*for projected CRS in some cases. */
char* projection_method_name;
+
+ /** Name of the celestial body of the CRS (e.g. "Earth").
+ * @since 8.1
+ */
+ char* celestial_body_name;
} PROJ_CRS_INFO;
/** \brief Structure describing optional parameters for proj_get_crs_list();
@@ -982,6 +987,12 @@ typedef struct
/** Whether deprecated objects are allowed. Default to FALSE. */
int allow_deprecated;
+
+ /** Celestial body of the CRS (e.g. "Earth"). The default value, NULL,
+ * means no restriction
+ * @since 8.1
+ */
+ const char* celestial_body_name;
} PROJ_CRS_LIST_PARAMETERS;
/** \brief Structure given description of a unit.
@@ -1366,6 +1377,8 @@ int PROJ_DLL proj_ellipsoid_get_parameters(PJ_CONTEXT *ctx,
int *out_is_semi_minor_computed,
double *out_inv_flattening);
+const char PROJ_DLL *proj_get_celestial_body_name(PJ_CONTEXT *ctx, const PJ *obj);
+
PJ PROJ_DLL *proj_get_prime_meridian(PJ_CONTEXT *ctx,
const PJ *obj);