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

Where do I get geographic coordinates for OSM building Corners

0

I am very new to OSM. I am working on a computer vision project to segment buildings using Aerial images. I am looking for data that has the geographic coordinates of building corners. I cam e across JOSM to label building, but not sure how to extract the data. I'd be glad if someone could point me to the right direction to get the data.

asked 22 Feb '18, 19:08

sam1107's gravatar image

sam1107
11112
accept rate: 0%


One Answer:

1

Read https://wiki.openstreetmap.org/wiki/Elements and https://wiki.openstreetmap.org/wiki/Key:building

If a (closed) way is tagged as building, then the way's nodes are the building corners. Each node has coordinates.

If a relation is tagged as building it is more complicated - see https://wiki.openstreetmap.org/wiki/Relation:multipolygon , but 99% of all buildings are simply closed ways, so I think for the start you can ignore relations.

And for really getting filtered data https://wiki.openstreetmap.org/wiki/Overpass_turbo is your friend (use its wizard for the start).

answered 22 Feb '18, 19:41

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554
accept rate: 18%

edited 22 Feb '18, 19:43

Source code available on GitHub .