Skip to content
Permalink
Browse files

[processing][grass] Fix generation of output for v.rast.stats, add test

  • Loading branch information
nyalldawson committed Jul 24, 2018
1 parent fed345b commit a463af32f8903720625a81fe456c3481b9e9749e
@@ -36,4 +36,4 @@ def processOutputs(alg, parameters, context, feedback):
fileName = alg.parameterAsOutputLayer(parameters, 'output', context)
grassName = alg.exportedLayers['map']
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.
@@ -33,3 +33,38 @@ tests:
geometry:
precision: 7

- algorithm: grass7:v.rast.stats
name: V.rast.stats
params:
GRASS_MIN_AREA_PARAMETER: 0.0001
GRASS_OUTPUT_TYPE_PARAMETER: 0
GRASS_REGION_CELLSIZE_PARAMETER: 0.0
GRASS_SNAP_TOLERANCE_PARAMETER: -1.0
GRASS_VECTOR_DSCO: ''
GRASS_VECTOR_LCO: ''
column_prefix: s
map:
name: custom/zonal_stats.shp
type: vector
method:
- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
percentile: 90
raster:
name: dem.tif
type: raster
results:
output:
name: expected/grass7/v_rast_stats.shp
type: vector

0 comments on commit a463af3

Please sign in to comment.
You can’t perform that action at this time.