-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds convenience scripts to download coastline and landuse data, see #…
- Loading branch information
1 parent
b89b0eb
commit 253b3cb
Showing
4 changed files
with
70 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o nounset | ||
|
||
|
||
mkdir -p coastline | ||
pushd coastline | ||
|
||
if ! [ -f "water-polygons-split-4326.zip" ]; then | ||
curl --proto '=https' --tlsv1.3 -sSfO https://osmdata.openstreetmap.de/download/water-polygons-split-4326.zip | ||
fi | ||
|
||
unzip -o -j water-polygons-split-4326.zip | ||
|
||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o nounset | ||
|
||
|
||
mkdir -p landcover | ||
pushd landcover | ||
|
||
if ! [ -f "ne_10m_antarctic_ice_shelves_polys.zip" ]; then | ||
curl --proto '=https' --tlsv1.3 -sSfO https://naciscdn.org/naturalearth/10m/physical/ne_10m_antarctic_ice_shelves_polys.zip | ||
fi | ||
|
||
if ! [ -f "ne_10m_urban_areas.zip" ]; then | ||
curl --proto '=https' --tlsv1.3 -sSfO https://naciscdn.org/naturalearth/10m/cultural/ne_10m_urban_areas.zip | ||
fi | ||
|
||
if ! [ -f "ne_10m_glaciated_areas.zip" ]; then | ||
curl --proto '=https' --tlsv1.3 -sSfO https://naciscdn.org/naturalearth/10m/physical/ne_10m_glaciated_areas.zip | ||
fi | ||
|
||
mkdir -p ne_10m_antarctic_ice_shelves_polys | ||
unzip -o ne_10m_antarctic_ice_shelves_polys.zip -d ne_10m_antarctic_ice_shelves_polys | ||
|
||
mkdir -p ne_10m_urban_areas | ||
unzip -o ne_10m_urban_areas.zip -d ne_10m_urban_areas | ||
|
||
mkdir -p ne_10m_glaciated_areas | ||
unzip -o ne_10m_glaciated_areas.zip -d ne_10m_glaciated_areas | ||
|
||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o nounset | ||
|
||
|
||
if ! [ -f "monaco-latest.osm.pbf" ]; then | ||
curl --proto '=https' --tlsv1.3 -sSfO https://download.geofabrik.de/europe/monaco-latest.osm.pbf | ||
fi |