Last active
August 29, 2015 14:06
-
-
Save pataquets/f8cf96d93d99e0fd7354 to your computer and use it in GitHub Desktop.
BASH script to generate Navit-compatible map of Spain from OSM data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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