-
Notifications
You must be signed in to change notification settings - Fork 0
/
prepare_datasets.sh
executable file
·27 lines (21 loc) · 1.27 KB
/
prepare_datasets.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
set -e
PROGPATH=$(dirname "$0")
source $PROGPATH/env.sh
mkdir -p $IMPORT_DATA_DIR
# water
rm $IMPORT_DATA_DIR/water-polygons-split-3857.zip $IMPORT_DATA_DIR/simplified-water-polygons-split-3857.zip || true
wget -P $IMPORT_DATA_DIR https://osmdata.openstreetmap.de/download/water-polygons-split-3857.zip
unzip -oj $IMPORT_DATA_DIR/water-polygons-split-3857.zip -d $IMPORT_DATA_DIR
wget -P $IMPORT_DATA_DIR https://osmdata.openstreetmap.de/download/simplified-water-polygons-split-3857.zip
unzip -oj $IMPORT_DATA_DIR/simplified-water-polygons-split-3857.zip -d $IMPORT_DATA_DIR
# natural earth
#wget -P $IMPORT_DATA_DIR http://naciscdn.org/naturalearth/packages/natural_earth_vector.sqlite.zip
#unzip -oj $IMPORT_DATA_DIR/natural_earth_vector.sqlite.zip -d $IMPORT_DATA_DIR
# lake centerlines
#wget -P $IMPORT_DATA_DIR https://github.com/lukasmartinelli/osm-lakelines/releases/download/v0.9/lake_centerline.geojson
# borders
#wget -O $IMPORT_DIR/osmborder_lines.csv https://github.com/openmaptiles/import-osmborder/releases/download/v0.1/osmborder_lines.csv
wget -O $IMPORT_DIR/osmborder_lines.csv.gz https://github.com/openmaptiles/import-osmborder/releases/download/v0.4/osmborder_lines.csv.gz
rm $IMPORT_DIR/osmborder_lines.csv || true
gunzip $IMPORT_DIR/osmborder_lines.csv.gz