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

Allow cancelling gdal algorithms #27882

Closed
qgib opened this issue Oct 9, 2018 · 9 comments
Closed

Allow cancelling gdal algorithms #27882

qgib opened this issue Oct 9, 2018 · 9 comments
Labels
Feature Request Processing Relating to QGIS Processing framework or individual Processing algorithms

Comments

@qgib
Copy link
Contributor

qgib commented Oct 9, 2018

Author Name: Lene Fischer (@LeneFischer)
Original Redmine Issue: 20060

Redmine category:processing/core


Trying to clip a raster with a mask layer. Deciding to stop the process - but Executing in the statusbar does not respond to clik at the red cross


Related issue(s): #27885 (relates), #28261 (duplicates)
Redmine related issue(s): 20063, 20441


@qgib
Copy link
Contributor Author

qgib commented Oct 9, 2018

Author Name: Lene Fischer (@LeneFischer)


Get this report
Processing algorithm…
Algorithm 'Clip raster by mask layer' starting…
Input parameters:
{ 'ALPHA_BAND' : False, 'CROP_TO_CUTLINE' : True, 'DATA_TYPE' : 5, 'INPUT' : 'C:/gis/raster/dtm_rain_byg.tif', 'KEEP_RESOLUTION' : False, 'MASK' : 'C:/gis/raster/kommune/KOMMUNE.shp', 'NODATA' : None, 'OPTIONS' : '', 'OUTPUT' : 'C:/Users/dlt265/AppData/Local/Temp/processing_cc09b3140c1841388b920e72af1f473e/c7b91d8e2b12454aaf0a642d4c0daa61/OUTPUT.tif' }

GDAL command:
gdalwarp -ot Float32 -of GTiff -cutline C:/gis/raster/kommune/KOMMUNE.shp -crop_to_cutline C:/gis/raster/dtm_rain_byg.tif C:/Users/dlt265/AppData/Local/Temp/processing_cc09b3140c1841388b920e72af1f473e/c7b91d8e2b12454aaf0a642d4c0daa61/OUTPUT.tif
GDAL command output:
0...10...20...30...40...50...60...70...80...90...100 - done.

Execution failed after 303.39 seconds

Loading resulting layers
Algorithm 'Clip raster by mask layer' finished

@qgib
Copy link
Contributor Author

qgib commented Oct 9, 2018

Author Name: Lene Fischer (@LeneFischer)


I now have tried to change settings for Processing to output folder to c:\gis\temp
restart program
trying to run the proces again the GDAL console list this message - no change of the folder for the output:

gdalwarp -ot Float32 -of GTiff -cutline C:/gis/raster/kommune/KOMMUNE.shp -crop_to_cutline C:/gis/raster/dtm_rain_byg.tif C:/Users/dlt265/AppData/Local/Temp/processing_ccbc8bf97e664f4e884480ab275cfb81/ee54d11e700a4690be5eb4a05abffad2/OUTPUT.tif

@qgib
Copy link
Contributor Author

qgib commented Oct 9, 2018

Author Name: Nyall Dawson (@nyalldawson)


  • subject was changed from Unable to 'kill' Clip raster by mask layer to Allow cancelling gdal algorithms
  • tracker_id was changed from 1 to 2

@qgib
Copy link
Contributor Author

qgib commented Oct 9, 2018

Author Name: Giovanni Manghi (@gioman)


Lene Fischer wrote:

I now have tried to change settings for Processing to output folder to c:\gis\temp
restart program
trying to run the proces again the GDAL console list this message - no change of the folder for the output:

gdalwarp -ot Float32 -of GTiff -cutline C:/gis/raster/kommune/KOMMUNE.shp -crop_to_cutline C:/gis/raster/dtm_rain_byg.tif C:/Users/dlt265/AppData/Local/Temp/processing_ccbc8bf97e664f4e884480ab275cfb81/ee54d11e700a4690be5eb4a05abffad2/OUTPUT.tif

filed as #27885 (edited)

@qgib
Copy link
Contributor Author

qgib commented Oct 10, 2018

Author Name: Jürgen Fischer (@jef-n)


@qgib
Copy link
Contributor Author

qgib commented Jan 29, 2019

Author Name: Alexander Bruy (@alexbruy)


@qgib qgib added Feature Request Processing Relating to QGIS Processing framework or individual Processing algorithms labels May 25, 2019
@alexbruy
Copy link
Contributor

Related issue #17058.

@AlisterH
Copy link
Contributor

AlisterH commented Jun 7, 2021

Is this recently implemented? Trying to use the batch processing interface for gdal_translate I notice that I can successfully cancel it.
This is in 3.18.3 on Windows.

@nyalldawson
Copy link
Collaborator

Yes, it was implemented in 3.16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

4 participants