Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #5255 from nyalldawson/proc_test
Resurrect some commented out processing tests
  • Loading branch information
nyalldawson committed Sep 26, 2017
2 parents f8cf2f4 + 0943cd5 commit 5ad5930
Show file tree
Hide file tree
Showing 13 changed files with 51 additions and 24 deletions.
@@ -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.
@@ -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.
69 changes: 45 additions & 24 deletions python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml
Expand Up @@ -2524,6 +2524,11 @@ tests:
type: vector type: vector
compare: compare:
ignore_crs_check: true ignore_crs_check: true
geometry:
precision: 5
fields:
cost:
precision: 2


- algorithm: qgis:shortestpathpointtopoint - algorithm: qgis:shortestpathpointtopoint
name: Shortest path (point to point, fastest route) name: Shortest path (point to point, fastest route)
Expand All @@ -2547,6 +2552,8 @@ tests:
type: vector type: vector
compare: compare:
ignore_crs_check: true ignore_crs_check: true
geometry:
precision: 5


- algorithm: qgis:serviceareafrompoint - algorithm: qgis:serviceareafrompoint
name: Service area (from point, shortest) name: Service area (from point, shortest)
Expand All @@ -2569,6 +2576,8 @@ tests:
type: vector type: vector
compare: compare:
ignore_crs_check: true ignore_crs_check: true
geometry:
precision: 5


- algorithm: qgis:createattributeindex - algorithm: qgis:createattributeindex
name: Create attribute index name: Create attribute index
Expand Down Expand Up @@ -2762,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
Expand Down Expand Up @@ -3120,14 +3137,18 @@ tests:
name: expected/add_field.gml name: expected/add_field.gml
type: vector type: vector


# - algorithm: qgis:randompointsinextent - algorithm: qgis:randompointsinextent
# name: Random point in extent, don't check result name: Random point in extent, don't check result
# params: params:
# CRS: EPSG:4326 TARGET_CRS: EPSG:4326
# EXTENT: 3.9821361058601132,4.01984877126654,0.9948015122873343,1.0305293005671075 EXTENT: 3.9821361058601132,4.01984877126654,0.9948015122873343,1.0305293005671075
# MIN_DISTANCE: 0.0 MIN_DISTANCE: 0.0
# POINT_NUMBER: 5 POINTS_NUMBER: 5
# results: {} results:
OUTPUT:
compare: false
type: vector
name: randompointsinextent.gml


- algorithm: script:selectbyattribute - algorithm: script:selectbyattribute
name: Select by attribute name: Select by attribute
Expand Down

0 comments on commit 5ad5930

Please sign in to comment.