source: subversion/applications/rendering/gosmore/mkworld.sh @ 19605

Last change on this file since 19605 was 18576, checked in by nic, 10 years ago

Gtk: Monitor the selecion (as in clipboard) and display detected way points
cgi-bin: Output expected number of seconds till destination is reached.
Improve routing weights a little bit.

  • Property svn:executable set to *
File size: 912 bytes
Line 
1#!/bin/bash
2# Convert the planet into all the pak file
3# Requirements: Osmosis will require around 4GB of RAM
4
5if ! [ -e cities1000.txt ]
6then wget http://download.geonames.org/export/dump/cities1000.zip
7     unzip cities1000.zip
8fi                               
9if ! [ -e lowres.osm ]
10then gcc -O2 geonames2osm.c -o geonames2osm
11     sort -nr -t$'\t' -k 15 cities1000.txt | ./geonames2osm >lowres.osm
12fi
13for n in 0*.pnm
14do convert $n ${n:0:16}.png
15done
16bash density.sh
17(echo '<?xml version="1.0" encoding="UTF-8" ?><osm version="0.6">'
18 cat lowres.osm
19 egrep -v '?xml|<osmCha' countries.osm | sed -e 's|/osmChange|/osm|') |
20   ./gosmore rebuild
21mv gosmore.pak default.pak
22for n in 0*.osm.bz2
23do (bzcat $n | egrep -v '</osm'
24    cat lowres.osm
25    egrep -v '?xml|<osmCha' countries.osm | sed -e 's|/osmChange|/osm|') |
26       ./gosmore rebuild
27    mv gosmore.pak ${n:0:16}.pak
28    # TODO : Two pass build
29done
Note: See TracBrowser for help on using the repository browser.