pyproj4 / pyproj

Python interface to PROJ (cartographic projections and coordinate transformations library)
https://pyproj4.github.io/pyproj
MIT License
1.04k stars 210 forks source link

Add proj_query_geodetic_crs_from_datum #1389

Open jjimenezshaw opened 5 months ago

jjimenezshaw commented 5 months ago

In the scope of adding a new feature to https://spatialreference.org/ base crs, in a similar way it is done in epsg.org, I think I need proj_query_geodetic_crs_from_datum. (Please, correct me if I am wrong).

The idea will be to get the geographic 3D from a geographic 2D, or a geocentric from a geographic 3D as base crs.

Something like EPSG:6318 -> EPSG:6319 -> EPSG:6317

(For a projected and compound there are already tools in pyproj)

Looking at proj documentation, I think it is doable with proj_query_geodetic_crs_from_datum. It is the only missing piece.

Should I implement that function? Where in the code?

jjimenezshaw commented 5 months ago

cc @rouault

snowman2 commented 5 months ago

This would be a good home for it: https://github.com/pyproj4/pyproj/blob/main/pyproj/database.pyx