-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add grids for DKLAT, DKMSL and GLLMSL #121
Conversation
The grids should also be mentionned in copyright_and_licenses.csv |
Transformation grids added to EPSG recently.
Corrected |
For DKLAT and DKMSL grids, I see the metadata of the grid register them as transformations from ETRS89 to a vertical CRS of depth type (so with vertical axis = down). This is I believe the first time we use that, and was slightly confusing at the first sight. A similar case was for the Norway no_kv_CD_above_Ell_ETRS89_v2023b.tif grid that is ultimately used also with a vertical CRS of depth type but the metadata of the grid indicates a transformation to the CD Norway height CRS (vertical axis = up), so the grid itself is registered in the usual way For DKLAT and DKMSL, this is probably not that much as an issue in practice since AFAICS, the values in the grid are still geoid undulations, and "projinfo -k operation EPSG:10564" seems to return a pipeline that does the vertical axis inversion, and lead to correct values (I assume you've tested cs2cs with EPSG codes?) Perhaps https://proj.org/en/9.4/specifications/geodetictiffgrids.html should be clarified for type=geoid_undulation to indicate that: for clarity a target vertical CRS is of height type is preferred, but that a target vertical CRS of depth type may be accepted, with the understanding that the values in the grid are actually to transform to a related vertical CRS of height type. Although that feels hacky... |
They aren't, but they are used in similar manner. And for the MSL also close to the geoid but not quite the geoid. Both DKLAT and DKMSL are meant for offshore use where the chosen axis makes sense. Basically the use case is to be able to measure the depth to the sea floor using GNSS and an echo sounder. This has previosly been done using the DVR90 geoid model and manually(ish) converting to depths instead of heights. I did struggle a bit to find the best way to convert these to GTG. The options seemed to be either geoid undulation or hydroid height. This would best be described as a "hydroid depth". As far as I remember I did try to use the hydroid option but it caused another problem (which I can't remember on top of my head - I did the initial work a while a go). |
I'm a bit confused by your explanation. To clarify: what is the formula to apply to transform from ETRS 89 height (H) to DKMSL/DKLAT depth (d) given the grid value (g) ? |
From the documentation of DKLAT (only available in Danish, unfortunately): D is depth, L is the LAT-value from the grid and h is the ellipsoidal height. DKMSL is similar. Here's a relevant section from my gie tests:
PROJ performs the transformation as I expect it to (although the pipeline is more complicated than it could be):
I believe everything is in order but in case it isn't I'm happy to try to clarify. Note though, I'm going on vacation tomorrow morning so I might not answer this for a while (will be back at the latest the 20th). Feel free to merge if there isn't any issues. |
ok, thanks for the clarifications. so indeed the value in the grid behaves similarly to the geoid undulation. We'd probably need to clarify the GTG spec with that use case, but this PR looks good by itself |
Transformation grids added to EPSG recently.