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