source: subversion/applications/rendering/gosmore/mkicons.sh @ 8745

Last change on this file since 8745 was 7896, checked in by nic, 12 years ago

Changes :
Support for OSM API 0.5
Rebuild larger planets with less memory
2 pass rebuild for cutting a bbox
Indexing and searching of non-name tags
Search for nearest occurence of specific tags
Rotated text
Icons
Polygons
Low zoom
Routing obeys more restrictions

Work in progress :
gpsd support
WinCE port
MinGW port

  • Property svn:executable set to *
File size: 726 bytes
Line 
1#!/bin/sh
2echo Creating temporary directory '"osmpnms/"' and converting icons to pnm
3mkdir osmpnms
4cd osmpnms
5# Create dummy to force GCD to (1,1)
6echo 'P3
71 1
8255
9255'>fix.pnm
10for n in `find /usr/share/map-icons/ -iname "*.png"`
11do 
12  A=${n%%.png}
13  B=${A//\//_}
14  pngtopnm -background \#11EE22 $n |pnmdepth 255 >"${B:21}.pnm"
15done
16# These make nice POIs, but are not needed to render OSM maps :
17rm -f *geocach* {classic,square}.{big,small}_{people,waypoint,wlan}* \
18  {svg_tn,japan_tn}_{people,waypoint,wlan}* svg_*
19
20echo Creating the montage and removing the temporary directory
21ulimit -n 2048
22../../netpbm-10.26.46/editor/pnmmontage -data ../icons.csv *.pnm>../icons.pnm
23rm -rf osmpnms
24cd ..
25ppmtobmp icons.pnm >icons.bmp
Note: See TracBrowser for help on using the repository browser.