Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArrayIndexOutOfBoundsException while using customized OSM.pbf #407

Closed
jlmalk opened this issue Apr 9, 2024 · 1 comment
Closed

ArrayIndexOutOfBoundsException while using customized OSM.pbf #407

jlmalk opened this issue Apr 9, 2024 · 1 comment

Comments

@jlmalk
Copy link

jlmalk commented Apr 9, 2024

Describe the bug
I am trying to run r5py on a customized OSM.pbf, which gives me the following Error while setting up the network [r5py.TransportNetwork()]:

in init
transport_network.streetLayer.loadFromOsm(osm_file)
java.lang.java.lang.ArrayIndexOutOfBoundsException: java.lang.ArrayIndexOutOfBoundsException: Attempt to seek beyond end of edge store

To Reproduce

  1. Use the pyosmium-lib to filter a given OSM.pbf down to nodes/ways/relations with Key='highway' and Value in ["path", "footpath"].
  2. Try to use it to build a network by using the r5py.TransportNetwork() function

Expected behavior
There should be no Error...

Environment:

  • OS: Win10
  • Python package source: pip
@wklumpen
Copy link
Contributor

wklumpen commented May 1, 2024

Hi there!

It's difficult to work through errors with OSM data as they tend to crop up in different ways.

I suspect that filtering down the OSM data to highways is creating problems when R5 tries to build a network. Have you tried using a complete OSM extract that covers the boundaries of your study area?

BBBike can help you extract that data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants