Skip to content
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

lookForGridInfo(): make it work properly when passed the old PROJ name #3025

Merged
merged 1 commit into from
Jan 20, 2022

Conversation

rouault
Copy link
Member

@rouault rouault commented Jan 20, 2022

Fixes qgis/QGIS#45470

That is, if the file for the old PROJ name is not found, but the file
for the new PROJ name is found, then use the later for fullFilename and
gridAvailable.

Fixes qgis/QGIS#45470

That is, if the file for the old PROJ name is not found, but the file
for the new PROJ name is found, then use the later for fullFilename and
gridAvailable.
rouault added a commit to rouault/QGIS that referenced this pull request Jan 20, 2022
…g PROJ < 7 grid names (fixes qgis#45470)

Only use proj_coordoperation_is_instantiable() if PROJ networking is enabled.
The reason is that proj_coordoperation_is_instantiable() in PROJ < 9.0
does not work properly when a coordinate operation refers to a PROJ < 7 grid name (gtx/gsb)
but the user has installed PROJ >= 7 GeoTIFF grids.
Cf OSGeo/PROJ#3025.
When networking is not enabled, proj_create() will check that all grids are
present, so proj_coordoperation_is_instantiable() is not necessary.
rouault added a commit to rouault/QGIS that referenced this pull request Jan 20, 2022
…g PROJ < 7 grid names (fixes qgis#45470)

Only use proj_coordoperation_is_instantiable() if PROJ networking is enabled.
The reason is that proj_coordoperation_is_instantiable() in PROJ < 9.0
does not work properly when a coordinate operation refers to a PROJ < 7 grid name (gtx/gsb)
but the user has installed PROJ >= 7 GeoTIFF grids.
Cf OSGeo/PROJ#3025.
When networking is not enabled, proj_create() will check that all grids are
present, so proj_coordoperation_is_instantiable() is not necessary.
rouault added a commit to rouault/QGIS that referenced this pull request Jan 20, 2022
…g PROJ < 7 grid names (fixes qgis#45470)

Only use proj_coordoperation_is_instantiable() if PROJ networking is enabled.
The reason is that proj_coordoperation_is_instantiable() in PROJ < 9.0
does not work properly when a coordinate operation refers to a PROJ < 7 grid name (gtx/gsb)
but the user has installed PROJ >= 7 GeoTIFF grids.
Cf OSGeo/PROJ#3025.
When networking is not enabled, proj_create() will check that all grids are
present, so proj_coordoperation_is_instantiable() is not necessary.
@nyalldawson
Copy link
Contributor

I'm curious -- how does this differ from #1944 ? Or did that fix regress?

@rouault
Copy link
Member Author

rouault commented Jan 20, 2022

I'm curious -- how does this differ from #1944 ? Or did that fix regress?

that's rather a complement to #1944. #1944 wasn't sufficient to update the fullFilename and gridAvailable fields when querying with the old filename, but when the current proj_grid_name (.tif) was present.

@nyalldawson
Copy link
Contributor

wasn't sufficient to update the fullFilename and gridAvailable fields when querying with the old filename

Ah, got it. Thanks!

@rouault rouault merged commit 93c3a16 into OSGeo:master Jan 20, 2022
nyalldawson pushed a commit to qgis/QGIS that referenced this pull request Jan 23, 2022
…g PROJ < 7 grid names (fixes #45470)

Only use proj_coordoperation_is_instantiable() if PROJ networking is enabled.
The reason is that proj_coordoperation_is_instantiable() in PROJ < 9.0
does not work properly when a coordinate operation refers to a PROJ < 7 grid name (gtx/gsb)
but the user has installed PROJ >= 7 GeoTIFF grids.
Cf OSGeo/PROJ#3025.
When networking is not enabled, proj_create() will check that all grids are
present, so proj_coordoperation_is_instantiable() is not necessary.
qgis-bot pushed a commit to qgis/QGIS that referenced this pull request Jan 23, 2022
…g PROJ < 7 grid names (fixes #45470)

Only use proj_coordoperation_is_instantiable() if PROJ networking is enabled.
The reason is that proj_coordoperation_is_instantiable() in PROJ < 9.0
does not work properly when a coordinate operation refers to a PROJ < 7 grid name (gtx/gsb)
but the user has installed PROJ >= 7 GeoTIFF grids.
Cf OSGeo/PROJ#3025.
When networking is not enabled, proj_create() will check that all grids are
present, so proj_coordoperation_is_instantiable() is not necessary.
nyalldawson pushed a commit to qgis/QGIS that referenced this pull request Jan 24, 2022
…g PROJ < 7 grid names (fixes #45470)

Only use proj_coordoperation_is_instantiable() if PROJ networking is enabled.
The reason is that proj_coordoperation_is_instantiable() in PROJ < 9.0
does not work properly when a coordinate operation refers to a PROJ < 7 grid name (gtx/gsb)
but the user has installed PROJ >= 7 GeoTIFF grids.
Cf OSGeo/PROJ#3025.
When networking is not enabled, proj_create() will check that all grids are
present, so proj_coordoperation_is_instantiable() is not necessary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

QGIS 3.21.0: preset transform required "nehpgn.gsb" but downloads "nehpgn.tif" which does not work
2 participants