forked from openstreetmap/mapnik-stylesheets
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
33024a7
commit ae121ba
Showing
1 changed file
with
33 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/sh | ||
|
||
START=`date +"%Y-%m-%d %H:%M:%S"` | ||
|
||
echo "`date +"%Y-%m-%d %H:%M:%S"` downloading files" | ||
wget -nv http://download.geofabrik.de/antarctica-latest.osm.pbf -O data/antarctica-latest.osm.pbf | ||
wget -nv http://data.openstreetmapdata.com/land-polygons-complete-4326.zip -O data/land-polygons-complete-4326.zip | ||
wget -nv http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_populated_places.zip -O data/ne_10m_populated_places.zip | ||
wget -nv http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/cultural/ne_110m_admin_0_boundary_lines_land.zip -O data/ne_110m_admin_0_boundary_lines_land.zip | ||
|
||
echo "`date +"%Y-%m-%d %H:%M:%S"` unpacking data" | ||
unzip -o data/land-polygons-complete-4326.zip -d data | ||
unzip -o data/ne_10m_populated_places.zip -d data | ||
unzip -o data/ne_110m_admin_0_boundary_lines_land.zip -d data | ||
|
||
echo "`date +"%Y-%m-%d %H:%M:%S"` importing database" | ||
osm2pgsql --create --database antarctica --latlong --prefix ant --style=osm2pgsql.style --cache 2000 data/antarctica-latest.osm.pbf | ||
|
||
echo "`date +"%Y-%m-%d %H:%M:%S"` re-generating mapnik xml" | ||
./generate_xml.py --accept-none --dbname antarctica --prefix ant --epsg=4326 --world_boundaries=/osm2/polar/mapnik-stylesheets-polar/data/ | ||
|
||
echo "`date +"%Y-%m-%d %H:%M:%S"` rerender base tiles" | ||
./render_polar_tiles.py --style=osm.xml --dir=../htdocs/tiles --minzoom=1 --maxzoom=6 | ||
|
||
echo "`date +"%Y-%m-%d %H:%M:%S"` rerender interesting zoom-tiles" | ||
./render_polar_tiles.py --style=osm.xml --dir=../htdocs/tiles --minzoom=7 --maxzoom=18 --db=dbname=antarctica --only-interesting --only-interesting-list=../htdocs/interesting.json | ||
|
||
echo "`date +"%Y-%m-%d %H:%M:%S"` updating view" | ||
sed "s/###TIME###/`date +'%d.%m.%Y %H:%M:%S'`/g" <view.html >../htdocs/index.html | ||
|
||
echo "`date +"%Y-%m-%d %H:%M:%S"` sending mail" | ||
END=`date +"%Y-%m-%d %H:%M:%S"` | ||
echo "Tile-Rendering auf http://polar.openstreetmap.de/ startete um $START und endete um $END" | mail -s "http://polar.openstreetmap.de/" peter@mazdermind.de |