Source: Shapefiles for the city of Austin, TX were generated why the HOT Export online service, then converted to GeoJSON using Fiona.
Property | Description |
---|---|
entry count | 447820 |
building | building type (OSM Key:building) |
geometry | shape of a building (Note that OSM allows multipolygon structures) |
The building
property has 89 possible values, but we could limit our search to only a few types like house
and
appartments
. This provides us with 703 entries for appartments, and 4945 entries for houses.
$ jq '[ .features[] | select(.properties.building == "house")] |length' austin-tx_planet_osm_polygon_polygons.json
4945
$ jq '[ .features[] | select(.properties.building == "apartments")] |length' austin-tx_planet_osm_polygon_polygons.json
703
I am not sure how to programatically regenerate the data set.
Retrieve the dataset programmatically, convert it to geojson and extract the Sabina Appartments feature:
curl -sLO https://export.hotosm.org/downloads/8a430b3a-7b16-4c88-9b36-7da085b4d141/austin-tx_shp.zip
unzip austin-tx_shp.zip -d osm-austin
cd osm-austin
fio cat austin-tx_planet_osm_polygon_polygons.shp > austin-tx.geoson
grep -i "Harmon Avenue" austin-tx.geojson |grep -i 3400
Sabina Appartments:
{
"features":[
{
"geometry":{
"coordinates":[
[
[
-97.72233,
30.292986
],
[
-97.722355,
30.292949
],
[
-97.722332,
30.292937
],
[
-97.7224,
30.292837
],
[
-97.722405,
30.292839
],
[
-97.722428,
30.292805
],
[
-97.722418,
30.2928
],
[
-97.722439,
30.292769
],
[
-97.722429,
30.292763
],
[
-97.722468,
30.292705
],
[
-97.72248,
30.29271
],
[
-97.72253,
30.292637
],
[
-97.722516,
30.29263
],
[
-97.722533,
30.292604
],
[
-97.722497,
30.292587
],
[
-97.722652,
30.292352
],
[
-97.722691,
30.292372
],
[
-97.722707,
30.292348
],
[
-97.722698,
30.292343
],
[
-97.722732,
30.292293
],
[
-97.722739,
30.292297
],
[
-97.722757,
30.29227
],
[
-97.722741,
30.292254
],
[
-97.722835,
30.292188
],
[
-97.722861,
30.292213
],
[
-97.722854,
30.292218
],
[
-97.722936,
30.292297
],
[
-97.722942,
30.292293
],
[
-97.722967,
30.292317
],
[
-97.722961,
30.292322
],
[
-97.723012,
30.292372
],
[
-97.723021,
30.292366
],
[
-97.723045,
30.29239
],
[
-97.723039,
30.292394
],
[
-97.723101,
30.292457
],
[
-97.723105,
30.292454
],
[
-97.723205,
30.292555
],
[
-97.723199,
30.29256
],
[
-97.723208,
30.292569
],
[
-97.723214,
30.292564
],
[
-97.723223,
30.292573
],
[
-97.723218,
30.292577
],
[
-97.723252,
30.292611
],
[
-97.723258,
30.292607
],
[
-97.723289,
30.292638
],
[
-97.723282,
30.292643
],
[
-97.723318,
30.29268
],
[
-97.723321,
30.292678
],
[
-97.723352,
30.292709
],
[
-97.723275,
30.292766
],
[
-97.723293,
30.292777
],
[
-97.723234,
30.292874
],
[
-97.723245,
30.292879
],
[
-97.723228,
30.292905
],
[
-97.723218,
30.292899
],
[
-97.723197,
30.292932
],
[
-97.723208,
30.292937
],
[
-97.723191,
30.292963
],
[
-97.723181,
30.292958
],
[
-97.723162,
30.292988
],
[
-97.723172,
30.292993
],
[
-97.723155,
30.29302
],
[
-97.723144,
30.293015
],
[
-97.723125,
30.293047
],
[
-97.723134,
30.293051
],
[
-97.723118,
30.293077
],
[
-97.723106,
30.293072
],
[
-97.723085,
30.293107
],
[
-97.723094,
30.293111
],
[
-97.723077,
30.293139
],
[
-97.723066,
30.293134
],
[
-97.723026,
30.293198
],
[
-97.723034,
30.293203
],
[
-97.723015,
30.293233
],
[
-97.723011,
30.293231
],
[
-97.722978,
30.293283
],
[
-97.722992,
30.29329
],
[
-97.722872,
30.293479
],
[
-97.722848,
30.293467
],
[
-97.722784,
30.293571
],
[
-97.722789,
30.293574
],
[
-97.722724,
30.29368
],
[
-97.722172,
30.293408
],
[
-97.722074,
30.293364
],
[
-97.722154,
30.293244
],
[
-97.722162,
30.293248
],
[
-97.72221,
30.293173
],
[
-97.722203,
30.29317
],
[
-97.722237,
30.29311
],
[
-97.722248,
30.293116
],
[
-97.722272,
30.293081
],
[
-97.722256,
30.293073
],
[
-97.72228,
30.293039
],
[
-97.722291,
30.293044
],
[
-97.72233,
30.292986
]
],
[
[
-97.7229337,
30.2930026
],
[
-97.7231054,
30.2927802
],
[
-97.7228586,
30.2925486
],
[
-97.7226548,
30.2928821
],
[
-97.7229337,
30.2930026
]
],
[
[
-97.7228138,
30.2931975
],
[
-97.7225236,
30.2930502
],
[
-97.7223725,
30.2932719
],
[
-97.7226627,
30.2934193
],
[
-97.7228138,
30.2931975
]
]
],
"type":"Polygon"
},
"id":"809",
"properties":{
"access_roo":null,
"addr_house":"3400",
"addr_stree":"Harmon Avenue",
"building":"yes",
"building_m":null,
"name":"Sabina Apartments",
"osm_id":"7480556",
"osm_way_id":null,
"roof_mater":null
},
"type":"Feature"
}
]
}