Pyosmium Filter Buffer Full #200
Replies: 1 comment
-
The problem is with the lines with Another hint: don't write a single handler that you call three times with different |
Beta Was this translation helpful? Give feedback.
-
The problem is with the lines with Another hint: don't write a single handler that you call three times with different |
Beta Was this translation helpful? Give feedback.
-
Hello everybody,
During my master project, we are working with OSM datasets and were looking for a new osm-filter to filter out nodes, ways etc. which we need for our work later on.
Here, we have now decided to use the pyosmium filter, which works great up to a certain point.
My current problem is that after a certain time regardless of the file size and the number of points, the error occurs that he buffers are full:
Traceback (most recent call last):
File "C:/Users/derkg/OneDrive/Desktop/Ma_Sc_Projekt/osm-filter/osmfilter_test.py", line 130, in
print("Anzahl an Knotenpunkten: " + str(h.num_nodes))
File "C:/Users/derkg/OneDrive/Desktop/Ma_Sc_Projekt/osm-filter/osmfilter_test.py", line 73, in way
if self.run == 1 and r.tags.get('route') == 'power':
RuntimeError: Osmium buffer is full
Please find the code attached.
osmfilter_test.zip
Many thanks in advance!
Best regards,
Derk
Beta Was this translation helpful? Give feedback.
All reactions