This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Downloaded OSM missing building attributes

0

I am trying to download OSM for chicago area. From website, I can see that most buildings have building:levels or height attributes.

However, none of the downloads from geofabrik contain these attributes. Thus my question is how can I download files with specified attributes.

asked 21 Jul '22, 04:32

hlhl1993's gravatar image

hlhl1993
11112
accept rate: 0%

edited 21 Jul '22, 07:34

1

When you say "From website, I can see that most buildings have building:levels or height attributes" do you mean you have queried the OSM data directly to see that the area does actually have levels or have you seen a claim in the wiki?

(21 Jul '22, 07:30) InsertUser

On OSM I can see that most buildings have building:levels attribute. Even on small files downloaded from overpass I can see the attributes. But the file from geofabrik does not have these attributes.

(21 Jul '22, 07:34) hlhl1993

One Answer:

2

The .osm.pbf files you download from Geofabrik have all the attributes present in OpenStreetMap - nothing is removed. Only the free shapefiles that Geofabrik provides have a limited set of attributes. Use the .osm.pbf file if you want to access all the tags.

answered 21 Jul '22, 09:33

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Source code available on GitHub .