I want to download OSM data in *.shp format for specified region with specified tag (in example highway).

There are any web services for doing that or I should write a script?

asked 20 Nov '15, 04:45

Nojarathma's gravatar image

Nojarathma
26114
accept rate: 0%

edited 20 Nov '15, 05:22

aseerel4c26's gravatar image

aseerel4c26 ♦
31.6k15234541


There are some web sites where you can download ready-made shape files (e.g. extract.bbbike.org, download.geofabrik.de) but you cannot choose which tags you want. If you want to create your own shape file, download the OSM data in .osm.pbf format and then use e.g. osm2pgsql to import to PostGIS, then pgsql2shp to create shape file, or use a modern version of ogr2ogr to convert from pbf to shp directly. More: http://wiki.openstreetmap.org/wiki/Shapefiles

permanent link

answered 20 Nov '15, 06:49

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
66.2k806121025
accept rate: 24%

2

If the "region" isn't too big, using Overpass-Turbo might be easier. For example, download all highway ways: http://overpass-turbo.eu/s/cPW . Then use QGIS for conversion to SHP.

(20 Nov '15, 07:18) joost schouppe
Your answer
toggle preview

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:

×262
×233
×135
×85
×63

question asked: 20 Nov '15, 04:45

question was seen: 3,291 times

last updated: 20 Nov '15, 07:18

powered by OSQA