-
Notifications
You must be signed in to change notification settings - Fork 831
proj_list_db_units #2004
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
My thought is, that we shouldn't have two functions that does basically the same thing. Either we should re-wire |
@kbevers Lines 313 to 332 in 0bcf2b5
So, if you wanted to merge the two, this would also need to be accounted for. |
I see a method called Also, I am thinking since Another option would be to add the units in |
proj_get_units_from_database() + putting the historical PROJ units that have no EPSG correspondance would seem reasonable. And gently tag proj_list_units() as being maybe retired some day, but not a big fan of doing so in PROJ 8. That would for example break SAGA: https://sources.debian.org/src/saga/7.3.0+dfsg-3/src/tools/projection/pj_proj4/crs_base.cpp (only use outside PROJ sources found by Debian source explorer) |
This is also my preferred way forward.
Deprecating it as soon as a proj_get_units_from_database() is in place would be ideal. With PROJ 8 it should be removed from the docs and removing the function altogether is a good excuse for having a PROJ 9 :-) |
OK, this has coincidentally matched the needs from a customer, so I'm going to deal with that. I'm considering the following API, similar to the one to get the list of CRS
|
What will auth_name and code be for weird units only previously available through proj_list_units()? PROJ and consecutive numbers starting from 0? |
PROJ and probably the proj nick in upper case, like PROJ:DM |
Add proj_get_units_from_database() (fixes #2004)
Currently there is
proj_list_units
for the old PROJ units. However, there is a WKT based set of units listed in: https://github.com/OSGeo/PROJ/blob/master/data/sql/unit_of_measure.sqlThoughts on adding something like
proj_list_db_units
orproj_list_unit_of_measure
?The text was updated successfully, but these errors were encountered: