[Tile-serving] [osm2pgsql-dev/osm2pgsql] Linking between nodes and ways (Discussion #2455)

Jochen Topf notifications at github.com
Thu Apr 16 19:52:26 UTC 2026


re 1: Not sure why this doesn't work. From a quick look at the code is should work. Try not setting table_columns['special_nodes_on_highways']` at all, maybe that works?

re 2: Yes, that's tricky, because you don't know in which segment a node will be. Just don't segmentize them. That shouldn't be a huge problem. Segmentizing is for making rendering a bit faster, but I doubt whether it makes a difference here.

re 3: Usually when a row is not written to a table it is due to a `NOT NULL` constraint. With debug logging enabled you'll get a message in that case in the osm2pgsql output (`Inserted N rows into table 'X' (M not inserted due to NOT NULL constraints`). Try removing the `not_null = true` and see what happens. Also the `insert` function can report errors, see [the manual](https://osm2pgsql.org/doc/manual.html#handling-of-null-in-insert-function) for details.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/discussions/2455#discussioncomment-16592950
You are receiving this because you are subscribed to this thread.

Message ID: <osm2pgsql-dev/osm2pgsql/repo-discussions/2455/comments/16592950 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20260416/83d56f1a/attachment.htm>


More information about the Tile-serving mailing list