Fix missing cities with diacritics at Z6

This commit is contained in:
jirik 2017-12-04 11:02:04 +01:00
parent db60ae7f40
commit 919686b6c9

View File

@ -18,6 +18,7 @@ BEGIN
FROM ne_10m_populated_places AS ne, osm_city_point AS osm FROM ne_10m_populated_places AS ne, osm_city_point AS osm
WHERE WHERE
( (
(osm.tags ? 'wikidata' AND osm.tags->'wikidata' = ne.wikidataid) OR
ne.name ILIKE osm.name OR ne.name ILIKE osm.name OR
ne.name ILIKE osm.name_en OR ne.name ILIKE osm.name_en OR
ne.namealt ILIKE osm.name OR ne.namealt ILIKE osm.name OR
@ -83,4 +84,4 @@ CREATE CONSTRAINT TRIGGER trigger_refresh
AFTER INSERT ON place_city.updates AFTER INSERT ON place_city.updates
INITIALLY DEFERRED INITIALLY DEFERRED
FOR EACH ROW FOR EACH ROW
EXECUTE PROCEDURE place_city.refresh(); EXECUTE PROCEDURE place_city.refresh();