Skip to content

Instantly share code, notes, and snippets.

@pataquets
pataquets / osm-spain.sh
Last active Aug 29, 2015
BASH script to generate Navit-compatible map of Spain from OSM data
View osm-spain.sh
#!/bin/bash
# BASH script to generate Navit-compatible map of Spain from OSM data
# https://gist.github.com/pataquets/f8cf96d93d99e0fd7354#file-osm-spain-sh
rm -i navitmap.bin navitmap_001.bin spain.osm.bz2 spain.osm.pbf
#wget -c http://download.geofabrik.de/osm/europe/spain.osm.bz2 && bzcat spain.osm.bz2 | maptool navitmap.bin
#wget http://download.geofabrik.de/osm/europe/spain.osm.bz2 -O - | bunzip2 | maptool navitmap_001.bin
wget http://download.geofabrik.de/osm/europe/spain.osm.pbf -O - | maptool -P navitmap_001.bin
#wget http://download.geofabrik.de/osm/europe/spain.osm.pbf -O -\