Skip to content

Commit

Permalink
Update addresses.sql
Browse files Browse the repository at this point in the history
Delete tags of nodes that have become a part of ways or relations by manual user edits. Reported at https://osmlatvija.github.io/zulip-archive/stream/360959-adreses/topic/bota.20izmain.C4.ABta.20iela.html
  • Loading branch information
Davis-Klavins committed Apr 16, 2023
1 parent 343ee5d commit 4be88de
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions addresses.sql
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,14 @@ UPDATE nodes_addr_add_5
SET tags = tags - 'old_addr:street'::TEXT
WHERE tags -> 'addr:street' = tags -> 'old_addr:street';

--Delete tags of nodes that have become a part of ways or relations by manual user edits.
UPDATE nodes_addr_add_5
SET tags = ''
WHERE id IN (
SELECT node_id
FROM way_nodes
);

UPDATE nodes
SET tags = s.tags
,geom = s.geom
Expand Down

0 comments on commit 4be88de

Please sign in to comment.