mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-16 00:05:45 -04:00
[processing][grass] Fix v.vect.stats output type, add test
This commit is contained in:
parent
0c56d00c01
commit
b10fa5e979
@ -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)
|
||||
|
BIN
python/plugins/processing/tests/testdata/expected/grass7/v_vect_stats.dbf
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/expected/grass7/v_vect_stats.dbf
vendored
Normal file
Binary file not shown.
1
python/plugins/processing/tests/testdata/expected/grass7/v_vect_stats.prj
vendored
Normal file
1
python/plugins/processing/tests/testdata/expected/grass7/v_vect_stats.prj
vendored
Normal file
@ -0,0 +1 @@
|
||||
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
|
BIN
python/plugins/processing/tests/testdata/expected/grass7/v_vect_stats.shp
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/expected/grass7/v_vect_stats.shp
vendored
Normal file
Binary file not shown.
BIN
python/plugins/processing/tests/testdata/expected/grass7/v_vect_stats.shx
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/expected/grass7/v_vect_stats.shx
vendored
Normal file
Binary file not shown.
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user