source: subversion/applications/rendering/gosmore/mkicons.sh.old @ 27126

Last change on this file since 27126 was 10996, checked in by daviddean, 11 years ago

Added link to map-icons to always get latest icons
Wrote new, more efficient version of mkicons.sh (w/o pnmmontage)
Changed Makefile so that gosmore.rsc depends upon icons.bmp
Added various files to svn:ignore property for cleaner commits

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1#!/bin/bash
2# svn co http://svn.openstreetmap.org/applications/share/map-icons/square.big
3# svn co http://svn.openstreetmap.org/applications/share/map-icons/classic.big
4# svn co http://svn.openstreetmap.org/applications/share/map-icons/square.small
5# svn co http://svn.openstreetmap.org/applications/share/map-icons/classic.small
6echo Creating temporary directory '"osmpnms/"' and converting icons to pnm
7mkdir osmpnms
8cd osmpnms
9# Create dummy to force GCD to (1,1)
10echo 'P6
111 1
12255
130 0 0
14'>fix.pnm
15for n in `find ../ -iname "*.png"`
16do
17  A=${n%%.png}
18  B=${A//\//_}
19  pngtopnm -background \#11EE22 $n |pnmdepth 255 >"${B:3}.pnm"
20done
21# These make nice POIs, but are not needed to render OSM maps :
22rm -f *geocach* \
23  {classic,square}.{big,small}_{people,waypoint,wlan,rendering}* \
24
25#  {classic,square}.big_*
26
27echo Creating the montage and removing the temporary directory
28ulimit -n 2048
29../../../netpbm-10.26.46/editor/pnmmontage -data ../icons.csv *.pnm>../icons.pnm
30cd ..
31rm -rf osmpnms
32ppmtobmp icons.pnm >icons.bmp
33# Suppress the icons Ulf is using to highlight errors
34echo 'classic.big_misc_deprecated.pnm:1:1:1:1
35square.big_misc_deprecated.pnm:1:1:1:1
36classic.small_misc_deprecated.pnm:1:1:1:1
37square.small_misc_deprecated.pnm:1:1:1:1
38classic.big_misc_no_icon.pnm:1:1:1:1
39square.big_misc_no_icon.pnm:1:1:1:1
40classic.small_misc_no_icon.pnm:1:1:1:1
41square.small_misc_no_icon.pnm:1:1:1:1' >>icons.csv
Note: See TracBrowser for help on using the repository browser.