2 Feature: Update of address interpolations
 
   3     Test the interpolated address are updated correctly
 
   5     Scenario: addr:street added to interpolation
 
   6       Given the scene parallel-road
 
   8           | osm_id | class | type  | housenumber | geometry
 
   9           | 1      | place | house | 2           | :n-middle-w
 
  10           | 2      | place | house | 6           | :n-middle-e
 
  12           | osm_id | class   | type    | housenumber | geometry
 
  13           | 10     | place   | houses  | even        | :w-middle
 
  15           | osm_id | class   | type         | name                    | geometry
 
  16           | 2      | highway | unclassified | 'name' : 'Sun Way'      | :w-north
 
  17           | 3      | highway | unclassified | 'name' : 'Cloud Street' | :w-south
 
  20           | 10  | 1,100,101,102,2
 
  22       Then table placex contains
 
  23           | object | parent_place_id
 
  27       And way 10 expands exactly to housenumbers 4
 
  28       When updating place ways
 
  29           | osm_id | class   | type    | housenumber | street       | geometry
 
  30           | 10     | place   | houses  | even        | Cloud Street | :w-middle
 
  31       Then way 10 expands exactly to housenumbers 4
 
  32       And table placex contains
 
  33           | object | parent_place_id
 
  39     Scenario: addr:street added to housenumbers
 
  40       Given the scene parallel-road
 
  42           | osm_id | class | type  | housenumber | geometry
 
  43           | 1      | place | house | 2           | :n-middle-w
 
  44           | 2      | place | house | 6           | :n-middle-e
 
  46           | osm_id | class   | type    | housenumber | geometry
 
  47           | 10     | place   | houses  | even        | :w-middle
 
  49           | osm_id | class   | type         | name                    | geometry
 
  50           | 2      | highway | unclassified | 'name' : 'Sun Way'      | :w-north
 
  51           | 3      | highway | unclassified | 'name' : 'Cloud Street' | :w-south
 
  54           | 10  | 1,100,101,102,2
 
  56       Then table placex contains
 
  57           | object | parent_place_id
 
  61       And way 10 expands exactly to housenumbers 4
 
  62       When updating place nodes
 
  63           | osm_id | class | type  | street      | housenumber | geometry
 
  64           | 1      | place | house | Cloud Street| 2           | :n-middle-w
 
  65           | 2      | place | house | Cloud Street| 6           | :n-middle-e
 
  66       Then way 10 expands exactly to housenumbers 4
 
  67       And table placex contains
 
  68           | object | parent_place_id
 
  74     Scenario: interpolation tag removed
 
  75       Given the scene parallel-road
 
  77           | osm_id | class | type  | housenumber | geometry
 
  78           | 1      | place | house | 2           | :n-middle-w
 
  79           | 2      | place | house | 6           | :n-middle-e
 
  81           | osm_id | class   | type    | housenumber | geometry
 
  82           | 10     | place   | houses  | even        | :w-middle
 
  84           | osm_id | class   | type         | name                    | geometry
 
  85           | 2      | highway | unclassified | 'name' : 'Sun Way'      | :w-north
 
  86           | 3      | highway | unclassified | 'name' : 'Cloud Street' | :w-south
 
  89           | 10  | 1,100,101,102,2
 
  91       Then table placex contains
 
  92           | object | parent_place_id
 
  96       And way 10 expands exactly to housenumbers 4
 
  97       When marking for delete W10
 
  98       Then way 10 expands to no housenumbers
 
  99       And table placex contains
 
 100           | object | parent_place_id
 
 105     Scenario: referenced road added
 
 106       Given the scene parallel-road
 
 108           | osm_id | class | type  | housenumber | geometry
 
 109           | 1      | place | house | 2           | :n-middle-w
 
 110           | 2      | place | house | 6           | :n-middle-e
 
 112           | osm_id | class   | type    | housenumber | street      | geometry
 
 113           | 10     | place   | houses  | even        | Cloud Street| :w-middle
 
 115           | osm_id | class   | type         | name                    | geometry
 
 116           | 2      | highway | unclassified | 'name' : 'Sun Way'      | :w-north
 
 119           | 10  | 1,100,101,102,2
 
 121       Then table placex contains
 
 122           | object | parent_place_id
 
 126       And way 10 expands exactly to housenumbers 4
 
 127       When updating place ways
 
 128           | osm_id | class   | type         | name                    | geometry
 
 129           | 3      | highway | unclassified | 'name' : 'Cloud Street' | :w-south
 
 130       Then way 10 expands exactly to housenumbers 4
 
 131       And table placex contains
 
 132           | object | parent_place_id
 
 138     Scenario: referenced road deleted
 
 139       Given the scene parallel-road
 
 141           | osm_id | class | type  | housenumber | geometry
 
 142           | 1      | place | house | 2           | :n-middle-w
 
 143           | 2      | place | house | 6           | :n-middle-e
 
 145           | osm_id | class   | type    | housenumber | street      | geometry
 
 146           | 10     | place   | houses  | even        | Cloud Street| :w-middle
 
 148           | osm_id | class   | type         | name                    | geometry
 
 149           | 2      | highway | unclassified | 'name' : 'Sun Way'      | :w-north
 
 150           | 3      | highway | unclassified | 'name' : 'Cloud Street' | :w-south
 
 153           | 10  | 1,100,101,102,2
 
 155       Then table placex contains
 
 156           | object | parent_place_id
 
 160       And way 10 expands exactly to housenumbers 4
 
 161       When marking for delete W3
 
 162       Then way 10 expands exactly to housenumbers 4
 
 163       And table placex contains
 
 164           | object | parent_place_id