You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking for an efficient (as possible) way to find ways that contain a given node. I started by just using a SimpleHandler to walk all of the pbf and make a cache that maps nodes to ways, but can https://github.com/osmcode/pyosmium/blob/master/examples/use_nodecache.py be used to make this more efficient?
The text was updated successfully, but these errors were encountered:
NodeLocationsForWays is the reverse of what you need. Skimming through the libosmium code I found ObjectRelations which, as far as I understand, may create the node to way index.
This needs indeed the osmium::index::MultiMap because a node may be in multiple ways. That class is not yet exposed to pyosmium. It would be interesting to have though together with the ObjectRelations handler.
I'm looking for an efficient (as possible) way to find
way
s that contain a givennode
. I started by just using a SimpleHandler to walk all of the pbf and make a cache that maps nodes to ways, but can https://github.com/osmcode/pyosmium/blob/master/examples/use_nodecache.py be used to make this more efficient?The text was updated successfully, but these errors were encountered: