Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
make traffic_sign ids unique
Browse files Browse the repository at this point in the history
  • Loading branch information
rush42 committed Apr 16, 2024
1 parent eca95fb commit 3b7a1b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions processing/topics/trafficSigns/trafficSigns.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function osm2pgsql.process_node(object)
to_orient[object.id] = true
end
end
for _, traffic_sign in pairs(splitDirections(tags)) do -- here we possibly duplicate a node due to the possibility of two traffic signs per node
for i, traffic_sign in pairs(splitDirections(tags)) do -- here we possibly duplicate a node due to the possibility of two traffic signs per node
traffic_sign.direction = tonumber(direction)
traffic_sign.direction_source = direction_source
for k,v in pairs(tags) do traffic_sign['osm_' .. k] = v end
Expand All @@ -130,7 +130,7 @@ function osm2pgsql.process_node(object)
meta = Metadata(object),
geom = object:as_point(),
minzoom = 0,
id = DefaultId(object)
id = DefaultId(object) .. i

This comment has been minimized.

Copy link
@tordans

tordans Apr 17, 2024

Contributor

@rush42 das müsste dann eher DefaultId(object) .. "/" .. i sein, damit wir den Muster mit den "/" folgen.

})
end
end
Expand Down

0 comments on commit 3b7a1b8

Please sign in to comment.