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

Export USA’s all roads

0

I was wondering how can I export all the roads (car drivable ones) of USA from OSM? To export it with the website I need to specify some boundaries, but I need only USA's road (and obviously USA's border is not a rectangle). The same is when I try to export it from QGIS's using OpenLayers plugin and also with overpass-turbo. My final goal is to import it into POSTGIS or QGIS. I am sure this is something trivial, but I am new to OSM and can't figure it out.

Thanks!

asked 01 Apr '17, 07:38

Lianna94's gravatar image

Lianna94
11113
accept rate: 0%


2 Answers:

4

For such a large region you should download an extract and filter out the roads:

https://wiki.openstreetmap.org/wiki/Planet.osm#Regional_extract_sources

There are a variety of OSM specific tools that can do this filtering as they load data into a database:

https://wiki.openstreetmap.org/wiki/Databases_and_data_access_APIs

answered 01 Apr '17, 14:06

maxerickson's gravatar image

maxerickson
12.7k1083176
accept rate: 32%

... and see https://wiki.openstreetmap.org/wiki/Osmfilter for its features.

(03 Apr '17, 21:08) stephan75

3

Hi

You can download the Shape files from the following link and then extract only the roads.

http://download.geofabrik.de/north-america.html

answered 09 Apr '17, 07:06

mmahmud's gravatar image

mmahmud
63861125
accept rate: 3%

thanks mmahmud, but how can I merge them after? Or it doesn't make sense to merge them because of the size?

(25 Apr '17, 01:38) Lianna94

Sorry, merging with what? What is the ultimate goal here? And did the extraction work?

(25 Apr '17, 03:40) mmahmud

Source code available on GitHub .