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

Last change on this file since 28847 was 19615, checked in by nic, 10 years ago

WinCE: Enable areas rendering. Close #2655
Rebuild: Filter out a lot of imports. Other improvements also, incl bug fix.
elemstyles: Remove deprecated icons.

  • Property svn:executable set to *
File size: 997 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
17sed '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
22mv gosmore.pak default.pak
23for n in 0*.osm.bz2
24do (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
30done
Note: See TracBrowser for help on using the repository browser.