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/[email protected]>
_______________________________________________
Tile-serving mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/tile-serving