remove BDD test for tiger:county

We no longer rely on the import to strip the tag.
This commit is contained in:
Sarah Hoffmann 2022-11-22 17:17:38 +01:00
parent fd3dec8efe
commit 41e8bddaa9
3 changed files with 1 additions and 26 deletions

View File

@ -347,16 +347,6 @@ function process_tags(o)
local is_interpolation = o:grab_address{match=INTERPOLATION_TAGS} > 0 local is_interpolation = o:grab_address{match=INTERPOLATION_TAGS} > 0
if ADD_TIGER_COUNTY then
local v = o:grab_tag('tiger:county')
if v ~= nil then
v, num = v:gsub(',.*', ' county')
if num == 0 then
v = v .. ' county'
end
o:set_address('tiger:county', v)
end
end
o:grab_address{match=ADDRESS_TAGS} o:grab_address{match=ADDRESS_TAGS}
if is_interpolation then if is_interpolation then

View File

@ -123,8 +123,7 @@ HOUSENUMBER_TAGS = tag_match{keys = {'addr:housenumber', 'addr:conscriptionnumbe
INTERPOLATION_TAGS = tag_match{keys = {'addr:interpolation'}} INTERPOLATION_TAGS = tag_match{keys = {'addr:interpolation'}}
ADDRESS_TAGS = tag_match{keys = {'addr:*', 'is_in:*'}} ADDRESS_TAGS = tag_match{keys = {'addr:*', 'is_in:*', 'tiger:county'}}
ADD_TIGER_COUNTY = true
SAVE_EXTRA_MAINS = true SAVE_EXTRA_MAINS = true

View File

@ -166,20 +166,6 @@ Feature: Tag evaluation
| N10003:place | place | island | | N10003:place | place | island |
Scenario: Shorten tiger:county tags
When loading osm data
"""
n11001 Tplace=village,tiger:county=Feebourgh%2c%%20%AL
n11002 Tplace=village,addr:state=Alabama,tiger:county=Feebourgh%2c%%20%AL
n11003 Tplace=village,tiger:county=Feebourgh
"""
Then place contains exactly
| object | class | address |
| N11001 | place | 'tiger:county': 'Feebourgh county' |
| N11002 | place | 'tiger:county': 'Feebourgh county', 'state': 'Alabama' |
| N11003 | place | 'tiger:county': 'Feebourgh county' |
Scenario: Building fallbacks Scenario: Building fallbacks
When loading osm data When loading osm data
""" """