[Tile-serving] [osm2pgsql-dev/osm2pgsql] Refactor hex en/decoding (PR #2339)

Jochen Topf notifications at github.com
Mon Jun 2 12:32:32 UTC 2025


Add new files hex.[ch]pp and put all code for hex encoding and decoding there. Adds tests. Removes some code duplication.
You can view, comment on, or merge this pull request online at:

  https://github.com/osm2pgsql-dev/osm2pgsql/pull/2339

-- Commit Summary --

  * Consolidate hex encoding functions into their own file
  * Move hex decoding functions into new hex.hpp/cpp

-- File Changes --

    M src/CMakeLists.txt (1)
    M src/db-copy-mgr.hpp (10)
    M src/gen/canvas.cpp (17)
    M src/gen/canvas.hpp (2)
    M src/gen/gen-rivers.cpp (3)
    M src/gen/gen-tile-builtup.cpp (7)
    M src/gen/gen-tile-raster.cpp (5)
    A src/hex.cpp (78)
    A src/hex.hpp (47)
    M src/locator.cpp (3)
    M src/wkb.cpp (39)
    M src/wkb.hpp (12)
    M tests/CMakeLists.txt (1)
    A tests/test-hex.cpp (86)
    M tests/test-wkb.cpp (43)

-- Patch Links --

https://github.com/osm2pgsql-dev/osm2pgsql/pull/2339.patch
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2339.diff

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

Message ID: <osm2pgsql-dev/osm2pgsql/pull/2339 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20250602/e6666fa4/attachment.htm>


More information about the Tile-serving mailing list