Closed kavir1698 closed 3 years ago
What file have you downloaded? Note that you need XML .osm file and on this web page I only see files in the binary .pbf format.
I downloaded a .pbf
file and then converted it to .osm
using the osmconvert
tool (provided by OpenStreeMap org).
OpenStreetMapX relies on map bounds being defined in the file. Somehow in your files those bounds are missing. Try adding them manually.
osmconvert zurich.osm.pbf --drop-author --drop-version -b=8.40,47.25,8.70,47.50 -o=zurichF.osm
Note that I did not manage to replicate your error - I was just observing an empty MapData
object.
Let me know if this works for you.
Thanks for your help. Adding the bounds solved the issue in both cases. I just don't see where you found those exact numbers for bounds.
I just don't see where you found those exact numbers for bounds
I guessed. These are just any numbers that seemed to be more or less OK - you need to pick up more exact numbers.
I have downloaded a city osm from here and I tried reading it.
This gives me an empty
MapData
:And this gives me an error:
I am using OpenStreetMapX v0.2.3 and Julia 1.5.2