~scarneiro/ubuntu/oneiric/gosmore/fix-for-770751

« back to all changes in this revision

Viewing changes to mkworld.sh

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine
  • Date: 2010-07-12 11:24:32 UTC
  • mfrom: (1.1.3 upstream) (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100712112432-bkedaz1rdx1cp2a8
Tags: 0.0.0.20100711-1
* New upstream snapshot fetched for svn, revision: 22284
  This version introduces changes for compatibility with recent gpsd
  versions and protocols. Thanks Bernd Zeimetz.
* Policy bumped to 3.9.0. No changes.
* Now build system uses autoconf.
* Added new libcurl4-gnutls-dev build-dep.

Show diffs side-by-side

added added

removed removed

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