mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
[processing] modified saga ids description and fixed example script bug
This commit is contained in:
parent
d9a9620932
commit
979d87632f
@ -0,0 +1,16 @@
|
|||||||
|
Inverse Distance Weighted
|
||||||
|
grid_gridding
|
||||||
|
ParameterVector|SHAPES|Points|0|False
|
||||||
|
ParameterTableField|FIELD|Attribute|SHAPES|-1|False
|
||||||
|
ParameterSelection|TARGET|Target Grid|[0] user defined
|
||||||
|
ParameterSelection|WEIGHTING|Distance Weighting|[0] inverse distance to a power;[1] linearly decreasing within search radius;[2] exponential weighting scheme;[3] gaussian weighting scheme
|
||||||
|
ParameterNumber|WEIGHT_POWER|Inverse Distance Power|0.0|None|2
|
||||||
|
ParameterNumber|WEIGHT_BANDWIDTH|Exponential and Gaussian Weighting Bandwidth|0.0|None|1
|
||||||
|
ParameterSelection|SEARCH_RANGE|Search Range|[0] search radius (local);[1] no search radius (global)
|
||||||
|
ParameterNumber|SEARCH_RADIUS|Search Radius|None|None|100.0
|
||||||
|
ParameterSelection|SEARCH_DIRECTION|Search Mode|[0] all directions;[1] quadrants
|
||||||
|
ParameterSelection|SEARCH_POINTS_ALL|Number of Points|[0] maximum number of nearest points;[1] all points
|
||||||
|
ParameterNumber|SEARCH_POINTS_MAX|Maximum Number of Points|None|None|10
|
||||||
|
Extent USER_XMIN USER_XMAX USER_YMIN USER_YMAX
|
||||||
|
ParameterNumber|USER_SIZE|Cellsize|None|None|100.0
|
||||||
|
OutputRaster|USER_GRID|Grid
|
@ -9,4 +9,4 @@ centery = (input.extent().yMinimum() + input.extent().yMaximum()) / 2
|
|||||||
width = (input.extent().xMaximum() - input.extent().xMinimum())
|
width = (input.extent().xMaximum() - input.extent().xMinimum())
|
||||||
cellsize = width / numpolygons
|
cellsize = width / numpolygons
|
||||||
height = (input.extent().yMaximum() - input.extent().yMinimum())
|
height = (input.extent().yMaximum() - input.extent().yMinimum())
|
||||||
processing.runalg("qgis:creategrid", cellsize, height, width, height, centerx, centery, 1, polygons)
|
processing.runalg("qgis:creategrid", cellsize, height, width, height, centerx, centery, 1, input.crs(), polygons)
|
Loading…
x
Reference in New Issue
Block a user