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

How can I download a subset of the data for a large area?

1

I want to download a big area as an .osm file using filters. For example, I want to download France without roads because I don't need them, and I want a smaller file. Is it possible?

asked 30 Oct '11, 10:28

Corentin's gravatar image

Corentin
31223
accept rate: 0%

edited 30 Oct '11, 13:24

Jonathan%20Bennett's gravatar image

Jonathan Ben...
8.3k1785108


One Answer:

1

You probably want to use somthing like XAPI or Overpass. However for big conuntry extracts you have GeoFabrik and CloudMade that uses the PBF binary format that is smaller then crompressed XML files.

answered 30 Oct '11, 11:42

Gnonthgol's gravatar image

Gnonthgol ♦
13.8k16103198
accept rate: 16%

1

... and once you've got data from e.g. GeoFabrik you can then use something like https://wiki.openstreetmap.org/wiki/Osmfilter to either extract what you want or delete what you don't want.

France is quite large, so maybe a smaller area might be what you're looking for - http://download.geofabrik.de/osm/europe/france/ ?

(31 Oct '11, 13:29) SomeoneElse ♦

Source code available on GitHub .