[processing][grass] Fix v.surf.bspline definition, add test

This commit is contained in:
Nyall Dawson 2018-08-09 10:33:36 +10:00
parent 113e16351d
commit 08a8ea7b72
2 changed files with 29 additions and 1 deletions

View File

@ -12,5 +12,5 @@ QgsProcessingParameterEnum|solver|Type of solver which should solve the symmetri
QgsProcessingParameterNumber|maxit|Maximum number of iteration used to solve the linear equation system|QgsProcessingParameterNumber.Integer|10000|True|1|None
QgsProcessingParameterNumber|error|Error break criteria for iterative solver|QgsProcessingParameterNumber.Double|0.000001|True|0.0|None
QgsProcessingParameterNumber|memory|Maximum memory to be used (in MB)|QgsProcessingParameterNumber.Integer|300|True|1|None
QgsProcessingParameterVectorDestination|output|Output vector|QgsProcessing.TypeVectorAnyGeometry|None|True
QgsProcessingParameterVectorDestination|output|Output vector|QgsProcessing.TypeVectorAnyGeometry|None|True|False
QgsProcessingParameterRasterDestination|raster_output|Interpolated spline|None|True

View File

@ -243,3 +243,31 @@ tests:
output:
name: expected/grass7/v_net_steiner.shp
type: vector
- algorithm: grass7:v.surf.bspline
name: v.surf.bspline - raster output
params:
GRASS_MIN_AREA_PARAMETER: 0.0001
GRASS_OUTPUT_TYPE_PARAMETER: 0
GRASS_RASTER_FORMAT_META: ''
GRASS_RASTER_FORMAT_OPT: ''
GRASS_REGION_CELLSIZE_PARAMETER: 1.0
GRASS_SNAP_TOLERANCE_PARAMETER: -1.0
GRASS_VECTOR_DSCO: ''
GRASS_VECTOR_LCO: ''
column: elev
error: 1.0e-06
ew_step: 0.5
input:
name: pointsz.gml
type: vector
lambda_i: 0.01
maxit: 10000
memory: 300
method: 0
ns_step: 0.5
solver: 0
results:
raster_output:
hash: 7aa8e68b697e1558e6621fa23b5f1f01a5826649ffc31fd255e709a1
type: rasterhash