Skip to content

Commit 71f880b

Browse files
committed
[processing][grass] Fix v.voronoi output type, add test
1 parent ba56ba2 commit 71f880b

File tree

6 files changed

+25
-1
lines changed

6 files changed

+25
-1
lines changed

python/plugins/processing/algs/grass7/ext/v_voronoi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ def processOutputs(alg, parameters, context, feedback):
4343
if alg.parameterAsBool(parameters, '-l', context):
4444
dataType = 'line'
4545

46-
alg.exportVectorLayer(grassName, fileName, dataType)
46+
alg.exportVectorLayer(grassName, fileName, dataType=dataType)
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
Binary file not shown.
Binary file not shown.

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,26 @@ tests:
6868
output:
6969
name: expected/grass7/v_rast_stats.shp
7070
type: vector
71+
72+
- algorithm: grass7:v.voronoi
73+
name: v.voronoi
74+
params:
75+
-a: false
76+
-l: false
77+
-s: false
78+
-t: false
79+
GRASS_MIN_AREA_PARAMETER: 0.0001
80+
GRASS_OUTPUT_TYPE_PARAMETER: 0
81+
GRASS_SNAP_TOLERANCE_PARAMETER: -1.0
82+
GRASS_VECTOR_DSCO: ''
83+
GRASS_VECTOR_LCO: ''
84+
input:
85+
name: points.gml
86+
type: vector
87+
smoothness: 0.25
88+
thin: -1.0
89+
results:
90+
output:
91+
name: expected/grass7/v_voronoi.shp
92+
type: vector
93+

0 commit comments

Comments
 (0)