flex style: reinstate postcode boundaries

Postcode boundaries don't have a name, so need to be imported
unconditionally.
This commit is contained in:
Sarah Hoffmann 2023-04-03 09:17:50 +02:00
parent ee0366af88
commit 7d30dbebc5
5 changed files with 18 additions and 4 deletions

View File

@ -17,7 +17,7 @@ flex.set_main_tags{
secondary_link = 'named', secondary_link = 'named',
tertiary_link = 'named'}, tertiary_link = 'named'},
boundary = {administrative = 'named', boundary = {administrative = 'named',
postal_code = 'named'}, postal_code = 'always'},
landuse = 'fallback', landuse = 'fallback',
place = 'always' place = 'always'
} }

View File

@ -27,7 +27,7 @@ flex.set_main_tags{
man_made = 'always', man_made = 'always',
aerialway = 'always', aerialway = 'always',
boundary = {'named', boundary = {'named',
postal_code = 'named'}, postal_code = 'always'},
aeroway = 'always', aeroway = 'always',
amenity = 'always', amenity = 'always',
club = 'always', club = 'always',

View File

@ -27,7 +27,7 @@ flex.set_main_tags{
man_made = 'always', man_made = 'always',
aerialway = 'always', aerialway = 'always',
boundary = {'named', boundary = {'named',
postal_code = 'named'}, postal_code = 'always'},
aeroway = 'always', aeroway = 'always',
amenity = 'always', amenity = 'always',
club = 'always', club = 'always',

View File

@ -16,7 +16,8 @@ flex.set_main_tags{
primary_link = 'named', primary_link = 'named',
secondary_link = 'named', secondary_link = 'named',
tertiary_link = 'named'}, tertiary_link = 'named'},
boundary = {administrative = 'named'}, boundary = {administrative = 'named',
postal_code = 'always'},
landuse = 'fallback', landuse = 'fallback',
place = 'always' place = 'always'
} }

View File

@ -101,6 +101,19 @@ Feature: Tag evaluation
| N6003 | shop | - | | N6003 | shop | - |
Scenario: Postcode areas
When loading osm data
"""
n1 x12.36853 y51.50618
n2 x12.36853 y51.42362
n3 x12.63666 y51.42362
n4 x12.63666 y51.50618
w1 Tboundary=postal_code,ref=3456 Nn1,n2,n3,n4,n1
"""
Then place contains exactly
| object | class | type | name |
| W1 | boundary | postal_code | 'ref': '3456' |
Scenario: Main with extra Scenario: Main with extra
When loading osm data When loading osm data
""" """