Hi everyone, I want download the polygon data within the administrative boundary of city of Melbourne, or extract this area out of larger osm file. To download, I searched 'city of Melbourne' in openstreetmap, and it shows the administrative boundary of Melbourne clearly, but I didn't find a way to download the data only in this area. To extract, I tried to use osmosis to extract, there is osmosis example to extract the boundary out, but I also want all the polygons within the boundary. Besides, I don't know where can I get the .poly file. Can anyone help me with this? asked 20 Apr '15, 10:06 qiqiqi |
You can try the service of OSM user Wambacher to find and download the administrartive boundary of any region / city via https://wambachers-osm.website/boundaries/ Try to find your place via search funtion or tree structure. Then choose correct export format for your boundary. Success? answered 29 Apr '15, 13:50 stephan75 Frederik Ramm ♦ Thank you very much, this really helps!
(11 May '15, 11:35)
qiqiqi
|
Firstly you need to generate the .poly file. The easiest way is to download the City of Melbourne boundary in JOSM (probably a relation, in which case ensure you download all its members) and then save the downloaded data as a .poly file (option on File|Save... menu in JOSM). Secondly use an extract, say of the whole of Australia or Victoria and use osmosis to obtain the clipped Melbourne data. osmconvert also does this and is a little less temperamental than osmosis. answered 21 Apr '15, 15:40 SK53 ♦ |
Adding to what SK53 and stephen75 suggested. You can use http://polygons.openstreetmap.fr to generate the .poly file. But you'll need the relation id of your polygon(for Melbourne, its 2404870). Save the generated .poly file and use it with osmconvert and geofabrik's Australia extract to get the data of only the Melbourne city. Alternatively, you can directly get the Melbourne city data from Mapzen metro extracts. And MapIt Global provides the boundaries of areas covered by smaller city boundaries like Melbourne whose areas can be further used to get relation ids to get the poly files and then extract data from Melbourne using osmconvert. answered 29 Apr '15, 15:21 yogi_ks |
Here's an Overpass query that returns all buildings in the City of Melbourne:
You can then download the result as GeoJSON from the "export" menu. answered 14 May '15, 10:47 Alex Morega |