Skip to content

Commit

Permalink
Loosen test precision following Geographiclib area calculation switch
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 27, 2021
1 parent 48c27ba commit 7e5b6dd
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 3 deletions.
Expand Up @@ -1892,6 +1892,9 @@ tests:
OUTPUT:
name: expected/service_area_from_point_nodes_bounds.gml
type: vector
compare:
geometry:
precision: 3

- algorithm: native:serviceareafrompoint
name: Service area from point (shortest, lines)
Expand Down Expand Up @@ -1943,9 +1946,15 @@ tests:
OUTPUT:
name: expected/service_area_fastest_nodes.gml
type: vector
compare:
geometry:
precision: 3
OUTPUT_LINES:
name: expected/service_area_fastests_lines.gml
type: vector
compare:
geometry:
precision: 3

- algorithm: native:serviceareafrompoint
name: Service area from point (fastest, new parameter)
Expand All @@ -1967,9 +1976,15 @@ tests:
OUTPUT:
name: expected/service_area_fastest_nodes.gml
type: vector
compare:
geometry:
precision: 3
OUTPUT_LINES:
name: expected/service_area_fastests_lines.gml
type: vector
compare:
geometry:
precision: 3

- algorithm: native:serviceareafromlayer
name: Service area from layer (shortest, nodes)
Expand Down
Expand Up @@ -2282,6 +2282,32 @@ tests:
OUTPUT:
name: expected/overlap_analysis_1.gml
type: vector
compare:
fields:
custom_overlay1_a.geojson_area:
precision: 5
custom_overlay1_a.geojson_pc:
precision: 5
custom_overlay1_b.geojson_area:
precision: 5
custom_overlay1_b.geojson_pc:
precision: 5
custom_overlay2_a.geojson_area:
precision: 5
custom_overlay2_a.geojson_pc:
precision: 5
custom_overlay2_b.geojson_area:
precision: 5
custom_overlay2_b.geojson_pc:
precision: 5
custom_overlay3_a.geojson_area:
precision: 5
custom_overlay3_a.geojson_pc:
precision: 5
custom_overlay3_b.geojson_area:
precision: 4
custom_overlay3_b.geojson_pc:
precision: 3

- algorithm: native:calculatevectoroverlaps
name: Overlap analysis reprojected
Expand Down Expand Up @@ -2313,13 +2339,29 @@ tests:
compare:
fields:
custom_overlay2_a.geojson_area:
precision: 13
precision: 8
custom_overlay2_a.geojson_pc:
precision: 13
precision: 7
custom_overlay2_b.geojson_area:
precision: 8
custom_overlay2_b.geojson_pc:
precision: 7
custom_overlay1_a.geojson_area:
precision: 5
custom_overlay1_a.geojson_pc:
precision: 5
custom_overlay1_b.geojson_area:
precision: 5
custom_overlay1_b.geojson_pc:
precision: 5
custom_overlay3_a.geojson_area:
precision: 5
custom_overlay3_a.geojson_pc:
precision: 5
custom_overlay3_b.geojson_area:
precision: 4
custom_overlay3_b.geojson_pc:
precision: 3

- algorithm: native:calculatevectoroverlaps
name: Overlap analysis 3, reordered inputs
Expand Down Expand Up @@ -2371,7 +2413,7 @@ tests:
custom_overlay3_a.geojson_pc:
precision: 3
custom_overlay3_b.geojson_area:
precision: 8
precision: 4
custom_overlay3_b.geojson_pc:
precision: 3

Expand Down

0 comments on commit 7e5b6dd

Please sign in to comment.