[Tile-serving] [osm2pgsql-dev/osm2pgsql] Add support for node processing in second stage (PR #2252)
Jochen Topf
notifications at github.com
Wed Sep 18 15:50:01 UTC 2024
@joto commented on this pull request.
> +function osm2pgsql.select_relation_members(relation)
+ -- Only interested in public transport relations with refs
+ if wanted_relation(relation.tags) then
+ local node_ids = {}
+ for _, member in ipairs(relation.members) do
+ if member.type == 'n' and member.role == 'stop' then
+ node_ids[#node_ids + 1] = member.ref
+ end
+ end
+
+ local way_ids = {}
+ for _, member in ipairs(relation.members) do
+ if member.type == 'w' and member.role == '' then
+ way_ids[#way_ids + 1] = member.ref
+ end
+ end
Ups. yes.
--
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2252#discussion_r1765315362
You are receiving this because you are subscribed to this thread.
Message ID: <osm2pgsql-dev/osm2pgsql/pull/2252/review/2313128002 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20240918/d8407184/attachment.htm>
More information about the Tile-serving
mailing list