[Tile-serving] [osm2pgsql-dev/osm2pgsql] Add grouped-linemerge generalization (PR #2482)
Jochen Topf
notifications at github.com
Tue Jun 23 17:05:08 UTC 2026
joto left a comment (osm2pgsql-dev/osm2pgsql#2482)
I have run some tests adapting your code for merging boundaries. This was still based on the version with the C++ code but I had to work around a limitation in that. Having this completly in Lua code is opening up some more possibilities.
My tests are based on [this code](https://github.com/osm2pgsql-dev/osm2pgsql-themepark/blob/master/themes/shortbread_v1_gen/topics/boundaries.lua) which re-computes all merged boundaries for the whole planet whenever there is a change. I have successfully used your code to do the same thing incrementally! There are other use cases, not just streets or boundaries. I am also thinking about waterways, railway lines, etc.
The question now is how to make this best re-usable, in a simple but flexible way. With the boundaries I need to get the minimal admin_level from all relations using a way. Currently I am updating this after the merging, but it would be better if we can do this on the fly. Needs some more thinking and exerimenting.
--
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2482#issuecomment-4781596663
You are receiving this because you are subscribed to this thread.
Message ID: <osm2pgsql-dev/osm2pgsql/pull/2482/c4781596663 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20260623/41de3266/attachment.htm>
More information about the Tile-serving
mailing list