[Tile-serving] [openstreetmap/osm2pgsql] Refactor osmdata (#1369)

Jochen Topf notifications at github.com
Thu Dec 10 13:57:22 UTC 2020


Refactoring around "osmdata" code to disentangle separate aspects. We now have a clear separation between handling of inputs files (input.[ch]pp), progress display (progress-display.[ch]pp) and the code handling the data itself (osmdata.[ch]pp). The main program (osm2pgsql.cpp) only has to keep these together.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Do check for deleted object earlier
  * Disentangle progress display from core of osmdata_t
  * Move process_file(s) function out of osmdata.
  * Move prepare_input_files() function into input.cpp
  * Introduce clean after_nodes/ways/relations() functions in handlers
  * Move static function into implementation file

-- File Changes --

    M src/CMakeLists.txt (1)
    A src/input.cpp (296)
    A src/input.hpp (53)
    M src/osm2pgsql.cpp (44)
    M src/osmdata.cpp (255)
    M src/osmdata.hpp (39)
    M src/progress-display.cpp (23)
    M src/progress-display.hpp (53)
    M tests/CMakeLists.txt (2)
    M tests/common-import.hpp (8)
    R tests/test-check-input.cpp (2)

-- Patch Links --

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


More information about the Tile-serving mailing list