-
Notifications
You must be signed in to change notification settings - Fork 2
/
ne2mbtiles
executable file
·36 lines (35 loc) · 1.84 KB
/
ne2mbtiles
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
28
29
30
31
32
33
34
35
36
#!/bin/bash
if [ ! -e /data/110m_physical/110m_physical.zip ]; then
mkdir /data/110m_physical
curl -L https://naciscdn.org/naturalearth/110m/physical/110m_physical.zip -o /data/110m_physical/110m_physical.zip
unzip -o /data/110m_physical/110m_physical.zip -d /data/110m_physical
fi
if [ ! -e /data/110m_cultural/110m_cultural.zip ]; then
mkdir /data/110m_cultural
curl -L https://naciscdn.org/naturalearth/110m/cultural/110m_cultural.zip -o /data/110m_cultural/110m_cultural.zip
unzip -o /data/110m_cultural/110m_cultural.zip -d /data/110m_cultural
fi
if [ ! -e /data/50m_physical/50m_physical.zip ]; then
mkdir /data/50m_physical
curl -L https://naciscdn.org/naturalearth/50m/physical/50m_physical.zip -o /data/50m_physical/50m_physical.zip
unzip -o /data/50m_physical/50m_physical.zip -d /data/50m_physical
fi
if [ ! -e /data/50m_cultural/50m_cultural.zip ]; then
mkdir /data/50m_cultural
curl -L https://naciscdn.org/naturalearth/50m/cultural/50m_cultural.zip -o /data/50m_cultural/50m_cultural.zip
unzip -o /data/50m_cultural/50m_cultural.zip -d /data/50m_cultural
fi
if [ ! -e /data/10m_physical/10m_physical.zip ]; then
mkdir /data/10m_physical
curl -L https://naciscdn.org/naturalearth/10m/physical/10m_physical.zip -o /data/10m_physical/10m_physical.zip
unzip -o /data/10m_physical/10m_physical.zip -d /data/10m_physical
fi
if [ ! -e /data/10m_cultural/10m_cultural.zip ]; then
mkdir /data/10m_cultural
curl -L https://naciscdn.org/naturalearth/10m/cultural/10m_cultural.zip -o /data/10m_cultural/10m_cultural.zip
unzip -o /data/10m_cultural/10m_cultural.zip -d /data/10m_cultural
mv /data/10m_cultural/10m_cultural/* /data/10m_cultural/.
fi
cp /data/shp2geojson.yaml /app
python3 /app/shp2geojson.py
tippecanoe -P -z7 -f -n oceanus -o /data/oceanus.mbtiles /data/shp2geojson.json /data/japan-bl.json