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
Describe the bug
Extracting an initialized country-level OSM object (output of OSM()) causes kernel to die with the message, "The kernel appears to have died. It will restart automatically", when I attempt to extract features from it (e.g., osm.get_boundaries()', osm.get_pois()`).
The extraction works if I extract from an initialized city-level OSM object. But when I try to extract the country-level OSM object using a bbox of the city level, the kernel still dies.
To Reproduce
Steps to reproduce the behavior: from pyrosm import get_data from pyrosm.pyrosm import OSM pbf_dir="/home/.../PlanetOSM/ pbf_name="czech_republic fp=get_data(pbf_name,directory=pbf_dir) osm=OSM(fp) #successful so far at this point, but kernel dies after executing any of the commands below boundaries = osm.get_boundaries() pois= osm.get_pois(custom_filter={'amenity': True, "shop": True})
If we use pbf_name="Prag" (city-level), the above commands are successful.
But if we use pbf_name=czech_republic, and a bbox OSM(fp,bbox=[min x, min y, max x, max y]), representing the Prag total boundaries, the get_boundaries() and get_pois() commands fail.`
Expected behavior
I expect the extraction of boundaries and pois to be successful even for the country-level pbf files. (I got a 16GB RAM, which I think should be fine for the job.
Moreso, when I use the bbox (equivalent to the city), I should be able to extract those features since the data is smaller (and I was previously successful with working on the city-level pbf).
Environment:
OS: Lubuntu 21.10
Python package source: conda-forge
Versions of Python (3.10.6), Pyrosm (0.6.1)
The text was updated successfully, but these errors were encountered:
Describe the bug
Extracting an initialized country-level OSM object (output of
OSM()
) causes kernel to die with the message, "The kernel appears to have died. It will restart automatically", when I attempt to extract features from it (e.g.,osm.get_boundaries()',
osm.get_pois()`).The extraction works if I extract from an initialized city-level OSM object. But when I try to extract the country-level OSM object using a bbox of the city level, the kernel still dies.
To Reproduce
Steps to reproduce the behavior:
from pyrosm import get_data
from pyrosm.pyrosm import OSM
pbf_dir="/home/.../PlanetOSM/
pbf_name="czech_republic
fp=get_data(pbf_name,directory=pbf_dir)
osm=OSM(fp)
#successful so far at this point, but kernel dies after executing any of the commands below
boundaries = osm.get_boundaries()
pois= osm.get_pois(custom_filter={'amenity': True, "shop": True})
If we use
pbf_name="Prag"
(city-level), the above commands are successful.But if we use
pbf_name=czech_republic,
and a bboxOSM(fp,bbox=[min x, min y, max x, max y])
, representing the Prag total boundaries, theget_boundaries()
andget_pois()
commands fail.`Expected behavior
I expect the extraction of boundaries and pois to be successful even for the country-level pbf files. (I got a 16GB RAM, which I think should be fine for the job.
Moreso, when I use the bbox (equivalent to the city), I should be able to extract those features since the data is smaller (and I was previously successful with working on the city-level pbf).
Environment:
The text was updated successfully, but these errors were encountered: