Skip to content

Commit

Permalink
Only look at members that are ways when parsing buildings
Browse files Browse the repository at this point in the history
  • Loading branch information
mmiller-max authored and captchanjack committed Jul 24, 2023
1 parent fe9ddb3 commit c5a0b8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "LightOSM"
uuid = "d1922b25-af4e-4ba3-84af-fe9bea896051"
authors = ["Jack Chan <[email protected]>"]
version = "0.2.11"
version = "0.2.12"

[deps]
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
Expand Down
3 changes: 2 additions & 1 deletion src/buildings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ function parse_osm_buildings_dict(osm_buildings_dict::AbstractDict)::Dict{Intege
members = relation["members"]

polygons = Vector{Polygon{T}}()
for member in members
for member in members
member["type"] != "way" && continue
way_id = member["ref"]
way = ways[way_id]

Expand Down

0 comments on commit c5a0b8f

Please sign in to comment.