-
Notifications
You must be signed in to change notification settings - Fork 35
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 Danish grids included in EPSG v. 10.088 #101
Conversation
Thanks, @rouault. The checks are failing because the grids reference EPSG codes that are still not available in a proper PROJ release. I assume we can just ignore that but it would be nice with a second pair of eyes on the grid metadata to confirm that I put in the right information. |
Adds the grids * dk_sdfi_gs_2022.tif * dk_sdfi_gsb_2022.tif * dk_sdfi_kk_2022.tif * dk_sdfi_os_2022.tif * dk_sdfi_s34j_2022.tif * dk_sdfi_s34s_2022.tif * dk_sdfi_s45b_2022.tif
I've regenerated the Docker image against latest PROJ master, and restarted the checks. They still fail on "target_crs_epsg_code=1347 is not a valid EPSG code" which indeed appears not to be a valid CRS code. |
These transformations and CRS's were a bit tricky to mangle into the EPSG database. They are all quite old CRS's and the original transformations were using the Horner polynomium operation. Those were an even bigger faf to get into the EPSG db so @busstoptaktik came up with a simpler solution. EPSG:1347 is a Datum code which refer to the GS intermediate datum (GS-IRF). The grid is an transformation from ETRS89 to GS-IRF so I figured it was best to add the codes for those. I don't think that is wrong but it does collide with the check in The suspicious min/max values are only present at the limits of the grids and well outside the defined usage area of the transformations. They aren't causing any problems and are purely an artifact of the procedure used to generate the grid. |
Not correct because of what ? Normally a geodetic CRS and its datum are assumed to be somewhat equivalent, once you've defined the prime meridian and coordinate system (at least in the ISO-19111 model) Perhaps I'd get a better understanding if you could give the full pipeline with the starting and intermediate CRS/datum. I think it is better to stick with CRS as the source and target of those grids, at least for consistency. If for some reason using EPSG:10258 wouldn't be correct in that situation, perhaps that could just be captured as a comment in TIFFTAG_IMAGEDESCRIPTION ? |
Because the grid doesn't provide a transformation from ETRS89 (EPSG:4258) to GS (EPSG:10258). The grid transforms from ETRS89 (EPSG:4258) to GS-IRF (EPSG:1347).
Here you go:
For this we are only concerned with the first one. The gridshift step is from ETRS89 to GS-IRF and the LCC step is from GS-IRF (EPSG Datum) to GS (EPSG CRS based on GS-IRF).
Sure. I don't really have an opinion and as far as I am aware PROJ isn't using the metadata for anything. |
hum, seeing that EPSG:10258 is a projected CRS, which uses EPSG:10256 "GS-IRF" as its base geodetic CRS. Shouldn't EPSG:10256 be used then as the target CRS ? From your explanation I kind of understand that not really, but I believe the grid_check tool will reject providing a projected CRS as the target. So perhaps using EPSG:10256 + a comment that an extra further LCC step is actually needed to really get into the datum ? |
Yeah, that sounds correct. I must have got the concepts confused when looking trying to find the correct codes to use. I'll make the change and see how it goes. I believe a similar thing is needed for the rest of grids as well. |
"TIFFTAG_IMAGEDESCRIPTION=Transformation grid from ETRS89 to the GS intermediate datum" for dk_sdfi_gsb_2022.tif lacks the B of GSB. |
Thanks. Should be correct now. |
Adds the grids
In response to OSGeo/PROJ#3731