Skip to content

Instantly share code, notes, and snippets.

@pataquets
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pataquets/f8cf96d93d99e0fd7354 to your computer and use it in GitHub Desktop.
Save pataquets/f8cf96d93d99e0fd7354 to your computer and use it in GitHub Desktop.
BASH script to generate Navit-compatible map of Spain from OSM data
#!/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 -\
# | osmosis --read-pbf file=-\
# --bounding-box top=49.5138 left=10.9351 bottom=49.3866 right=11.201
# --write-xml file=-\
# | maptool navitmap_001.bin
#wget -O navitmap.bin.Spain http://maps.navit-project.org/api/map/?bbox=-11.0302734375,34.87060546875,4.614257812500003,44.40673828125
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment