diff --git a/integration-test/1406-include-all-name-variants.py b/integration-test/1406-include-all-name-variants.py new file mode 100644 index 000000000..8b0c5ade6 --- /dev/null +++ b/integration-test/1406-include-all-name-variants.py @@ -0,0 +1,14 @@ +from . import FixtureTest + + +class IncludeAllNameVariants(FixtureTest): + + def test_duplicate_names(self): + self.load_fixtures([ + 'http://www.openstreetmap.org/node/206270454', + ]) + + self.assert_has_feature( + 15, 18199, 11103, 'pois', + {'id': 206270454, 'kind': 'station', + 'name': None, 'name:pl': None}) diff --git a/integration-test/418-wof-l10n_name.py b/integration-test/418-wof-l10n_name.py index 1871e56b2..44285cf32 100644 --- a/integration-test/418-wof-l10n_name.py +++ b/integration-test/418-wof-l10n_name.py @@ -26,7 +26,7 @@ def test_san_francisco_wof(self): {'id': 85882641, 'kind': 'neighbourhood', 'source': "whosonfirst.mapzen.com", 'name': 'San Francisco', - 'name:es': type(None)}) + 'name:es': 'San Francisco'}) def test_san_francisco_osm(self): # San Francisco (osm city) diff --git a/vectordatasource/transform.py b/vectordatasource/transform.py index 56f43d8d5..f5d155f1e 100644 --- a/vectordatasource/transform.py +++ b/vectordatasource/transform.py @@ -469,8 +469,6 @@ def tags_name_i18n(shape, properties, fid, zoom): langs = {} for k, v in tags.items(): - if v == name: - continue for candidate in alt_name_prefix_candidates: if k.startswith(candidate):