summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2018-05-16 16:35:29 +0200
committerJonas Smedegaard <dr@jones.dk>2018-05-16 16:35:29 +0200
commit1084ecf65c5bfcb195cf29e123bf1c33e938bad9 (patch)
tree0ae7967002c72b3cbd9a9d60fcfa635119d464f2 /bin
parent368e22c44c98a9c6866ff24aaf62a6d4d2c862d5 (diff)
Add targets to fetch and transform bydele.json.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/get-kk.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/get-kk.sh b/bin/get-kk.sh
new file mode 100755
index 0000000..1d50f10
--- /dev/null
+++ b/bin/get-kk.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -eu
+
+BINDIR="$(dirname "$0")"
+BASEPATH="$BINDIR/.."
+DATADIR="$BASEPATH/vendor/kk"
+
+mkdir -p "$DATADIR"
+
+wget -O "$DATADIR/bydele.geojson" 'http://wfs-kbhkort.kk.dk/k101/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=k101:bydel&outputFormat=json&SRSNAME=EPSG:4326'