[PROJ] Get PROJ description in PROJ 5?
Matthew Woehlke
mwoehlke.floss at gmail.com
Fri Mar 19 09:36:49 PDT 2021
On 19/03/2021 11.59, Matthew Woehlke wrote:
> In PROJ 4, I could get a description of a projection using pj_get_def.
>
> In PROJ 6, I can use proj_as_proj_string.
>
> However, proj_as_proj_string doesn't exist in PROJ 5? How can I get the
> description of a PROJ in PROJ 5?
>
> proj_pj_info does not seem to work (the definition I get back is empty,
> at least in PROJ 6; does this function behave differently in PROJ 5?).
Okay, never mind... apparently proj_pj_info works, but only in PROJ 5,
and only if using the "+init=epsg:N" syntax which is not supported in
PROJ 6.
Sigh... looks like I need a pile of version-checking code.
--
Matthew
More information about the PROJ
mailing list