-
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
createOperation(): make sure no to discard deprecated operations... #2622
Conversation
if the replacement uses a grid unknown to us. Fixes issue reported at https://lists.osgeo.org/pipermail/gdal-dev/2021-March/053771.html The issue comes from the fact that EPSG has created 2 transformations using grids BALR2009.gsb ad PENR2009.gsb that supersede the one which uses the single grid SPED2ETV2 we have in PROJ-data.
712a3ec
to
b7f9a9b
Compare
The "new" grids are in https://www.ign.es/web/ign/portal/gds-rejilla-cambio-datum (that are not new. They just updated in EPSG what was in their page for a long time) The "problem" is that |
Due to this unfortunate overlap of both files in the Balearic Islands, with different data, I do not know what is going to do PROJ if we define two different gridfiles. |
yes, that was addressed per OSGeo/PROJ-data#32 |
I think user will not notice that. They will just let PROJ to select what PROJ considers better (even more from GDAL, as in the source problem). Right now, PROJ is doing what IGN says: use |
hum, good question. The algorithm is deterministic, but I have not in mind what would happen in that situation. Actually trying "projinfo -s ED50 -t ETRS89 --summary --spatial-test intersects --grid-check none --show-superseded" in master, I see that the transformation "ED50 to ETRS89 (16), 0.2 m, Spain - mainland and Ceuta" is presented before "ED50 to ETRS89 (17), 0.2 m, Spain - Balearic Islands". PROJ would probably need an extra logic potentially fragile to make sure the Baleares is used before the Peninsula |
What about what you did in #2619 (I mean, have a single tif)? I know it is a fix for this particular case. Here can be fixed under control having both grids in one file ( I do not see a general way to cover this issue (two grids for the same transformation that overlap) efficiently. Imagine (they are not yet in PROJ-data), that there is a grid for Portugal for the ED50-ETRS89 transformation. Or for France. The overlapping areas will just use the bigger one (France over Spain, and Spain over Portugal). |
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-8.0 8.0
# Navigate to the new working tree
cd .worktrees/backport-8.0
# Create a new branch
git switch --create backport-2622-to-8.0
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick --mainline 1 381d4f6ff3d18efbcd4fdb626200dddab5f2c115
# Push it to GitHub
git push --set-upstream origin backport-2622-to-8.0
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-8.0 Then, create a pull request where the |
if the replacement uses a grid unknown to us.
Fixes issue reported at https://lists.osgeo.org/pipermail/gdal-dev/2021-March/053771.html
The issue comes from the fact that EPSG has created 2 transformations
using grids BALR2009.gsb ad PENR2009.gsb that supersede the one which
uses the single grid SPED2ETV2 we have in PROJ-data.
More general fix than the hack of #2619