[Tile-serving] [osm2pgsql-dev/osm2pgsql] Use more constants (PR #2462)

Jochen Topf notifications at github.com
Tue Apr 7 12:58:04 UTC 2026


Use named constants in more places instead of magic numbers.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * New constants: SECONDS_IN_MINUTE and MINUTES_IN_HOUR
  * Use constants instead of magic numbers in WKB encoding
  * Use constant ZOOM_MAX
  * Use uppercase for constant
  * Avoid warnings for use of constants in tile code

-- File Changes --

    M src/command-line-parser.cpp (10)
    M src/middle-ram.cpp (16)
    M src/tile.cpp (7)
    M src/util.cpp (19)
    M src/wkb.cpp (29)

-- Patch Links --

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

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


More information about the Tile-serving mailing list