NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

4
1

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's gravatar image

qiqiqi
71235
accept rate: 0%


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.

permanent link

answered 21 Apr '15, 15:40

SK53's gravatar image

SK53 ♦
28.1k48268433
accept rate: 22%

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?

permanent link

answered 29 Apr '15, 13:50

stephan75's gravatar image

stephan75
12.6k556210
accept rate: 6%

edited 05 Jul '17, 08:12

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273

Thank you very much, this really helps!

(11 May '15, 11:35) qiqiqi

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.

permanent link

answered 29 Apr '15, 15:21

yogi_ks's gravatar image

yogi_ks
2463512
accept rate: 0%

Here's an Overpass query that returns all buildings in the City of Melbourne:

area
  [place=municipality]
  [name="City of Melbourne"];

way(area)[building=yes];
out;
>;
out skel qt;

You can then download the result as GeoJSON from the "export" menu.

permanent link

answered 14 May '15, 10:47

Alex%20Morega's gravatar image

Alex Morega
161
accept rate: 0%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×107
×92
×37
×2

question asked: 20 Apr '15, 10:06

question was seen: 24,966 times

last updated: 05 Jul '17, 08:12

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum