Skip to content

Commit 0943cd5

Browse files
committedSep 26, 2017
Resurrect commented out zonal stats test
1 parent fddb6a5 commit 0943cd5

File tree

13 files changed

+30
-16
lines changed

13 files changed

+30
-16
lines changed
 
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
UTF-8
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
UTF-8
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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.

‎python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2771,22 +2771,30 @@ tests:
27712771
fields:
27722772
fid: skip
27732773

2774-
# - algorithm: qgis:zonalstatistics
2775-
# name: simple zonal statistics
2776-
# params:
2777-
# COLUMN_PREFIX: _
2778-
# GLOBAL_EXTENT: false
2779-
# INPUT_RASTER:
2780-
# name: dem.tif
2781-
# type: raster
2782-
# INPUT_VECTOR:
2783-
# name: custom/polygon_mask.gml
2784-
# type: vector
2785-
# RASTER_BAND: 1
2786-
# results:
2787-
# OUTPUT_LAYER:
2788-
# name: expected/zonal_statistics.gml
2789-
# type: vector
2774+
- algorithm: qgis:zonalstatistics
2775+
name: simple zonal statistics
2776+
params:
2777+
COLUMN_PREFIX: _
2778+
INPUT_RASTER:
2779+
name: dem.tif
2780+
type: raster
2781+
INPUT_VECTOR:
2782+
name: custom/zonal_stats.shp
2783+
type: vector
2784+
in_place: true
2785+
RASTER_BAND: 1
2786+
STATS:
2787+
- 0
2788+
- 1
2789+
- 2
2790+
results:
2791+
INPUT_VECTOR:
2792+
name: expected/zonal_stats.shp
2793+
type: vector
2794+
in_place_result: true
2795+
compare:
2796+
geometry:
2797+
precision: 5
27902798

27912799
- algorithm: native:fixgeometries
27922800
name: Fix geometries

0 commit comments

Comments
 (0)
Please sign in to comment.