mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
[processing][grass] Fix v.what.rast data type, add test
This commit is contained in:
parent
71f880bb93
commit
0c56d00c01
@ -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)
|
||||
|
1
python/plugins/processing/tests/testdata/custom/grass7/sample_points.cpg
vendored
Normal file
1
python/plugins/processing/tests/testdata/custom/grass7/sample_points.cpg
vendored
Normal file
@ -0,0 +1 @@
|
||||
UTF-8
|
BIN
python/plugins/processing/tests/testdata/custom/grass7/sample_points.dbf
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/custom/grass7/sample_points.dbf
vendored
Normal file
Binary file not shown.
1
python/plugins/processing/tests/testdata/custom/grass7/sample_points.prj
vendored
Normal file
1
python/plugins/processing/tests/testdata/custom/grass7/sample_points.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]]
|
1
python/plugins/processing/tests/testdata/custom/grass7/sample_points.qpj
vendored
Normal file
1
python/plugins/processing/tests/testdata/custom/grass7/sample_points.qpj
vendored
Normal file
@ -0,0 +1 @@
|
||||
GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]
|
BIN
python/plugins/processing/tests/testdata/custom/grass7/sample_points.shp
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/custom/grass7/sample_points.shp
vendored
Normal file
Binary file not shown.
BIN
python/plugins/processing/tests/testdata/custom/grass7/sample_points.shx
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/custom/grass7/sample_points.shx
vendored
Normal file
Binary file not shown.
BIN
python/plugins/processing/tests/testdata/expected/grass7/v_what_rast.dbf
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/expected/grass7/v_what_rast.dbf
vendored
Normal file
Binary file not shown.
1
python/plugins/processing/tests/testdata/expected/grass7/v_what_rast.prj
vendored
Normal file
1
python/plugins/processing/tests/testdata/expected/grass7/v_what_rast.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_what_rast.shp
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/expected/grass7/v_what_rast.shp
vendored
Normal file
Binary file not shown.
BIN
python/plugins/processing/tests/testdata/expected/grass7/v_what_rast.shx
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/expected/grass7/v_what_rast.shx
vendored
Normal file
Binary file not shown.
@ -91,3 +91,26 @@ tests:
|
||||
name: expected/grass7/v_voronoi.shp
|
||||
type: vector
|
||||
|
||||
- algorithm: grass7:v.what.rast
|
||||
name: v.what.rast
|
||||
params:
|
||||
-i: false
|
||||
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: val
|
||||
map:
|
||||
name: custom/grass7/sample_points.shp
|
||||
type: vector
|
||||
raster:
|
||||
name: dem.tif
|
||||
type: raster
|
||||
type: 0
|
||||
where: ''
|
||||
results:
|
||||
output:
|
||||
name: expected/grass7/v_what_rast.shp
|
||||
type: vector
|
||||
|
Loading…
x
Reference in New Issue
Block a user