2
0
Fork 0

osm-garmin: various

This commit is contained in:
Ducky 2023-10-02 16:40:25 +01:00
parent 8a2cafd2ee
commit bcf7ff90d8
5 changed files with 75 additions and 39 deletions

View file

@ -83,16 +83,8 @@ function cleanup() {
rm -f "$build_dir/*"
}
function exec_mkgmap() {
java -jar /opt/mkgmap/mkgmap.jar $@
}
function exec_splitter() {
java -jar /opt/splitter/splitter.jar $@
}
function update_bounds() {
function download_bounds() {
function update_bound_item() {
type="$1"
bounds_url_prefix="https://www.thkukuk.de/osm/data"
@ -101,8 +93,8 @@ function update_bounds() {
rm -f "$bounds_dir/$type.zip"
}
download_bounds "bounds"
#download_bounds "sea"
update_bound_item "bounds"
update_bound_item "sea"
}
function update_osm_map() {
@ -149,7 +141,7 @@ if [[ $OSMGARMIN_SKIP_UPDATE_MAPS != "true" ]]; then
[[ $is_updates == "false" ]] && is_updates="true"
else
echo "⚠️ No updates to \"$region\""
echo "⚠️ No updates for \"$region\""
fi
else
echo "⚠️ Region \"$region\" does not exist"