Skip to content

Commit b10fa5e

Browse files
committed
[processing][grass] Fix v.vect.stats output type, add test
1 parent 0c56d00 commit b10fa5e

File tree

6 files changed

+27
-1
lines changed

6 files changed

+27
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ def processOutputs(alg, parameters, context, feedback):
3636
fileName = alg.parameterAsOutputLayer(parameters, 'output', context)
3737
grassName = alg.exportedLayers['areas']
3838
dataType = 'auto'
39-
alg.exportVectorLayer(grassName, fileName, dataType)
39+
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: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,28 @@ tests:
114114
output:
115115
name: expected/grass7/v_what_rast.shp
116116
type: vector
117+
118+
- algorithm: grass7:v.vect.stats
119+
name: v.vect.stats
120+
params:
121+
GRASS_MIN_AREA_PARAMETER: 0.0001
122+
GRASS_OUTPUT_TYPE_PARAMETER: 0
123+
GRASS_SNAP_TOLERANCE_PARAMETER: -1.0
124+
GRASS_VECTOR_DSCO: ''
125+
GRASS_VECTOR_LCO: ''
126+
areas:
127+
name: custom/zonal_stats.shp
128+
type: vector
129+
count_column: count
130+
method: 0
131+
points:
132+
name: custom/grass7/sample_points.shp
133+
type: vector
134+
points_column: val
135+
stats_column: stat
136+
type:
137+
- 0
138+
results:
139+
output:
140+
name: expected/grass7/v_vect_stats.shp
141+
type: vector

0 commit comments

Comments
 (0)