[Tile-serving] [osm2pgsql] Refactor table_t constructor (#438)

Paul Norman notifications at github.com
Tue Aug 11 05:38:36 UTC 2015


* Moves per-table options into their own class
* Make use of this class for the table_t constructor
* Get the few global options for table_t from the options_t object
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Bring back old options_t constructor comment
  * Move table options into their own class
  * Refactor giant table_t constructor
  * Use foreach loops in table.cpp
  * Pass in the options object to the table constructor for slim/drop/etc
  * The table_t constructor no longer needs trembling

-- File Changes --

    M options.cpp (43)
    M options.hpp (25)
    M output-gazetteer.cpp (8)
    M output-multi.cpp (9)
    M output-pgsql.cpp (20)
    M output-pgsql.hpp (1)
    M output.cpp (14)
    M table.cpp (100)
    M table.hpp (18)
    M tagtransform.cpp (12)
    M tests/test-hstore-match-only.cpp (4)
    M tests/test-options-parse.cpp (2)

-- Patch Links --

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

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/438
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20150810/6c6c0f95/attachment.html>


More information about the Tile-serving mailing list