Created
August 10, 2015 10:02
-
-
Save stepankuzmin/7404e852c9a48c35d3dd to your computer and use it in GitHub Desktop.
Update OSM database
This file contains hidden or 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 | |
| red=`tput setaf 1` | |
| green=`tput setaf 2` | |
| reset=`tput sgr0` | |
| for subject in 'AMU' 'CHU' 'KAM' 'KHA' 'MAG' 'PRI' 'SA' 'SAK' 'YEV' | |
| do | |
| filename="RU-$subject.osm.pbf" | |
| url="http://be.gis-lab.info/data/osm_dump/dump/latest/$filename" | |
| echo "${green}[*] Downloading $url${reset}" | |
| curl -O $url | |
| echo "${green}[*] Importing $filename${reset}" | |
| ~/venv/bin/imposm -d dfo -m imposm-mapping.py --cache-dir=cache --read --write --merge-cache --optimize --deploy-production-tables $filename | |
| done | |
| echo "${green}[*] Done${reset}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment