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

Dear community,

Could you please explain how it would be possible to extract and download the orange boundary as a shapefile from the following site? https://www.openstreetmap.org/relation/271888#map=12/48.7809/9.2247

Thank you!

asked 27 Jun '19, 13:53

Neico's gravatar image

Neico
16113
accept rate: 0%


OSM does not offer conversion of data into other formats, in only offers the data in OSM's own data format.

The "Overpass turbo" link you have been given in the other answer (http://overpass-turbo.eu/s/KiN) loads the OSM data but because it is not in the viewport, you don't immediately see it - there's a magnifying glass icon on the map that you can click to zoom to the area where the data is. Then go to "Export" and "Export as GeoJSON" and then use ogr2ogr, QGIS or other GIS software to convert GeoJSON to shape.

Another way to get what you want is to download relation 271888 in the JOSM editor (check "download relation members" box), then save as GeoJSON, then use ogr2ogr, QGIS or other GIS software to convert GeoJSON to shape.

permanent link

answered 27 Jun '19, 14:32

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

edited 27 Jun '19, 14:38

Easiest way I can think of is to download that relation in JOSM, CTRL+SHIFT+O ( download object) insert your id and choose relation. After that you can save it as a geojson and from there you can convert it to shp with Qgis or anything else

permanent link

answered 28 Jun '19, 14:47

Vincze's gravatar image

Vincze
15113
accept rate: 0%

You could use this website: https://wambachers-osm.website/boundaries/ Unfortunately this only works for administrative boundaries.

You could use a website like https://mygeodata.cloud/converter/osm-to-shp (I just found this after a search), for data that you downloaded via Overpass (as raw OSM data).

I hope this is the query you need in Overpass: http://overpass-turbo.eu/s/KiN

permanent link

answered 27 Jun '19, 13:56

escada's gravatar image

escada
19.0k16166302
accept rate: 21%

edited 27 Jun '19, 14:19

Thank you. But how can I specify for the exact file? I understand it has the ID 271888. When I use the tree on the left I cannot seem to find it.

(27 Jun '19, 14:03) Neico

oops, you are not looking for an administrative boundary, but a boundary of another type. that is not possible with this tool.

(27 Jun '19, 14:09) escada

exactly. So I would like to know how the orange boundary from the link above can be extracted. I suppose this should be somehow possible?

(27 Jun '19, 14:12) Neico

But where exactly can I download the orange boundaries as an OSM file? (sorry I'm new to this whole field)

(27 Jun '19, 14:24) Neico

Thank you for the link. But It only pulls up London and when running your code nothing happens. Or am I supposed to do something different?

(27 Jun '19, 14:30) Neico

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:

×87
×83

question asked: 27 Jun '19, 13:53

question was seen: 6,518 times

last updated: 28 Jun '19, 14:47

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