This tool uses the command line utility Make
to make it simple to download OpenStreetMap data via Mapzen's Metro Extracts.
Note: Because Mapzen is shutting down, this tool will only work until February 1st, 2018
Features:
- Supports all Metro Extract data formats
- Configurable geographic area See here for a great explanation on the different formats available through Metro Extracts.
- Clone this repository
$ git clone https://github.com/bfreeds/metro-extractor.git
$ cd metro-extractor
- Download the extract
# pass city and state as arguments
$ make CITY=new-york STATE=new-york coastline
# or pass parameters by environment variables if you are running a multiple commands
$ export CITY=new-york
$ export STATE=new-york
$ make coastline
The following make
commands are available:
make raw
- includes both : (warning -- is large)
make osm.pbf
make osm.xml
- includes both : (warning -- is large)
make osm2pgsql
- includes both : (warning -- is large)
make osm2pgsql.geojson
make osm2pgsql.shp
- includes both : (warning -- is large)
make imposm
- includes both : (warning -- is large)
make imposm.geojson
make imposm.shp
- includes both : (warning -- is large)
make coastline
- includes both :
make osm.water.coastline
make osm.land.coastline
- includes both :
You can run the combined make commands ($ make imposm
) or the standalone ($ make imposm.geojson
). The combined commands will download large files -- I would only use them if you have a specific reason to (experiment with different OSM file formatting).