Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buildings_from_file KeyError: key "relation" not found #75

Open
agerlach opened this issue Jul 25, 2022 · 0 comments
Open

buildings_from_file KeyError: key "relation" not found #75

agerlach opened this issue Jul 25, 2022 · 0 comments

Comments

@agerlach
Copy link

I've noticed that for some geographical regions there exists building data without relation data in the downloaded *.osm file.

For reference see https://www.openstreetmap.org/search?query=greenville%20ohio#map=18/40.10042/-84.62916

using LightOSM

download_osm_buildings(:place_name; 
   place_name = "greenville, ohio",    
   metadata = true,
   download_format = :osm,
   save_to_file_location = "buildings.osm")

buildings = buildings_from_file("buildings.osm");
ERROR: KeyError: key "relation" not found
Stacktrace:
 [1] getindex
   @ ./dict.jl:481 [inlined]
 [2] parse_osm_buildings_dict(osm_buildings_dict::Dict{String, Any})
   @ LightOSM ~/.julia/dev/LightOSM/src/buildings.jl:204
 [3] buildings_from_object
   @ ~/.julia/dev/LightOSM/src/buildings.jl:260 [inlined]
 [4] buildings_from_file(file_path::String)
   @ LightOSM ~/.julia/dev/LightOSM/src/buildings.jl:294
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant