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

qgscoordinatetransform_p.cpp: avoid issues when opening projects using PROJ < 7 grid names (fixes #45470) #46918

Merged
merged 1 commit into from
Jan 23, 2022

Conversation

rouault
Copy link
Contributor

@rouault rouault commented Jan 20, 2022

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.

One of that fix or OSGeo/PROJ#3025 are sufficient to fix the issue

@github-actions github-actions bot added this to the 3.24.0 milestone 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.
@agiudiceandrea
Copy link
Contributor

@rouault does this also fix #44061, as well as #45470?

@rouault
Copy link
Contributor Author

rouault commented Jan 20, 2022

does this also fix #44061,

this looks to be a duplicate of #45470

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.

None yet

3 participants