mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-18 00:06:00 -04:00
Resurrect commented out zonal stats test
This commit is contained in:
parent
fddb6a59a1
commit
0943cd5d51
1
python/plugins/processing/tests/testdata/custom/zonal_stats.cpg
vendored
Normal file
1
python/plugins/processing/tests/testdata/custom/zonal_stats.cpg
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
UTF-8
|
BIN
python/plugins/processing/tests/testdata/custom/zonal_stats.dbf
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/custom/zonal_stats.dbf
vendored
Normal file
Binary file not shown.
1
python/plugins/processing/tests/testdata/custom/zonal_stats.prj
vendored
Normal file
1
python/plugins/processing/tests/testdata/custom/zonal_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]]
|
1
python/plugins/processing/tests/testdata/custom/zonal_stats.qpj
vendored
Normal file
1
python/plugins/processing/tests/testdata/custom/zonal_stats.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/zonal_stats.shp
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/custom/zonal_stats.shp
vendored
Normal file
Binary file not shown.
BIN
python/plugins/processing/tests/testdata/custom/zonal_stats.shx
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/custom/zonal_stats.shx
vendored
Normal file
Binary file not shown.
1
python/plugins/processing/tests/testdata/expected/zonal_stats.cpg
vendored
Normal file
1
python/plugins/processing/tests/testdata/expected/zonal_stats.cpg
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
UTF-8
|
BIN
python/plugins/processing/tests/testdata/expected/zonal_stats.dbf
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/expected/zonal_stats.dbf
vendored
Normal file
Binary file not shown.
1
python/plugins/processing/tests/testdata/expected/zonal_stats.prj
vendored
Normal file
1
python/plugins/processing/tests/testdata/expected/zonal_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]]
|
1
python/plugins/processing/tests/testdata/expected/zonal_stats.qpj
vendored
Normal file
1
python/plugins/processing/tests/testdata/expected/zonal_stats.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/expected/zonal_stats.shp
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/expected/zonal_stats.shp
vendored
Normal file
Binary file not shown.
BIN
python/plugins/processing/tests/testdata/expected/zonal_stats.shx
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/expected/zonal_stats.shx
vendored
Normal file
Binary file not shown.
@ -2771,22 +2771,30 @@ tests:
|
|||||||
fields:
|
fields:
|
||||||
fid: skip
|
fid: skip
|
||||||
|
|
||||||
# - algorithm: qgis:zonalstatistics
|
- algorithm: qgis:zonalstatistics
|
||||||
# name: simple zonal statistics
|
name: simple zonal statistics
|
||||||
# params:
|
params:
|
||||||
# COLUMN_PREFIX: _
|
COLUMN_PREFIX: _
|
||||||
# GLOBAL_EXTENT: false
|
INPUT_RASTER:
|
||||||
# INPUT_RASTER:
|
name: dem.tif
|
||||||
# name: dem.tif
|
type: raster
|
||||||
# type: raster
|
INPUT_VECTOR:
|
||||||
# INPUT_VECTOR:
|
name: custom/zonal_stats.shp
|
||||||
# name: custom/polygon_mask.gml
|
type: vector
|
||||||
# type: vector
|
in_place: true
|
||||||
# RASTER_BAND: 1
|
RASTER_BAND: 1
|
||||||
# results:
|
STATS:
|
||||||
# OUTPUT_LAYER:
|
- 0
|
||||||
# name: expected/zonal_statistics.gml
|
- 1
|
||||||
# type: vector
|
- 2
|
||||||
|
results:
|
||||||
|
INPUT_VECTOR:
|
||||||
|
name: expected/zonal_stats.shp
|
||||||
|
type: vector
|
||||||
|
in_place_result: true
|
||||||
|
compare:
|
||||||
|
geometry:
|
||||||
|
precision: 5
|
||||||
|
|
||||||
- algorithm: native:fixgeometries
|
- algorithm: native:fixgeometries
|
||||||
name: Fix geometries
|
name: Fix geometries
|
||||||
|
Loading…
x
Reference in New Issue
Block a user