List out of index when reading road networks
See original GitHub issueGood day!
I have been using pyrosm for more than a year and have been using it to extract tags from pbf files automatically. However, I am getting this error which I am not sure what might cause this issue. I have maintained my own pbfs. I hope you can help me with it.
(the pbf are some private pbfs so I cannot share them)
<ipython-input-4-46c1b19db87f> in <module>
2 osm = OSM(os.path.join(pbf_path,"private.osm.pbf"))
3 data = osm.get_network(
----> 4 network_type="all", extra_attributes=None
5 )
/opt/conda/lib/python3.7/site-packages/pyrosm/pyrosm.py in get_network(self, network_type, extra_attributes, nodes)
209 network_filter,
210 self.bounding_box,
--> 211 slice_to_segments=nodes,
212 )
213
/opt/conda/lib/python3.7/site-packages/pyrosm/networks.py in get_network_data(node_coordinates, way_records, tags_as_columns, network_filter, bounding_box, slice_to_segments)
44 bounding_box,
45 parse_network=True,
---> 46 calculate_seg_lengths=slice_to_segments,
47 )
48
/opt/conda/lib/python3.7/site-packages/pyrosm/frames.pyx in pyrosm.frames.prepare_geodataframe()
/opt/conda/lib/python3.7/site-packages/pyrosm/frames.pyx in pyrosm.frames.prepare_geodataframe()
/opt/conda/lib/python3.7/site-packages/pyrosm/frames.pyx in pyrosm.frames.prepare_way_gdf()
/opt/conda/lib/python3.7/site-packages/pyrosm/geometry.pyx in pyrosm.geometry.create_way_geometries()
/opt/conda/lib/python3.7/site-packages/pyrosm/geometry.pyx in pyrosm.geometry._create_way_geometries()
IndexError: list index out of range
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (7 by maintainers)
Top Results From Across the Web
Issue with Inference in Bayesian Networks.ipynb: "IndexError ...
I get a IndexError: list index out of range when running asia_model = reader.get_model() in the Inference in Bayesian Networks notebook.
Read more >python - "IndexError: list index out of range" when reading file
I'm opening a txt file that will be variable in length and I need to iterate over a user definable amount of lines...
Read more >Python indexerror: list index out of range Solution
The Problem: indexerror: list index out of range. This error message tells us that we're trying to access a value inside an array...
Read more >List Index Out of Range – Python Error Message Solved
In this article you'll see a few of the reasons that cause the list index out of range Python error. Besides knowing why...
Read more >Transportation Security Administration | Transportation ...
At TSA, employees make a difference. Read Our Stories. Customer Service. How can we help you? There are a few options ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

we revert back to our previous version of pbf. I have not got the update on the cause. But this is not a blocker on my end. Will update you the cause to see if pyrosm can catch it
let me look into what you suggested and report back. I will also think of a way to make this replicable so its easier to understand the problem.
With regards to your second question, i cloned the repo and