Skip to content
Permalink
Browse files

[processing][grass] Fix v.what.rast data type, add test

(cherry-picked from 0c56d00)
  • Loading branch information
nyalldawson committed Jul 25, 2018
1 parent 64e0a8b commit 9243d1fef3f4d358acb3fe1ebcbdea869099cfd7
@@ -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)
@@ -0,0 +1 @@
UTF-8
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]]
@@ -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"]]
Binary file not shown.
Binary file not shown.
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.
@@ -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

0 comments on commit 9243d1f

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