summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Koch <markus@notsyncing.net>2021-03-22 18:01:32 +0100
committerMarkus Koch <markus@notsyncing.net>2021-03-22 18:01:32 +0100
commit7a52d5bb59432aa355e320e9437fd61efafe51e6 (patch)
treeb4c4c1535afb21d53db885eb17126a71ff6fb1b1
parentb888dbe3f4d01ee01ebe5517814f29bc5e770671 (diff)
downloadlifomapserver-7a52d5bb59432aa355e320e9437fd61efafe51e6.tar.gz
lifomapserver-7a52d5bb59432aa355e320e9437fd61efafe51e6.tar.bz2
lifomapserver-7a52d5bb59432aa355e320e9437fd61efafe51e6.zip
scripts: Add train lines and bodies of water to update_all.sh
-rwxr-xr-xscripts/geojson/maps/update_all.sh15
1 files changed, 12 insertions, 3 deletions
diff --git a/scripts/geojson/maps/update_all.sh b/scripts/geojson/maps/update_all.sh
index 22b9eee..e25d843 100755
--- a/scripts/geojson/maps/update_all.sh
+++ b/scripts/geojson/maps/update_all.sh
@@ -1,10 +1,19 @@
#!/bin/bash
function fetch() {
- "./fetch_$1.sh" | json_reformat -m > "$1.json.tmp"
- rm -f "$1.json"
- mv "$1.json.tmp" "$1.json"
+ if [[ "$3" != "" ]]; then
+ fn="$3"
+ else
+ fn="$1"
+ fi
+ "./fetch_$1.sh" "$2" | json_reformat -m > "$fn.json.tmp"
+ rm -f "$fn.json"
+ mv "$fn.json.tmp" "$fn.json"
}
fetch streets
fetch city_outlines
+fetch trainlines "Train Lines"
+fetch trainlines "Access Paths" trainlines_access
+fetch bodiesofwater "Rivers" rivers
+fetch bodiesofwater "Oceans, Seas, and Lakes" oceans