documentation error in qgis:creategrid and associated errors it Hex grid from layer script #20024
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Processing
Relating to QGIS Processing framework or individual Processing algorithms
Milestone
Author Name: ramon . (ramon .)
Original Redmine Issue: 11800
Affected QGIS version: 2.6.1
Redmine category:processing/core
Assignee: Victor Olaya
Running the "Hex grid from layer" script gives this error:
Oooops! The following output layers could not be open
grid: /tmp/processing/1429ad65364842438cdb2532e93107f5/grid.shp
The above files could not be opened, which probably indicates that
they were not correctly produced by the executed algorithm
Checking the log information might help you see why those layers were
not created as expected
The log helpfully suggests:
Horizontal spacing is too small for the covered area
Running the "Create Grid" gui with the same values gives this in the log:
#ALGORITHM|Sat Dec 06 2014 18:31:27|processing.runalg("qgis:creategrid",3,7829,10226,200,200,353075,6595874,"EPSG:28351","/home/user/temp.shp")
which is to say
processing.runalg("qgis:creategrid", gridtype, width, height, hspacing, vspacing, centerx, centery, CRStype, savename)
This is different to the documentation
processing.runalg('qgis:creategrid', hspacing, vspacing, width, height, centerx, centery, gridtype, savename)
which the "Hex grid from layer" script follows
processing.runalg('qgis:creategrid', cellsize, cellsize, width, height, centerx, centery, 3, input.crs().authid(), grid)
I'll assume qgis:creategrid alg is correct and the documentation needs an update (if you can point me in the right direction I can do that), and am providing a patch for the "Hex grid from layers" script
The text was updated successfully, but these errors were encountered: