[Tile-serving] [openstreetmap/osm2pgsql] Move file reading functionality from parse_osmium_t to osmdata_t (#1205)

Jochen Topf notifications at github.com
Sun Jun 7 09:33:58 UTC 2020


This leaves only the functionality as Osmium handler in parse_osmium_t.

This commit also leverages the ability of osmium::io::Reader to read
from either a file or a buffer when it is called with an
osmium::io::File parameter. By creating the osmium::io::File outside the
process_file() function, we don't need the special class test_parse_t
any more.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Move file reading functionality from parse_osmium_t to osmdata_t

-- File Changes --

    M src/osm2pgsql.cpp (16)
    M src/osmdata.cpp (21)
    M src/osmdata.hpp (17)
    M src/parse-osmium.cpp (32)
    M src/parse-osmium.hpp (9)
    M tests/common-import.hpp (36)

-- Patch Links --

https://github.com/openstreetmap/osm2pgsql/pull/1205.patch
https://github.com/openstreetmap/osm2pgsql/pull/1205.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/1205
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20200607/17a97b9f/attachment.htm>


More information about the Tile-serving mailing list