[Tile-serving] [openstreetmap/osm2pgsql] Refactor middle: Pull special osm_* tags out of the tag list (PR #1966)

Jochen Topf notifications at github.com
Wed May 24 18:30:50 UTC 2023


The middle stores OSM attributes (version, timestamp, changeset, uid, user) in "osm_*" pseudo-tags. When we get data back from the middle, we used to just leave them in there. This commit changes that behaviour: We pull the data out and put it into the proper attributes and remove the special tags. This is how the flex output needs the data and this is how a new middle (we are currently working on) will provide the data.

The pgsql output puts the pseudo-tags in already, because it had to do that on import anyway.

This also fixes a problem where the "osm_*" pseudo-tags were visible in the Lua config file of the flex output.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Refactor middle: Pull special osm_* tags out of the tag list

-- File Changes --

    M src/middle-pgsql.cpp (85)
    M src/output-flex.cpp (44)
    M tests/bdd/flex/extra-attributes.feature (39)
    A tests/bdd/regression/extra-attributes.feature (53)
    M tests/test-middle.cpp (65)

-- Patch Links --

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

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1966
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/osm2pgsql/pull/1966 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20230524/013533f3/attachment.htm>


More information about the Tile-serving mailing list