Hex_grid_from_layer_bounds.diff
scripts/Hex_grid_from_layer_bounds2.py 2014-12-06 18:48:07.063445876 +0800 | ||
---|---|---|
10 | 10 |
width = input.extent().xMaximum() - input.extent().xMinimum() + cellsize |
11 | 11 |
height = input.extent().yMaximum() - input.extent().yMinimum() + cellsize |
12 | 12 | |
13 |
processing.runalg('qgis:creategrid', cellsize, cellsize, width, height, |
|
14 |
centerx, centery, 3, input.crs().authid(), grid) |
|
13 |
processing.runalg('qgis:creategrid', 3, width, height, cellsize, cellsize, |
|
14 |
centerx, centery, input.crs().authid(), grid) |