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

GDAL "Extract projection" not available from the processing toolbox in 3.4 #28084

Closed
qgib opened this issue Oct 29, 2018 · 5 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Processing Relating to QGIS Processing framework or individual Processing algorithms Regression Something which used to work, but doesn't anymore

Comments

@qgib
Copy link
Contributor

qgib commented Oct 29, 2018

Author Name: Håvard Tveite (@havatv)
Original Redmine Issue: 20263
Affected QGIS version: 3.4.0
Redmine category:processing/gdal


The GDAL "Extract projection" algorithm used to be available under [GDAL]-> Projections in the processing toolbox in QGIS 2.
Expected to be available under GDAL-> Raster projections in QGIS 3, but it is not in my 3.4 on Ubuntu 18.04.
The algorithm is still available as "extractprojection.py" in QGIS/python/plugins/processing/algs/gdal, and looks OK to me.
It seems to be the only missing GDAL algorithms in QGIS 3.4 compared to QGIS 2.18 here.

@qgib
Copy link
Contributor Author

qgib commented Oct 29, 2018

Author Name: Giovanni Manghi (@gioman)


for some reason it was commented out here:

https://github.com/qgis/QGIS/blob/release-3_4/python/plugins/processing/algs/gdal/GdalAlgorithmProvider.py


  • regression was changed from 0 to 1
  • priority_id was changed from Normal to High
  • operating_system was changed from Ubuntu 18.04 to

@qgib
Copy link
Contributor Author

qgib commented Oct 30, 2018

Author Name: Håvard Tveite (@havatv)


I checked the code (extractprojection.py), and found that it had not been completely adapted to QGIS 3.
I tried to fix it, but got stuck when I found that GetGeoTransform() is no longer available
in QgsRasterLayer. The result of GetGeoTransform is used directly to create the world file.
In QGIS 3 GetGeoTransform seems only to be available for gdal datasources.
Using the source returned from gdal.Open works. I may be able to create a pull request.

@qgib
Copy link
Contributor Author

qgib commented Nov 1, 2018

Author Name: Håvard Tveite (@havatv)


Pull request: #8378

@qgib
Copy link
Contributor Author

qgib commented Nov 1, 2018

Author Name: Giovanni Manghi (@gioman)


  • pull_request_patch_supplied was changed from 0 to 1

@qgib
Copy link
Contributor Author

qgib commented Nov 11, 2018

Author Name: Håvard Tveite (@havatv)


Applied in changeset 296df2e.


  • done_ratio was changed from 0 to 100
  • status_id was changed from Open to Closed

@qgib qgib closed this as completed Nov 11, 2018
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Processing Relating to QGIS Processing framework or individual Processing algorithms Regression Something which used to work, but doesn't anymore labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Processing Relating to QGIS Processing framework or individual Processing algorithms Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

1 participant