|
| 1 | +Feature: Changes on way with expire on zoom 0 |
| 2 | + |
| 3 | + Background: |
| 4 | + Given the style file 'test_expire.lua' |
| 5 | + |
| 6 | + And the 0.1 grid |
| 7 | + | 11 | 13 | |
| 8 | + | 10 | 12 | |
| 9 | + |
| 10 | + And the OSM data |
| 11 | + """ |
| 12 | + w11 v1 dV Tt1=yes Nn12,n13 |
| 13 | + """ |
| 14 | + When running osm2pgsql flex with parameters |
| 15 | + | --slim | |
| 16 | + |
| 17 | + Then table osm2pgsql_test_t1 contains exactly |
| 18 | + | way_id | |
| 19 | + | 11 | |
| 20 | + Then table osm2pgsql_test_expire contains exactly |
| 21 | + | zoom | x | y | |
| 22 | + |
| 23 | + |
| 24 | + Scenario: way is not relevant |
| 25 | + Given the OSM data |
| 26 | + """ |
| 27 | + w10 v1 dV Ta=b Nn10,n11 |
| 28 | + """ |
| 29 | + And an empty grid |
| 30 | + |
| 31 | + When running osm2pgsql flex with parameters |
| 32 | + | --slim | -a | |
| 33 | + |
| 34 | + Then table osm2pgsql_test_t1 contains exactly |
| 35 | + | way_id | |
| 36 | + | 11 | |
| 37 | + Then table osm2pgsql_test_expire contains exactly |
| 38 | + | zoom | x | y | |
| 39 | + |
| 40 | + |
| 41 | + Scenario: node is not relevant |
| 42 | + Given the OSM data |
| 43 | + """ |
| 44 | + n1 v2 dV x1 y2 |
| 45 | + """ |
| 46 | + And an empty grid |
| 47 | + |
| 48 | + When running osm2pgsql flex with parameters |
| 49 | + | --slim | -a | |
| 50 | + |
| 51 | + Then table osm2pgsql_test_t1 contains exactly |
| 52 | + | way_id | |
| 53 | + | 11 | |
| 54 | + Then table osm2pgsql_test_expire contains exactly |
| 55 | + | zoom | x | y | |
| 56 | + |
| 57 | + |
| 58 | + Scenario: add to t1 |
| 59 | + Given the OSM data |
| 60 | + """ |
| 61 | + w10 v1 dV Tt1=yes Nn10,n11 |
| 62 | + """ |
| 63 | + And an empty grid |
| 64 | + |
| 65 | + When running osm2pgsql flex with parameters |
| 66 | + | --slim | -a | |
| 67 | + |
| 68 | + Then table osm2pgsql_test_t1 contains exactly |
| 69 | + | way_id | |
| 70 | + | 10 | |
| 71 | + | 11 | |
| 72 | + Then table osm2pgsql_test_expire contains exactly |
| 73 | + | zoom | x | y | |
| 74 | + | 0 | 0 | 0 | |
| 75 | + |
| 76 | + |
| 77 | + Scenario: change in t1 |
| 78 | + Given the OSM data |
| 79 | + """ |
| 80 | + w11 v2 dV Ta=b Nn10,n11 |
| 81 | + """ |
| 82 | + And an empty grid |
| 83 | + |
| 84 | + When running osm2pgsql flex with parameters |
| 85 | + | --slim | -a | |
| 86 | + |
| 87 | + Then table osm2pgsql_test_t1 contains exactly |
| 88 | + | way_id | |
| 89 | + Then table osm2pgsql_test_expire contains exactly |
| 90 | + | zoom | x | y | |
| 91 | + | 0 | 0 | 0 | |
| 92 | + |
| 93 | + |
| 94 | + Scenario: remove from t1 |
| 95 | + Given the OSM data |
| 96 | + """ |
| 97 | + w11 v2 dD |
| 98 | + """ |
| 99 | + And an empty grid |
| 100 | + |
| 101 | + When running osm2pgsql flex with parameters |
| 102 | + | --slim | -a | |
| 103 | + |
| 104 | + Then table osm2pgsql_test_t1 contains exactly |
| 105 | + | way_id | |
| 106 | + Then table osm2pgsql_test_expire contains exactly |
| 107 | + | zoom | x | y | |
| 108 | + | 0 | 0 | 0 | |
0 commit comments