[Tile-serving] [osm2pgsql-dev/osm2pgsql] Allow a limit to be set on expiry of line segments (PR #2185)

Tom Hughes notifications at github.com
Sat May 18 11:52:27 UTC 2024


Accidentally or deliberately moving a node a long way creates a long line segment which can expire large numbers of tiles causing disruption to the rendering process as osm2pgsql either runs out of memory or generates a huge list of tiles to expire.

Limiting expiry of long line segments prevents that and also helps reduce disruption of the resulting rendered maps with long lines that are almost certainly incorrect.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Allow a limit to be set on expiry of line segments

-- File Changes --

    M man/osm2pgsql.1 (3)
    M man/osm2pgsql.md (3)
    M src/command-line-parser.cpp (6)
    M src/expire-config.hpp (5)
    M src/expire-tiles.cpp (5)
    M src/flex-lua-table.cpp (9)
    M src/options.hpp (3)
    M src/output-flex.cpp (1)
    M src/output-pgsql.cpp (1)
    M tests/test-expire-from-geometry.cpp (31)

-- Patch Links --

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

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

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


More information about the Tile-serving mailing list