Skip to content

Commit

Permalink
[processing][grass] Fix v.voronoi output type, add test
Browse files Browse the repository at this point in the history
(cherry-picked from 71f880b)
  • Loading branch information
nyalldawson committed Jul 25, 2018
1 parent f43c858 commit 64e0a8b
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/grass7/ext/v_voronoi.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ def processOutputs(alg, parameters, context, feedback):
if alg.parameterAsBool(parameters, '-l', context):
dataType = 'line'

alg.exportVectorLayer(grassName, fileName, dataType)
alg.exportVectorLayer(grassName, fileName, dataType=dataType)
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +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.
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,26 @@ tests:
output:
name: expected/grass7/v_rast_stats.shp
type: vector

- algorithm: grass7:v.voronoi
name: v.voronoi
params:
-a: false
-l: false
-s: false
-t: false
GRASS_MIN_AREA_PARAMETER: 0.0001
GRASS_OUTPUT_TYPE_PARAMETER: 0
GRASS_SNAP_TOLERANCE_PARAMETER: -1.0
GRASS_VECTOR_DSCO: ''
GRASS_VECTOR_LCO: ''
input:
name: points.gml
type: vector
smoothness: 0.25
thin: -1.0
results:
output:
name: expected/grass7/v_voronoi.shp
type: vector

0 comments on commit 64e0a8b

Please sign in to comment.