OpenStreetMap, Osmium, List, Pandas DataFrame, Python

152 views Asked by At

I have a problem, which I do not understand. I want to read some nodes out of a *.osm file with osmium in Python.

https://docs.osmcode.org/pyosmium/latest/intro.html

The example shows that I can append a list with all node information, that I want to save. I understand, that I can not store the node object, because it just exists in the scope, but why can I not store the same data, which I store in the list, into a pandas dataframe?

Then I got the message "RuntimeError: Node callback keeps reference to OSM object. This is not allowed.". Also shown in the examples?

What is different in that case? How can I speed up the reading process.

Greats.

0

There are 0 answers