From 919686b6c9596b4e5ad3552f3a108d0cc5777397 Mon Sep 17 00:00:00 2001 From: jirik Date: Mon, 4 Dec 2017 11:02:04 +0100 Subject: [PATCH] Fix missing cities with diacritics at Z6 --- layers/place/update_city_point.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layers/place/update_city_point.sql b/layers/place/update_city_point.sql index e7fa401b..1dae791c 100644 --- a/layers/place/update_city_point.sql +++ b/layers/place/update_city_point.sql @@ -18,6 +18,7 @@ BEGIN FROM ne_10m_populated_places AS ne, osm_city_point AS osm WHERE ( + (osm.tags ? 'wikidata' AND osm.tags->'wikidata' = ne.wikidataid) OR ne.name ILIKE osm.name OR ne.name ILIKE osm.name_en OR ne.namealt ILIKE osm.name OR @@ -83,4 +84,4 @@ CREATE CONSTRAINT TRIGGER trigger_refresh AFTER INSERT ON place_city.updates INITIALLY DEFERRED FOR EACH ROW - EXECUTE PROCEDURE place_city.refresh(); + EXECUTE PROCEDURE place_city.refresh(); \ No newline at end of file