[Tile-serving] [openstreetmap/osm2pgsql] How would you apply "osm-legal-default-speeds" with osm2pgsql (Discussion #1765)

Paul Norman notifications at github.com
Sat Sep 17 05:27:17 UTC 2022


The library isn't of any use since it's in Kotlin. You might be able to use some methods of calling Java from Lua, but I'm skeptical that's a useful route.

You could process the json from lua, but a more useful route would be to process the json file into a lua file  with object definitions you can include from your transforms. The get_bbox function in the flex transforms would let you do countries, but you'd have to handle your lookup. As mentioned in the processing thread, we could get the ability to do a lookup similar to imposm's geojson matching at some point.

None of this really helps, as to use the json file you'd need to turn all of the filters into lua string matching.

I suppose it's all possible in PostgreSQL too, but that's always been the case.

Fortunately, in my experience mappers are pretty good about getting maxspeed tagged on all roads where it matters, so the need for a library like the one linked will get better over time as maxspeed data gets filled in more.

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

Message ID: <openstreetmap/osm2pgsql/repo-discussions/1765/comments/3666975 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220916/d0932f37/attachment.htm>


More information about the Tile-serving mailing list