[Tile-serving] [openstreetmap/osm2pgsql] Remove role list parameter from rel_way_members_get() (#1468)

Jochen Topf notifications at github.com
Thu Apr 29 09:39:36 UTC 2021


It should not be the job of the middle to extract the roles from the
relation it retrieves. This removes the role list parameter from
rel_way_members_get() function.

But a quirk of the pgsql output is that the roles of all available
member ways of a relation are available in the Lua
"filter_tags_relation_member" callback function. This is probably not
used very often (if at all), but we need to keep that functionality
available for backwards compatibility.

So this adds a new function get_rolelist() to the pgsql output which
creates this role list.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/osm2pgsql/pull/1468

-- Commit Summary --

  * Remove role list parameter from rel_way_members_get()

-- File Changes --

    M src/middle-pgsql.cpp (4)
    M src/middle-pgsql.hpp (2)
    M src/middle-ram.cpp (4)
    M src/middle-ram.hpp (2)
    M src/middle.hpp (3)
    M src/output-flex.cpp (3)
    M src/output-gazetteer.cpp (3)
    M src/output-pgsql.cpp (37)
    M tests/test-middle.cpp (4)

-- Patch Links --

https://github.com/openstreetmap/osm2pgsql/pull/1468.patch
https://github.com/openstreetmap/osm2pgsql/pull/1468.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1468
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20210429/de3d5f6b/attachment-0001.htm>


More information about the Tile-serving mailing list