source: subversion/applications/rendering/mapnik/get-coastlines.sh @ 22497

Last change on this file since 22497 was 22456, checked in by mazdermind, 10 years ago

added new shapefiles from r21817

  • Property svn:executable set to *
File size: 1.3 KB
Line 
1#!/bin/sh
2
3wget http://tile.openstreetmap.org/world_boundaries-spherical.tgz -O world_boundaries-spherical.tgz
4wget http://tile.openstreetmap.org/processed_p.tar.bz2 -O processed_p.tar.bz2
5wget http://tile.openstreetmap.org/shoreline_300.tar.bz2 -O shoreline_300.tar.bz2
6wget http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/10m-populated-places.zip -O 10m-populated-places.zip
7wget http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/cultural/110m-admin-0-boundary-lines.zip -O 110m-admin-0-boundary-lines.zip
8
9tar xvf world_boundaries-spherical.tgz
10
11if [ -d world_boundaries ]; then
12
13        if [ -f processed_p.tar.bz2 ]; then
14                tar xvf processed_p.tar.bz2
15                mv processed_p.[dis]* world_boundaries/
16        else
17                echo 'processed_p.tar.bz2 not present'
18        fi
19
20        if [ -f shoreline_300.tar.bz2 ]; then
21                tar xvf shoreline_300.tar.bz2
22                mv shoreline_300.[dis]* world_boundaries/
23        else
24                echo 'shoreline_300.tar.bz2 not present'
25        fi
26
27        if [ -f 10m-populated-places.zip ]; then
28                unzip 10m-populated-places.zip -d world_boundaries
29        else
30                echo '10m-populated-places.zip not present'
31        fi
32
33        if [ -f 110m-admin-0-boundary-lines.zip ]; then
34                unzip 110m-admin-0-boundary-lines.zip -d world_boundaries
35        else
36                echo '110m-admin-0-boundary-lines.zip not present'
37        fi
38
39fi
Note: See TracBrowser for help on using the repository browser.