-
Notifications
You must be signed in to change notification settings - Fork 803
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
Get geoid models for a CRS code #2681
Conversation
this looks OK to me. I guess we need a C API for it to be usable by pyproj |
Do you mean in this PR, or in a later one? I can do any. |
Put it in this one, please |
#2683 brings a new conversion method EPSG:1104 "Change Of Vertical Unit" that is a variant of EPSG:1069 bit without the conversion factor specified (it must be infered from the source and target CRS). Not sure how it impacts your PR but wanted to raise that as I see you explicitly select on 1069 |
Can you rebase that on top of latest master that has now the EPSG v10.019 update ? |
I am working on that right now, also adding EPSG:1104 "Change Of Vertical Unit" |
… to getGeoidModels
03d7ee0
to
779e366
Compare
C API added. |
About |
We have a scripts/reformat_cpp.sh script that applies it only a restricted set of files. Will not probably help you on Windows (or maybe if you run it from WSL with Ubuntu 20.04) |
I am developing in native Ubuntu 20.04. My vscode automatically applies clang-format when I save any file, what is very convenient (in general). If I have to edit Anyway, it is not a big deal. |
There are tons of other files in the repo which aren't clang-format'ed. Maybe at some point we should apply a huge reformatting to all .h*/.c*. Or maybe there's a file that vscode could read which would indicate it which files to reformat and which not ? |
I would say so. |
docs/source/*.rst
for new APIGiven a CRS code, this new method returns the list of possible geoid models that apply to it.
(use case: give the user a list of available geoid models, to select the desired one).
The sql query has two parts. The second covers CRSs like EPSG:6360, that is the ftUS version of EPSG:5703 (NAVD88 height).
In a later PR, I was thinking on adding at least these geoid models to the db:
AUSGeoid2020
,AUSGeoid09
,AUSGeoid98
forAHD height
(Australia)RAF09
,RAF18
forNGF-IGN69 height
(France)(those are the cases I found with more than one grid file with the same target VCRS)
CC @snowman2