Skip to content

Commit

Permalink
Update addresses.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
Davis-Klavins committed May 8, 2023
1 parent e9eb953 commit 731b918
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion addresses.sql
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,11 @@ UPDATE nodes
SET tags = s.tags
,geom = s.geom
FROM nodes_addr_add_5 s
WHERE nodes.id = s.id;
WHERE nodes.id = s.id
AND nodes.id NOT IN (
SELECT id
FROM nodes_altered
);

---House names matches, distance up to 0.01 decimal degree (~1.1 km). Can be commented after pre-bot OSM address data has been entirely replaced for the whole territory.
----Since house names that look like numbers are treated as numbers and vice versa, direct usage of vzd.adreses_ekas_sadalitas takes too long to execute. Recreate as temporary table in previous structure.
Expand Down

0 comments on commit 731b918

Please sign in to comment.