Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing][grass] Fix v.vect.stats output type, add test
  • Loading branch information
nyalldawson committed Jul 25, 2018
1 parent 0c56d00 commit b10fa5e
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/grass7/ext/v_vect_stats.py
Expand Up @@ -36,4 +36,4 @@ def processOutputs(alg, parameters, context, feedback):
fileName = alg.parameterAsOutputLayer(parameters, 'output', context)
grassName = alg.exportedLayers['areas']
dataType = 'auto'
alg.exportVectorLayer(grassName, fileName, dataType)
alg.exportVectorLayer(grassName, fileName, dataType=dataType)
Binary file not shown.
@@ -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.
Expand Up @@ -114,3 +114,28 @@ tests:
output:
name: expected/grass7/v_what_rast.shp
type: vector

- algorithm: grass7:v.vect.stats
name: v.vect.stats
params:
GRASS_MIN_AREA_PARAMETER: 0.0001
GRASS_OUTPUT_TYPE_PARAMETER: 0
GRASS_SNAP_TOLERANCE_PARAMETER: -1.0
GRASS_VECTOR_DSCO: ''
GRASS_VECTOR_LCO: ''
areas:
name: custom/zonal_stats.shp
type: vector
count_column: count
method: 0
points:
name: custom/grass7/sample_points.shp
type: vector
points_column: val
stats_column: stat
type:
- 0
results:
output:
name: expected/grass7/v_vect_stats.shp
type: vector

0 comments on commit b10fa5e

Please sign in to comment.