/[zanavi_public1]/navit/navit/script/geotag
ZANavi

Contents of /navit/navit/script/geotag

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 28 21:19:04 2011 UTC (12 years, 5 months ago) by zoff99
File size: 847 byte(s)
import files
1 #! /bin/sh
2 #TZ=UTC+00:00:00
3 TZ=UTC+00:59:57
4 export TZ
5 order=${5%%,*}
6 case $order in
7 10|11)
8 size=1000
9 ;;
10 12|13)
11 size=4000
12 ;;
13 14|15)
14 size=16000
15 ;;
16 16|17|18|19)
17 size=64000
18 ;;
19 *)
20 exit
21 esac
22 ls -l --full-time images/*.jpg | sed -e 's/^\([^ ]* \)\{5\}//' -e 's/20\([0-9]*\)-\([0-9]*\)-\([0-9]*\) \([0-9]*\):\([0-9]*\):\([0-9]*\)\.[0-9]* [^ ]*/\\$GPRMC,\4\5\6\\.000,\\([^,]*,\\)\\{7\\}\3\2\1,\\([^,]*,\\)\\{2\\}[^,]*\\*..$/' | tail +2 |
23 while read -r sentence image
24 do
25 if [ ! -f $image.$size ]
26 then
27 djpeg -scale 1/8 $image | pamscale -pixels $size | cjpeg >$image.$size
28
29 fi
30 if [ ! -f $image.txt ]
31 then
32 grep -e "$sentence" tracks/* | sed -e 's/^\([^,]*,\)\{3\}\(\([^,]*,\)\{4\}\).*/\2/' -e 's/,/ /g' > $image.txt
33 [ -s $image.txt ] || echo "$sentence not found" >&2
34 fi
35 sed "s&\$&type=poi_image label=$image.$size&" <$image.txt
36 done

Properties

Name Value
svn:executable *

   
Visit the ZANavi Wiki