[Tile-serving] [openstreetmap/osm2pgsql] Flex output: split ways at endpoints of other ways and create geometries for each part (#1459)

routingincircles notifications at github.com
Thu Apr 22 10:22:19 UTC 2021


I'm trying to use osm2pgsql to create a network suitable for routing, like osm2pgrouting does. To that end, I first collect the end nodes of ways in stage 1. Then in stage 2 I split each way at interior nodes (i.e. non-start-or-end-nodes) that are start or end nodes of other ways. 

I observed that in the Lua callback function `osm2pgsql.process_way()` I can call add_row() more than once, and this way feed each part of the way to the database as a separate row. What I'm missing though is a possibility to create the geometry only for the respective part. Currently I can only add an attribute  `geom    = { create = 'line' }` to the row which would generate the geometry of the entire unsplitted way.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/1459
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20210422/1f10d6aa/attachment.htm>


More information about the Tile-serving mailing list