Skip to content

Commit 489aa04

Browse files
committedAug 9, 2018
[processing][grass] Fix v.surf.bspline definition, add test
(cherry-picked from 08a8ea7)
1 parent ec96588 commit 489aa04

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed
 

‎python/plugins/processing/algs/grass7/description/v.surf.bspline.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ QgsProcessingParameterEnum|solver|Type of solver which should solve the symmetri
1212
QgsProcessingParameterNumber|maxit|Maximum number of iteration used to solve the linear equation system|QgsProcessingParameterNumber.Integer|10000|True|1|None
1313
QgsProcessingParameterNumber|error|Error break criteria for iterative solver|QgsProcessingParameterNumber.Double|0.000001|True|0.0|None
1414
QgsProcessingParameterNumber|memory|Maximum memory to be used (in MB)|QgsProcessingParameterNumber.Integer|300|True|1|None
15-
QgsProcessingParameterVectorDestination|output|Output vector|QgsProcessing.TypeVectorAnyGeometry|None|True
15+
QgsProcessingParameterVectorDestination|output|Output vector|QgsProcessing.TypeVectorAnyGeometry|None|True|False
1616
QgsProcessingParameterRasterDestination|raster_output|Interpolated spline|None|True

‎python/plugins/processing/tests/testdata/grass7_algorithms_vector_tests.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,3 +243,31 @@ tests:
243243
output:
244244
name: expected/grass7/v_net_steiner.shp
245245
type: vector
246+
247+
- algorithm: grass7:v.surf.bspline
248+
name: v.surf.bspline - raster output
249+
params:
250+
GRASS_MIN_AREA_PARAMETER: 0.0001
251+
GRASS_OUTPUT_TYPE_PARAMETER: 0
252+
GRASS_RASTER_FORMAT_META: ''
253+
GRASS_RASTER_FORMAT_OPT: ''
254+
GRASS_REGION_CELLSIZE_PARAMETER: 1.0
255+
GRASS_SNAP_TOLERANCE_PARAMETER: -1.0
256+
GRASS_VECTOR_DSCO: ''
257+
GRASS_VECTOR_LCO: ''
258+
column: elev
259+
error: 1.0e-06
260+
ew_step: 0.5
261+
input:
262+
name: pointsz.gml
263+
type: vector
264+
lambda_i: 0.01
265+
maxit: 10000
266+
memory: 300
267+
method: 0
268+
ns_step: 0.5
269+
solver: 0
270+
results:
271+
raster_output:
272+
hash: 7aa8e68b697e1558e6621fa23b5f1f01a5826649ffc31fd255e709a1
273+
type: rasterhash

0 commit comments

Comments
 (0)
Please sign in to comment.