Skip to content

Commit

Permalink
[processing][grass] Fix v.what.rast data type, add test
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 25, 2018
1 parent 71f880b commit 0c56d00
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/grass7/ext/v_what_rast.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UTF-8
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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 0c56d00

Please sign in to comment.