Merge lp:~bilalakhtar/ubuntu/maverick/gpsdrive/gpsdrive-merge-605350 into lp:ubuntu/maverick/gpsdrive

Proposed by Bilal Akhtar
Status: Merged
Merged at revision: 20
Proposed branch: lp:~bilalakhtar/ubuntu/maverick/gpsdrive/gpsdrive-merge-605350
Merge into: lp:ubuntu/maverick/gpsdrive
Diff against target: 1406 lines (+724/-227)
11 files modified
config.guess (+32/-87)
config.sub (+38/-107)
debian/changelog (+33/-0)
debian/compat (+1/-1)
debian/control (+10/-7)
debian/patches/00list (+2/-1)
debian/patches/103-lp-325288.dpatch (+0/-17)
debian/patches/103-no-textquery.dpatch (+18/-0)
debian/patches/104-lp-325288.dpatch (+17/-0)
debian/patches/gpsdrive2.10pre7_osm_proj.patch (+572/-0)
debian/rules (+1/-7)
To merge this branch: bzr merge lp:~bilalakhtar/ubuntu/maverick/gpsdrive/gpsdrive-merge-605350
Reviewer Review Type Date Requested Status
Ubuntu Sponsors Pending
Review via email: mp+31128@code.launchpad.net

Description of the change

This branch merges latest version from Debian sid.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'config.guess'
--- config.guess 2010-04-16 11:31:32 +0000
+++ config.guess 2010-07-28 08:11:20 +0000
@@ -56,8 +56,8 @@
56GNU config.guess ($timestamp)56GNU config.guess ($timestamp)
5757
58Originally written by Per Bothner.58Originally written by Per Bothner.
59Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,59Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
602002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.60Free Software Foundation, Inc.
6161
62This is free software; see the source for copying conditions. There is NO62This is free software; see the source for copying conditions. There is NO
63warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."63warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -161,7 +161,6 @@
161 arm*) machine=arm-unknown ;;161 arm*) machine=arm-unknown ;;
162 sh3el) machine=shl-unknown ;;162 sh3el) machine=shl-unknown ;;
163 sh3eb) machine=sh-unknown ;;163 sh3eb) machine=sh-unknown ;;
164 sh5el) machine=sh5le-unknown ;;
165 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;164 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
166 esac165 esac
167 # The Operating System including object format, if it has switched166 # The Operating System including object format, if it has switched
@@ -212,7 +211,7 @@
212 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}211 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
213 exit ;;212 exit ;;
214 macppc:MirBSD:*:*)213 macppc:MirBSD:*:*)
215 echo powerpc-unknown-mirbsd${UNAME_RELEASE}214 echo powerppc-unknown-mirbsd${UNAME_RELEASE}
216 exit ;;215 exit ;;
217 *:MirBSD:*:*)216 *:MirBSD:*:*)
218 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}217 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
@@ -324,30 +323,14 @@
324 case `/usr/bin/uname -p` in323 case `/usr/bin/uname -p` in
325 sparc) echo sparc-icl-nx7; exit ;;324 sparc) echo sparc-icl-nx7; exit ;;
326 esac ;;325 esac ;;
327 s390x:SunOS:*:*)
328 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
329 exit ;;
330 sun4H:SunOS:5.*:*)326 sun4H:SunOS:5.*:*)
331 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`327 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
332 exit ;;328 exit ;;
333 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)329 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
334 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`330 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
335 exit ;;331 exit ;;
336 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)332 i86pc:SunOS:5.*:*)
337 eval $set_cc_for_build333 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
338 SUN_ARCH="i386"
339 # If there is a compiler, see if it is configured for 64-bit objects.
340 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
341 # This test works for both compilers.
342 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
343 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
344 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
345 grep IS_64BIT_ARCH >/dev/null
346 then
347 SUN_ARCH="x86_64"
348 fi
349 fi
350 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
351 exit ;;334 exit ;;
352 sun4*:SunOS:6*:*)335 sun4*:SunOS:6*:*)
353 # According to config.sub, this is the proper way to canonicalize336 # According to config.sub, this is the proper way to canonicalize
@@ -548,7 +531,7 @@
548 echo rs6000-ibm-aix3.2531 echo rs6000-ibm-aix3.2
549 fi532 fi
550 exit ;;533 exit ;;
551 *:AIX:*:[456])534 *:AIX:*:[45])
552 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`535 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
553 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then536 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
554 IBM_ARCH=rs6000537 IBM_ARCH=rs6000
@@ -788,8 +771,6 @@
788 case ${UNAME_MACHINE} in771 case ${UNAME_MACHINE} in
789 pc98)772 pc98)
790 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;773 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
791 amd64)
792 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
793 *)774 *)
794 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;775 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
795 esac776 esac
@@ -797,7 +778,10 @@
797 i*:CYGWIN*:*)778 i*:CYGWIN*:*)
798 echo ${UNAME_MACHINE}-pc-cygwin779 echo ${UNAME_MACHINE}-pc-cygwin
799 exit ;;780 exit ;;
800 *:MINGW*:*)781 i*:MINGW*:*)
782 echo ${UNAME_MACHINE}-pc-mingw32
783 exit ;;
784 i*:MSYS_NT-*:*:*)
801 echo ${UNAME_MACHINE}-pc-mingw32785 echo ${UNAME_MACHINE}-pc-mingw32
802 exit ;;786 exit ;;
803 i*:windows32*:*)787 i*:windows32*:*)
@@ -807,18 +791,12 @@
807 i*:PW*:*)791 i*:PW*:*)
808 echo ${UNAME_MACHINE}-pc-pw32792 echo ${UNAME_MACHINE}-pc-pw32
809 exit ;;793 exit ;;
810 *:Interix*:[3456]*)794 x86:Interix*:[345]*)
811 case ${UNAME_MACHINE} in795 echo i586-pc-interix${UNAME_RELEASE}
812 x86)796 exit ;;
813 echo i586-pc-interix${UNAME_RELEASE}797 EM64T:Interix*:[345]*)
814 exit ;;798 echo x86_64-unknown-interix${UNAME_RELEASE}
815 EM64T | authenticamd | genuineintel)799 exit ;;
816 echo x86_64-unknown-interix${UNAME_RELEASE}
817 exit ;;
818 IA64)
819 echo ia64-unknown-interix${UNAME_RELEASE}
820 exit ;;
821 esac ;;
822 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)800 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
823 echo i${UNAME_MACHINE}-pc-mks801 echo i${UNAME_MACHINE}-pc-mks
824 exit ;;802 exit ;;
@@ -855,16 +833,6 @@
855 echo ${UNAME_MACHINE}-pc-minix833 echo ${UNAME_MACHINE}-pc-minix
856 exit ;;834 exit ;;
857 arm*:Linux:*:*)835 arm*:Linux:*:*)
858 eval $set_cc_for_build
859 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
860 | grep -q __ARM_EABI__
861 then
862 echo ${UNAME_MACHINE}-unknown-linux-gnu
863 else
864 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
865 fi
866 exit ;;
867 avr32*:Linux:*:*)
868 echo ${UNAME_MACHINE}-unknown-linux-gnu836 echo ${UNAME_MACHINE}-unknown-linux-gnu
869 exit ;;837 exit ;;
870 cris:Linux:*:*)838 cris:Linux:*:*)
@@ -931,9 +899,6 @@
931 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi899 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
932 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}900 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
933 exit ;;901 exit ;;
934 padre:Linux:*:*)
935 echo sparc-unknown-linux-gnu
936 exit ;;
937 parisc:Linux:*:* | hppa:Linux:*:*)902 parisc:Linux:*:* | hppa:Linux:*:*)
938 # Look for CPU level903 # Look for CPU level
939 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in904 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
@@ -963,9 +928,6 @@
963 x86_64:Linux:*:*)928 x86_64:Linux:*:*)
964 echo x86_64-unknown-linux-gnu929 echo x86_64-unknown-linux-gnu
965 exit ;;930 exit ;;
966 xtensa*:Linux:*:*)
967 echo ${UNAME_MACHINE}-unknown-linux-gnu
968 exit ;;
969 i*86:Linux:*:*)931 i*86:Linux:*:*)
970 # The BFD linker knows what the default object file format is, so932 # The BFD linker knows what the default object file format is, so
971 # first see if it will tell us. cd to the root directory to prevent933 # first see if it will tell us. cd to the root directory to prevent
@@ -981,6 +943,17 @@
981 elf32-i386)943 elf32-i386)
982 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"944 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
983 ;;945 ;;
946 a.out-i386-linux)
947 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
948 exit ;;
949 coff-i386)
950 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
951 exit ;;
952 "")
953 # Either a pre-BFD a.out linker (linux-gnuoldld) or
954 # one that does not give us useful --help.
955 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
956 exit ;;
984 esac957 esac
985 # Determine whether the default compiler is a.out or elf958 # Determine whether the default compiler is a.out or elf
986 eval $set_cc_for_build959 eval $set_cc_for_build
@@ -997,7 +970,7 @@
997 LIBC=gnulibc1970 LIBC=gnulibc1
998 # endif971 # endif
999 #else972 #else
1000 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)973 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__sun)
1001 LIBC=gnu974 LIBC=gnu
1002 #else975 #else
1003 LIBC=gnuaout976 LIBC=gnuaout
@@ -1090,11 +1063,8 @@
1090 pc:*:*:*)1063 pc:*:*:*)
1091 # Left here for compatibility:1064 # Left here for compatibility:
1092 # uname -m prints for DJGPP always 'pc', but it prints nothing about1065 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1093 # the processor, so we play safe by assuming i586.1066 # the processor, so we play safe by assuming i386.
1094 # Note: whatever this is, it MUST be the same as what config.sub1067 echo i386-pc-msdosdjgpp
1095 # prints for the "djgpp" host, or else GDB configury will decide that
1096 # this is a cross-build.
1097 echo i586-pc-msdosdjgpp
1098 exit ;;1068 exit ;;
1099 Intel:Mach:3*:*)1069 Intel:Mach:3*:*)
1100 echo i386-pc-mach31070 echo i386-pc-mach3
@@ -1132,16 +1102,6 @@
1132 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)1102 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1133 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \1103 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1134 && { echo i486-ncr-sysv4; exit; } ;;1104 && { echo i486-ncr-sysv4; exit; } ;;
1135 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1136 OS_REL='.3'
1137 test -r /etc/.relid \
1138 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1139 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1140 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1141 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1142 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1143 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1144 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1145 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)1105 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1146 echo m68k-unknown-lynxos${UNAME_RELEASE}1106 echo m68k-unknown-lynxos${UNAME_RELEASE}
1147 exit ;;1107 exit ;;
@@ -1217,9 +1177,6 @@
1217 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.1177 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1218 echo i586-pc-beos1178 echo i586-pc-beos
1219 exit ;;1179 exit ;;
1220 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1221 echo i586-pc-haiku
1222 exit ;;
1223 SX-4:SUPER-UX:*:*)1180 SX-4:SUPER-UX:*:*)
1224 echo sx4-nec-superux${UNAME_RELEASE}1181 echo sx4-nec-superux${UNAME_RELEASE}
1225 exit ;;1182 exit ;;
@@ -1229,15 +1186,6 @@
1229 SX-6:SUPER-UX:*:*)1186 SX-6:SUPER-UX:*:*)
1230 echo sx6-nec-superux${UNAME_RELEASE}1187 echo sx6-nec-superux${UNAME_RELEASE}
1231 exit ;;1188 exit ;;
1232 SX-7:SUPER-UX:*:*)
1233 echo sx7-nec-superux${UNAME_RELEASE}
1234 exit ;;
1235 SX-8:SUPER-UX:*:*)
1236 echo sx8-nec-superux${UNAME_RELEASE}
1237 exit ;;
1238 SX-8R:SUPER-UX:*:*)
1239 echo sx8r-nec-superux${UNAME_RELEASE}
1240 exit ;;
1241 Power*:Rhapsody:*:*)1189 Power*:Rhapsody:*:*)
1242 echo powerpc-apple-rhapsody${UNAME_RELEASE}1190 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1243 exit ;;1191 exit ;;
@@ -1328,9 +1276,6 @@
1328 i*86:rdos:*:*)1276 i*86:rdos:*:*)
1329 echo ${UNAME_MACHINE}-pc-rdos1277 echo ${UNAME_MACHINE}-pc-rdos
1330 exit ;;1278 exit ;;
1331 i*86:AROS:*:*)
1332 echo ${UNAME_MACHINE}-pc-aros
1333 exit ;;
1334esac1279esac
13351280
1336#echo '(No uname command or uname output not recognized.)' 1>&21281#echo '(No uname command or uname output not recognized.)' 1>&2
@@ -1491,9 +1436,9 @@
1491the operating system you are using. It is advised that you1436the operating system you are using. It is advised that you
1492download the most up to date version of the config scripts from1437download the most up to date version of the config scripts from
14931438
1494 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD1439 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
1495and1440and
1496 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD1441 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
14971442
1498If the version you run ($0) is already up to date, please1443If the version you run ($0) is already up to date, please
1499send the following data and any information you think might be1444send the following data and any information you think might be
15001445
=== modified file 'config.sub'
--- config.sub 2010-04-16 11:31:32 +0000
+++ config.sub 2010-07-28 08:11:20 +0000
@@ -72,8 +72,8 @@
72version="\72version="\
73GNU config.sub ($timestamp)73GNU config.sub ($timestamp)
7474
75Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,75Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
762002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.76Free Software Foundation, Inc.
7777
78This is free software; see the source for copying conditions. There is NO78This is free software; see the source for copying conditions. There is NO
79warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."79warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -122,7 +122,6 @@
122case $maybe_os in122case $maybe_os in
123 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \123 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
124 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \124 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
125 kopensolaris*-gnu* | \
126 storm-chaos* | os2-emx* | rtmk-nova*)125 storm-chaos* | os2-emx* | rtmk-nova*)
127 os=-$maybe_os126 os=-$maybe_os
128 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
@@ -245,24 +244,20 @@
245 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \244 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
246 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \245 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
247 | am33_2.0 \246 | am33_2.0 \
248 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \247 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
249 | bfin \248 | bfin \
250 | c4x | clipper \249 | c4x | clipper \
251 | d10v | d30v | dlx | dsp16xx \250 | d10v | d30v | dlx | dsp16xx \
252 | fido | fr30 | frv \251 | fr30 | frv \
253 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \252 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
254 | i370 | i860 | i960 | ia64 \253 | i370 | i860 | i960 | ia64 \
255 | ip2k | iq2000 \254 | ip2k | iq2000 \
256 | lm32 \255 | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \
257 | m32c | m32r | m32rle | m68000 | m68k | m88k \
258 | maxq | mb | microblaze | mcore | mep | metag \
259 | mips | mipsbe | mipseb | mipsel | mipsle \256 | mips | mipsbe | mipseb | mipsel | mipsle \
260 | mips16 \257 | mips16 \
261 | mips64 | mips64el \258 | mips64 | mips64el \
262 | mips64octeon | mips64octeonel \259 | mips64vr | mips64vrel \
263 | mips64orion | mips64orionel \260 | mips64orion | mips64orionel \
264 | mips64r5900 | mips64r5900el \
265 | mips64vr | mips64vrel \
266 | mips64vr4100 | mips64vr4100el \261 | mips64vr4100 | mips64vr4100el \
267 | mips64vr4300 | mips64vr4300el \262 | mips64vr4300 | mips64vr4300el \
268 | mips64vr5000 | mips64vr5000el \263 | mips64vr5000 | mips64vr5000el \
@@ -275,7 +270,6 @@
275 | mipsisa64sr71k | mipsisa64sr71kel \270 | mipsisa64sr71k | mipsisa64sr71kel \
276 | mipstx39 | mipstx39el \271 | mipstx39 | mipstx39el \
277 | mn10200 | mn10300 \272 | mn10200 | mn10300 \
278 | moxie \
279 | mt \273 | mt \
280 | msp430 \274 | msp430 \
281 | nios | nios2 \275 | nios | nios2 \
@@ -284,17 +278,19 @@
284 | pdp10 | pdp11 | pj | pjl \278 | pdp10 | pdp11 | pj | pjl \
285 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \279 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
286 | pyramid \280 | pyramid \
287 | score \281 | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
288 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
289 | sh64 | sh64le \282 | sh64 | sh64le \
290 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \283 | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
291 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \284 | sparcv8 | sparcv9 | sparcv9b \
292 | spu | strongarm \285 | strongarm \
293 | tahoe | thumb | tic4x | tic80 | tron \286 | tahoe | thumb | tic4x | tic80 | tron \
294 | v850 | v850e \287 | v850 | v850e \
295 | we32k \288 | we32k \
296 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \289 | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
297 | z8k | z80)290 | z8k)
291 basic_machine=$basic_machine-unknown
292 ;;
293 m32c)
298 basic_machine=$basic_machine-unknown294 basic_machine=$basic_machine-unknown
299 ;;295 ;;
300 m6811 | m68hc11 | m6812 | m68hc12)296 m6811 | m68hc11 | m6812 | m68hc12)
@@ -326,28 +322,25 @@
326 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \322 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
327 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \323 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
328 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \324 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
329 | avr-* | avr32-* \325 | avr-* \
330 | bfin-* | bs2000-* \326 | bfin-* | bs2000-* \
331 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \327 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
332 | clipper-* | craynv-* | cydra-* \328 | clipper-* | craynv-* | cydra-* \
333 | d10v-* | d30v-* | dlx-* \329 | d10v-* | d30v-* | dlx-* \
334 | elxsi-* \330 | elxsi-* \
335 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \331 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
336 | h8300-* | h8500-* \332 | h8300-* | h8500-* \
337 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \333 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
338 | i*86-* | i860-* | i960-* | ia64-* \334 | i*86-* | i860-* | i960-* | ia64-* \
339 | ip2k-* | iq2000-* \335 | ip2k-* | iq2000-* \
340 | lm32-* \336 | m32r-* | m32rle-* \
341 | m32c-* | m32r-* | m32rle-* \
342 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \337 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
343 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \338 | m88110-* | m88k-* | maxq-* | mcore-* \
344 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \339 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
345 | mips16-* \340 | mips16-* \
346 | mips64-* | mips64el-* \341 | mips64-* | mips64el-* \
347 | mips64octeon-* | mips64octeonel-* \342 | mips64vr-* | mips64vrel-* \
348 | mips64orion-* | mips64orionel-* \343 | mips64orion-* | mips64orionel-* \
349 | mips64r5900-* | mips64r5900el-* \
350 | mips64vr-* | mips64vrel-* \
351 | mips64vr4100-* | mips64vr4100el-* \344 | mips64vr4100-* | mips64vr4100el-* \
352 | mips64vr4300-* | mips64vr4300el-* \345 | mips64vr4300-* | mips64vr4300el-* \
353 | mips64vr5000-* | mips64vr5000el-* \346 | mips64vr5000-* | mips64vr5000el-* \
@@ -369,24 +362,22 @@
369 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \362 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
370 | pyramid-* \363 | pyramid-* \
371 | romp-* | rs6000-* \364 | romp-* | rs6000-* \
372 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \365 | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
373 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \366 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
374 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \367 | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
375 | sparclite-* \368 | sparclite-* \
376 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \369 | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
377 | tahoe-* | thumb-* \370 | tahoe-* | thumb-* \
378 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \371 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
379 | tron-* \372 | tron-* \
380 | v850-* | v850e-* | vax-* \373 | v850-* | v850e-* | vax-* \
381 | we32k-* \374 | we32k-* \
382 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \375 | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
383 | xstormy16-* | xtensa*-* \376 | xstormy16-* | xtensa-* \
384 | ymp-* \377 | ymp-* \
385 | z8k-* | z80-*)378 | z8k-*)
386 ;;379 ;;
387 # Recognize the basic CPU types without company name, with glob match.380 m32c-*)
388 xtensa*)
389 basic_machine=$basic_machine-unknown
390 ;;381 ;;
391 # Recognize the various machine names and aliases which stand382 # Recognize the various machine names and aliases which stand
392 # for a CPU type and a company and sometimes even an OS.383 # for a CPU type and a company and sometimes even an OS.
@@ -450,10 +441,6 @@
450 basic_machine=m68k-apollo441 basic_machine=m68k-apollo
451 os=-bsd442 os=-bsd
452 ;;443 ;;
453 aros)
454 basic_machine=i386-pc
455 os=-aros
456 ;;
457 aux)444 aux)
458 basic_machine=m68k-apple445 basic_machine=m68k-apple
459 os=-aux446 os=-aux
@@ -478,10 +465,6 @@
478 basic_machine=c90-cray465 basic_machine=c90-cray
479 os=-unicos466 os=-unicos
480 ;;467 ;;
481 cegcc)
482 basic_machine=arm-unknown
483 os=-cegcc
484 ;;
485 convex-c1)468 convex-c1)
486 basic_machine=c1-convex469 basic_machine=c1-convex
487 os=-bsd470 os=-bsd
@@ -510,8 +493,8 @@
510 basic_machine=craynv-cray493 basic_machine=craynv-cray
511 os=-unicosmp494 os=-unicosmp
512 ;;495 ;;
513 cr16)496 cr16c)
514 basic_machine=cr16-unknown497 basic_machine=cr16c-unknown
515 os=-elf498 os=-elf
516 ;;499 ;;
517 crds | unos)500 crds | unos)
@@ -549,10 +532,6 @@
549 basic_machine=m88k-motorola532 basic_machine=m88k-motorola
550 os=-sysv3533 os=-sysv3
551 ;;534 ;;
552 dicos)
553 basic_machine=i686-pc
554 os=-dicos
555 ;;
556 djgpp)535 djgpp)
557 basic_machine=i586-pc536 basic_machine=i586-pc
558 os=-msdosdjgpp537 os=-msdosdjgpp
@@ -707,14 +686,6 @@
707 basic_machine=m68k-isi686 basic_machine=m68k-isi
708 os=-sysv687 os=-sysv
709 ;;688 ;;
710 m68knommu)
711 basic_machine=m68k-unknown
712 os=-linux
713 ;;
714 m68knommu-*)
715 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
716 os=-linux
717 ;;
718 m88k-omron*)689 m88k-omron*)
719 basic_machine=m88k-omron690 basic_machine=m88k-omron
720 ;;691 ;;
@@ -730,10 +701,6 @@
730 basic_machine=i386-pc701 basic_machine=i386-pc
731 os=-mingw32702 os=-mingw32
732 ;;703 ;;
733 mingw32ce)
734 basic_machine=arm-unknown
735 os=-mingw32ce
736 ;;
737 miniframe)704 miniframe)
738 basic_machine=m68000-convergent705 basic_machine=m68000-convergent
739 ;;706 ;;
@@ -860,14 +827,6 @@
860 basic_machine=i860-intel827 basic_machine=i860-intel
861 os=-osf828 os=-osf
862 ;;829 ;;
863 parisc)
864 basic_machine=hppa-unknown
865 os=-linux
866 ;;
867 parisc-*)
868 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
869 os=-linux
870 ;;
871 pbd)830 pbd)
872 basic_machine=sparc-tti831 basic_machine=sparc-tti
873 ;;832 ;;
@@ -969,10 +928,6 @@
969 sb1el)928 sb1el)
970 basic_machine=mipsisa64sb1el-unknown929 basic_machine=mipsisa64sb1el-unknown
971 ;;930 ;;
972 sde)
973 basic_machine=mipsisa32-sde
974 os=-elf
975 ;;
976 sei)931 sei)
977 basic_machine=mips-sei932 basic_machine=mips-sei
978 os=-seiux933 os=-seiux
@@ -984,9 +939,6 @@
984 basic_machine=sh-hitachi939 basic_machine=sh-hitachi
985 os=-hms940 os=-hms
986 ;;941 ;;
987 sh5el)
988 basic_machine=sh5le-unknown
989 ;;
990 sh64)942 sh64)
991 basic_machine=sh64-unknown943 basic_machine=sh64-unknown
992 ;;944 ;;
@@ -1076,10 +1028,6 @@
1076 basic_machine=tic6x-unknown1028 basic_machine=tic6x-unknown
1077 os=-coff1029 os=-coff
1078 ;;1030 ;;
1079 tile*)
1080 basic_machine=tile-unknown
1081 os=-linux-gnu
1082 ;;
1083 tx39)1031 tx39)
1084 basic_machine=mipstx39-unknown1032 basic_machine=mipstx39-unknown
1085 ;;1033 ;;
@@ -1155,10 +1103,6 @@
1155 basic_machine=z8k-unknown1103 basic_machine=z8k-unknown
1156 os=-sim1104 os=-sim
1157 ;;1105 ;;
1158 z80-*-coff)
1159 basic_machine=z80-unknown
1160 os=-sim
1161 ;;
1162 none)1106 none)
1163 basic_machine=none-none1107 basic_machine=none-none
1164 os=-none1108 os=-none
@@ -1197,10 +1141,10 @@
1197 we32k)1141 we32k)
1198 basic_machine=we32k-att1142 basic_machine=we32k-att
1199 ;;1143 ;;
1200 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)1144 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1201 basic_machine=sh-unknown1145 basic_machine=sh-unknown
1202 ;;1146 ;;
1203 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)1147 sparc | sparcv8 | sparcv9 | sparcv9b)
1204 basic_machine=sparc-sun1148 basic_machine=sparc-sun
1205 ;;1149 ;;
1206 cydra)1150 cydra)
@@ -1269,9 +1213,8 @@
1269 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \1213 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1270 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\1214 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1271 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \1215 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1272 | -kopensolaris* \
1273 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \1216 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1274 | -aos* | -aros* \1217 | -aos* \
1275 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \1218 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1276 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \1219 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1277 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \1220 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
@@ -1280,7 +1223,7 @@
1280 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \1223 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1281 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \1224 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1282 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \1225 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1283 | -chorusos* | -chorusrdb* | -cegcc* \1226 | -chorusos* | -chorusrdb* \
1284 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \1227 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1285 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \1228 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1286 | -uxpv* | -beos* | -mpeix* | -udk* \1229 | -uxpv* | -beos* | -mpeix* | -udk* \
@@ -1290,7 +1233,7 @@
1290 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \1233 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1291 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \1234 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1292 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \1235 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1293 | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)1236 | -skyos* | -haiku* | -rdos*)
1294 # Remember, each alternative MUST END IN *, to match a version number.1237 # Remember, each alternative MUST END IN *, to match a version number.
1295 ;;1238 ;;
1296 -qnx*)1239 -qnx*)
@@ -1420,9 +1363,6 @@
1420 -zvmoe)1363 -zvmoe)
1421 os=-zvmoe1364 os=-zvmoe
1422 ;;1365 ;;
1423 -dicos*)
1424 os=-dicos
1425 ;;
1426 -none)1366 -none)
1427 ;;1367 ;;
1428 *)1368 *)
@@ -1445,12 +1385,6 @@
1445# system, and we'll never get to this point.1385# system, and we'll never get to this point.
14461386
1447case $basic_machine in1387case $basic_machine in
1448 score-*)
1449 os=-elf
1450 ;;
1451 spu-*)
1452 os=-elf
1453 ;;
1454 *-acorn)1388 *-acorn)
1455 os=-riscix1.21389 os=-riscix1.2
1456 ;;1390 ;;
@@ -1460,9 +1394,9 @@
1460 arm*-semi)1394 arm*-semi)
1461 os=-aout1395 os=-aout
1462 ;;1396 ;;
1463 c4x-* | tic4x-*)1397 c4x-* | tic4x-*)
1464 os=-coff1398 os=-coff
1465 ;;1399 ;;
1466 # This must come before the *-dec entry.1400 # This must come before the *-dec entry.
1467 pdp10-*)1401 pdp10-*)
1468 os=-tops201402 os=-tops20
@@ -1488,9 +1422,6 @@
1488 m68*-cisco)1422 m68*-cisco)
1489 os=-aout1423 os=-aout
1490 ;;1424 ;;
1491 mep-*)
1492 os=-elf
1493 ;;
1494 mips*-cisco)1425 mips*-cisco)
1495 os=-elf1426 os=-elf
1496 ;;1427 ;;
14971428
=== modified file 'debian/changelog'
--- debian/changelog 2010-07-11 20:22:33 +0000
+++ debian/changelog 2010-07-28 08:11:20 +0000
@@ -1,3 +1,35 @@
1gpsdrive (2.10~pre4-6.dfsg-5ubuntu1) maverick; urgency=low
2
3 * Merge from Debian unstable (LP: #605350), remaining changes:
4 - scripts/geo-code: Changed executing environment from /bin/sh
5 to /bin/bash.
6 - Dropped changes:
7 + Build with libmysqlclient16-dev.
8
9 -- Bilal Akhtar <bilalakhtar96@yahoo.com> Mon, 26 Jul 2010 12:03:38 +0530
10
11gpsdrive (2.10~pre4-6.dfsg-5) unstable; urgency=low
12
13 * Added 103-no-textquery patch to remove Text::Query use. Removed
14 dependency on the libtext-query-perl package.
15 Thanks Jonathan Yu.
16 * Revised debian/control for a better layout.
17 * Vcs-* fields now point the trunk branch.
18
19 -- Francesco Paolo Lovergine <frankie@debian.org> Mon, 08 Mar 2010 11:23:39 +0100
20
21gpsdrive (2.10~pre4-6.dfsg-4) unstable; urgency=low
22
23 * Do not depend on versioned python.
24 * Policy bumped to 3.8.4.
25 * Moved to libmysqlclient-dev build-dep.
26 * Now suggests postgresql-8.4-postgis.
27 * Debhelper level moved to 7.
28 * Removed superfluous config.{guess,sub} override.
29 * Added me as an uploader.
30
31 -- Francesco Paolo Lovergine <frankie@debian.org> Thu, 04 Feb 2010 16:53:01 +0100
32
1gpsdrive (2.10~pre4-6.dfsg-3ubuntu5) maverick; urgency=low33gpsdrive (2.10~pre4-6.dfsg-3ubuntu5) maverick; urgency=low
234
3 * scripts/geo-code: Changed executing environment from /bin/sh35 * scripts/geo-code: Changed executing environment from /bin/sh
@@ -113,6 +145,7 @@
113145
114 -- Andreas Putzo <andreas@putzo.net> Sat, 19 Jul 2008 20:01:39 +0000146 -- Andreas Putzo <andreas@putzo.net> Sat, 19 Jul 2008 20:01:39 +0000
115147
148>>>>>>> .r2096
116gpsdrive (2.10~pre4-3) unstable; urgency=low149gpsdrive (2.10~pre4-3) unstable; urgency=low
117150
118 * Fix regression of last upload in the mapnik handling.151 * Fix regression of last upload in the mapnik handling.
119152
=== modified file 'debian/compat'
--- debian/compat 2007-10-16 20:00:05 +0000
+++ debian/compat 2010-07-28 08:11:20 +0000
@@ -1,1 +1,1 @@
1517
22
=== modified file 'debian/control'
--- debian/control 2010-04-16 11:31:32 +0000
+++ debian/control 2010-07-28 08:11:20 +0000
@@ -3,19 +3,20 @@
3Priority: optional3Priority: optional
4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>5XSBC-Original-Maintainer: Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>
6Uploaders: Andreas Putzo <andreas@putzo.net>6Uploaders: Andreas Putzo <andreas@putzo.net>, Francesco Paolo Lovergine <frankie@debian.org>
7DM-Upload-Allowed: yes7DM-Upload-Allowed: yes
8Build-Depends: debhelper (>= 5), automake1.9, libtool, pkg-config, libpcre3-dev, libgtk2.0-dev,libart-2.0-dev, libxml2-dev, libmysqlclient16-dev, autotools-dev, dpatch, libmapnik-dev (>= 0.6), libboost-dev, libboost-filesystem-dev, libboost-serialization-dev, libdbus-glib-1-dev8Build-Depends: debhelper (>= 7), automake1.9, libtool, pkg-config, libpcre3-dev, libgtk2.0-dev,libart-2.0-dev, libxml2-dev, libmysqlclient-dev,
9Standards-Version: 3.8.09 autotools-dev, dpatch, libmapnik-dev (>= 0.6), libboost-dev, libboost-filesystem-dev, libboost-serialization-dev, libdbus-glib-1-dev
10Standards-Version: 3.8.4
10Homepage: http://gpsdrive.de11Homepage: http://gpsdrive.de
11Vcs-Svn: svn://svn.debian.org/svn/pkg-grass/packages/gpsdrive/12Vcs-Svn: svn://svn.debian.org/svn/pkg-grass/packages/gpsdrive/trunk
12Vcs-Browser: http://svn.debian.org/viewsvn/pkg-grass/packages/gpsdrive/13Vcs-Browser: http://svn.debian.org/viewsvn/pkg-grass/packages/gpsdrive/trunk
1314
14Package: gpsdrive15Package: gpsdrive
15Architecture: any16Architecture: any
16Depends: ${shlibs:Depends}, ${misc:Depends}, gpsdrive-data, openstreetmap-map-icons-square, openstreetmap-map-icons-classic17Depends: ${shlibs:Depends}, ${misc:Depends}, gpsdrive-data, openstreetmap-map-icons-square, openstreetmap-map-icons-classic
17Recommends: gpsd, gpsdrive-scripts18Recommends: gpsd, gpsdrive-scripts
18Suggests: flite | festival, osm2pgsql, mysql-server, postgresql-8.3-postgis19Suggests: flite | festival, osm2pgsql, mysql-server, postgresql-8.4-postgis
19Description: Car navigation system20Description: Car navigation system
20 Map-based navigation system that displays the current21 Map-based navigation system that displays the current
21 position provided by a GPS receiver on a zoomable map.22 position provided by a GPS receiver on a zoomable map.
@@ -39,7 +40,9 @@
3940
40Package: gpsdrive-scripts41Package: gpsdrive-scripts
41Architecture: all42Architecture: all
42Depends: gpsdrive, ${perl:Depends}, python, python-imaging, python-mapnik, libdbi-perl, libdbd-mysql-perl, libdate-manip-perl, libfile-slurp-perl, libmime-base64-perl, libtext-query-perl, libtime-local-perl, libwww-curl-perl, libwww-mechanize-perl, libxml-parser-perl, libxml-simple-perl, libxml-twig-perl, libxml-writer-perl, perlmagick, perl-tk43Depends: gpsdrive, ${perl:Depends}, python, python-imaging, python-mapnik, libdbi-perl, libdbd-mysql-perl, libdate-manip-perl, libfile-slurp-perl,
44 libmime-base64-perl, libtime-local-perl, libwww-curl-perl, libwww-mechanize-perl, libxml-parser-perl, libxml-simple-perl, libxml-twig-perl,
45 libxml-writer-perl, perlmagick, perl-tk
43Description: Various scripts for gpsdrive46Description: Various scripts for gpsdrive
44 Gpsdrive is a car (bike, ship, plane) navigation system.47 Gpsdrive is a car (bike, ship, plane) navigation system.
45 .48 .
4649
=== modified file 'debian/patches/00list'
--- debian/patches/00list 2010-07-05 10:54:00 +0000
+++ debian/patches/00list 2010-07-28 08:11:20 +0000
@@ -18,4 +18,5 @@
18100-fix-insecure-tempfiles18100-fix-insecure-tempfiles
19101-signalposreq19101-signalposreq
20102-unittest20102-unittest
21103-lp-32528821103-no-textquery
22104-lp-325288
2223
=== removed file 'debian/patches/103-lp-325288.dpatch'
--- debian/patches/103-lp-325288.dpatch 2010-07-05 15:42:31 +0000
+++ debian/patches/103-lp-325288.dpatch 1970-01-01 00:00:00 +0000
@@ -1,17 +0,0 @@
1#! /bin/sh /usr/share/dpatch/dpatch-run
2## 103-lp-325288.dpatch by Bilal Akhtar <bilalakhtar96@yahoo.com>
3##
4## All lines beginning with `## DP:' are a description of the patch.
5## DP: This patch fixes launchpad bug 325288 by changing the runtime
6## DP: environment of file scripts/geo-code from /bin/sh to /bin/bash.
7
8@DPATCH@
9diff -urNad gpsdrive~/scripts/geo-code gpsdrive/scripts/geo-code
10--- gpsdrive~/scripts/geo-code 2010-07-05 13:13:11.334553356 +0300
11+++ gpsdrive/scripts/geo-code 2010-07-05 13:13:19.202560140 +0300
12@@ -1,4 +1,4 @@
13-#!/bin/sh
14+#!/bin/bash
15
16 #
17 # geo-code: Convert a street address into a latitude/longitude
180
=== added file 'debian/patches/103-no-textquery.dpatch'
--- debian/patches/103-no-textquery.dpatch 1970-01-01 00:00:00 +0000
+++ debian/patches/103-no-textquery.dpatch 2010-07-28 08:11:20 +0000
@@ -0,0 +1,18 @@
1#! /bin/sh /usr/share/dpatch/dpatch-run
2## 103-no-textquery.dpatch by Francesco Paolo Lovergine <frankie@debian.org>
3##
4## All lines beginning with `## DP:' are a description of the patch.
5## DP: No description.
6
7@DPATCH@
8diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' gpsdrive-2.10pre7~/scripts/osm/perl_lib/Geo/Gpsdrive/getstreet.pm gpsdrive-2.10pre7/scripts/osm/perl_lib/Geo/Gpsdrive/getstreet.pm
9--- gpsdrive-2.10pre7~/scripts/osm/perl_lib/Geo/Gpsdrive/getstreet.pm 2009-06-14 15:57:25.000000000 +0200
10+++ gpsdrive-2.10pre7/scripts/osm/perl_lib/Geo/Gpsdrive/getstreet.pm 2010-03-08 10:47:16.000000000 +0100
11@@ -2,7 +2,6 @@
12 #noch nicht alle variablen angepasst
13 use LWP::UserAgent;
14 use WWW::Mechanize;
15-use Text::Query;
16 use Getopt::Long; #maybe not needed any more
17 use Pod::Usage;
18 use DBI;
019
=== added file 'debian/patches/104-lp-325288.dpatch'
--- debian/patches/104-lp-325288.dpatch 1970-01-01 00:00:00 +0000
+++ debian/patches/104-lp-325288.dpatch 2010-07-28 08:11:20 +0000
@@ -0,0 +1,17 @@
1#! /bin/sh /usr/share/dpatch/dpatch-run
2## 104-lp-325288.dpatch by Bilal Akhtar <bilalakhtar96@yahoo.com>
3##
4## All lines beginning with `## DP:' are a description of the patch.
5## DP: This patch fixes launchpad bug 325288 by changing the runtime
6## DP: environment of file scripts/geo-code from /bin/sh to /bin/bash.
7
8@DPATCH@
9diff -urNad gpsdrive~/scripts/geo-code gpsdrive/scripts/geo-code
10--- gpsdrive~/scripts/geo-code 2010-07-05 13:13:11.334553356 +0300
11+++ gpsdrive/scripts/geo-code 2010-07-05 13:13:19.202560140 +0300
12@@ -1,4 +1,4 @@
13-#!/bin/sh
14+#!/bin/bash
15
16 #
17 # geo-code: Convert a street address into a latitude/longitude
018
=== added file 'debian/patches/gpsdrive2.10pre7_osm_proj.patch'
--- debian/patches/gpsdrive2.10pre7_osm_proj.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/gpsdrive2.10pre7_osm_proj.patch 2010-07-28 08:11:20 +0000
@@ -0,0 +1,572 @@
1#! /bin/sh /usr/share/dpatch/dpatch-run
2## gpsdrive2.10pre7_osm_proj.patch by H. Bowman <hamish_b yahoo com>
3##
4## DP: Fix OpenStreetMap projection handling (backport from upstream)
5
6@DPATCH@
7Index: src/map_download.c
8===================================================================
9--- src/map_download.c (revision 2476)
10+++ src/map_download.c (revision 2477)
11@@ -61,8 +61,8 @@
12 # endif
13
14
15-#include <gpsdrive.h>
16-#include <map_handler.h>
17+#include "gpsdrive.h"
18+#include "map_handler.h"
19 #include "gpsdrive_config.h"
20 #include "gui.h"
21 #include "map_download.h"
22@@ -133,24 +133,20 @@
23 MAPSOURCE_LANDSAT, "1 : 50 million", 0, 50000000,
24
25 MAPSOURCE_OSM_TAH, "OpenStreetMap Tiles@Home", -1, -1,
26- MAPSOURCE_OSM_TAH, "1 : 147 456 000", 1, 256*576000,
27- MAPSOURCE_OSM_TAH, "1 : 73 728 000", 2, 128*576000,
28- MAPSOURCE_OSM_TAH, "1 : 36 864 000", 3, 64*576000,
29- MAPSOURCE_OSM_TAH, "1 : 18 432 000", 4, 32*576000,
30- MAPSOURCE_OSM_TAH, "1 : 9 216 000", 5, 16*576000,
31- MAPSOURCE_OSM_TAH, "1 : 4 608 000", 6, 8*576000,
32- MAPSOURCE_OSM_TAH, "1 : 2 304 000", 7, 4*576000,
33- MAPSOURCE_OSM_TAH, "1 : 1 152 000", 8, 2*576000,
34-
35- MAPSOURCE_OSM_TAH, "1 : 576 000", 9, 576000,
36- MAPSOURCE_OSM_TAH, "1 : 288 000", 10, 288000,
37- MAPSOURCE_OSM_TAH, "1 : 144 000", 11, 144000,
38- MAPSOURCE_OSM_TAH, "1 : 72 000", 12, 72000,
39- MAPSOURCE_OSM_TAH, "1 : 36 000", 13, 36000,
40- MAPSOURCE_OSM_TAH, "1 : 18 000", 14, 18000,
41- MAPSOURCE_OSM_TAH, "1 : 9 000", 15, 9000,
42- MAPSOURCE_OSM_TAH, "1 : 4 500", 16, 4500,
43- MAPSOURCE_OSM_TAH, "1 : 2 250", 17, 2250,
44+ /* scale varies with latitude, so this is just a rough guide
45+ which will only be valid for mid-lats */
46+ /* Octave code: for lat=0:5:75; disp( [lat (a * 2*pi *pixelfact * cos(lat * pi/180)) / (256*2^9)]); end */
47+ MAPSOURCE_OSM_TAH, "1 : 2 500", 17, 2250,
48+ MAPSOURCE_OSM_TAH, "1 : 5 000", 16, 4500,
49+ MAPSOURCE_OSM_TAH, "1 : 10 000", 15, 9000,
50+ MAPSOURCE_OSM_TAH, "1 : 20 000", 14, 18000,
51+ MAPSOURCE_OSM_TAH, "1 : 40 000", 13, 36000,
52+ MAPSOURCE_OSM_TAH, "1 : 75 000", 12, 72000,
53+ MAPSOURCE_OSM_TAH, "1 : 150 000", 11, 144000,
54+ MAPSOURCE_OSM_TAH, "1 : 300 000", 10, 288000,
55+ MAPSOURCE_OSM_TAH, "1 : 600 000", 9, 576000,
56+ /* the distortion gets too bad at scales wider than 1:500k
57+ It would be more accurate to stop earlier, but we compromise */
58 MAPSOURCE_N_ITEMS, "", 0, 0
59 };
60
61@@ -165,7 +161,23 @@
62 gtk_entry_set_text (GTK_ENTRY (lon_entry), lon);
63 }
64
65+/* *****************************************************************************
66+ * calculate the local map scale based on Web Tile zoom level and latitude
67+ */
68+double
69+calc_webtile_scale (double lat, int zoom)
70+{
71+ double scale;
72+ double a = 6378137.0; /* major radius of WGS84 ellipsoid (meters) */
73
74+ scale = (a * 2*M_PI * cos(DEG2RAD(lat)) * PIXELFACT) / (256 * pow(2,zoom));
75+
76+ if (mydebug > 3)
77+ g_print ("Tile scale: %.2f\n", scale);
78+
79+ return scale;
80+}
81+
82 /* *****************************************************************************
83 * callback to set paramaters for map to download
84 */
85@@ -195,9 +207,13 @@
86 3, &mapdl_scale, -1);
87 /* TODO: determine map_ or top_ proj at this point so drawdownloadrectangle()
88 * knows how big to draw the green preview box */
89+ if (local_config.mapsource_type == MAPSOURCE_OSM_TAH)
90+ mapdl_scale = (int)calc_webtile_scale(mapdl_lat, mapdl_zoom);
91+
92 if (mydebug > 3)
93 g_print ("new map scale/zoom level: %d / %d\n",
94 mapdl_scale, mapdl_zoom);
95+
96 local_config.mapsource_scale = gtk_combo_box_get_active (GTK_COMBO_BOX (scale_combobox));
97 current.needtosave = TRUE;
98 }
99@@ -439,6 +455,7 @@
100 gchar file_path[512];
101 gchar path[40];
102 gchar img_fmt[4];
103+ gchar scale_str[40];
104
105 if (mapdl_active)
106 return TRUE;
107@@ -450,11 +467,14 @@
108 g_strlcpy (path, "landsat", sizeof (path));
109 g_strlcpy (img_fmt, "jpg", sizeof (img_fmt));
110 mapdl_geturl_landsat ();
111+ g_snprintf (scale_str, sizeof (scale_str), "%d", mapdl_scale);
112 break;
113 case MAPSOURCE_OSM_TAH:
114 g_strlcpy (path, "openstreetmap_tah", sizeof (path));
115 g_strlcpy (img_fmt, "png", sizeof (img_fmt));
116 mapdl_geturl_osm_tah ();
117+ mapdl_scale = (int)calc_webtile_scale(mapdl_lat, mapdl_zoom);
118+ g_snprintf (scale_str, sizeof (scale_str), "%d", mapdl_zoom);
119 break;
120 default:
121 return TRUE;
122@@ -464,10 +484,11 @@
123 g_print (" download url:\n%s\n", mapdl_url);
124
125 /* set file path and create directory if necessary */
126-
127-
128- g_snprintf (file_path, sizeof (file_path), "%s%s/%d/%.0f/%.0f/",
129- local_config.dir_maps, path, mapdl_scale, mapdl_lat, mapdl_lon);
130+
131+ g_snprintf (file_path, sizeof (file_path), "%s%s/%s/%.0f/%.0f/",
132+ local_config.dir_maps, path, scale_str, mapdl_lat, mapdl_lon);
133+
134+
135 if(!g_file_test (file_path, G_FILE_TEST_IS_DIR))
136 {
137 if (g_mkdir_with_parents (file_path, 0700))
138@@ -477,14 +498,15 @@
139 }
140
141 /* complete filename */
142- g_snprintf (mapdl_file_w_path, sizeof (mapdl_file_w_path), "%s%s_%d_%5.3f_%5.3f.%s",
143- file_path, mapdl_proj, mapdl_scale, mapdl_lat, mapdl_lon, img_fmt);
144+ g_snprintf (mapdl_file_w_path, sizeof (mapdl_file_w_path), "%s%s_%s_%5.3f_%5.3f.%s",
145+ file_path, mapdl_proj, scale_str, mapdl_lat, mapdl_lon, img_fmt);
146
147 if (mydebug > 10)
148 g_print (" filename: %s\n", mapdl_file_w_path);
149
150 gtk_progress_bar_set_text (GTK_PROGRESS_BAR (mapdl_progress),
151 _("Loading Map..."));
152+
153 mapdl_abort = FALSE;
154 mapdl_download ();
155
156Index: src/map_download.h
157===================================================================
158--- src/map_download.h (revision 2476)
159+++ src/map_download.h (revision 2477)
160@@ -1,10 +1,9 @@
161 /***********************************************************************
162
163 Copyright (c) 2008 Guenther Meyer <d.s.e (at) sordidmusic.com>
164-
165 Website: www.gpsdrive.de/
166
167-Disclaimer: Please do not use for navigation.
168+Disclaimer: Please do not use as a primary means of navigation.
169
170 This program is free software; you can redistribute it and/or modify
171 it under the terms of the GNU General Public License as published by
172@@ -36,5 +35,6 @@
173 void mapdl_set_coords (gchar *lat, gchar *lon);
174 gint mapdl_init (void);
175 gint mapdl_cleanup (void);
176+double calc_webtile_scale (double, int);
177
178 #endif /* GPSDRIVE_MAP_DOWNLOAD_H */
179Index: scripts/gpsfetchmap.pl
180===================================================================
181--- scripts/gpsfetchmap.pl (revision 2479)
182+++ scripts/gpsfetchmap.pl (revision 2480)
183@@ -47,6 +47,7 @@
184 modified (Jul 2007) by Maciek Kaliszewski <mkalkal\@interia.pl>
185 modified (Oct 2007) by Andreas Putzo <andreas\@putzo.net>
186 modified (Jan 2008) by Gernot Hillier <gernot\@hillier.de> (added Openstreetmap support)
187+modified (Aug 2009) by Hamish Bowman <hamish_b yahoo com> (fix OSM+WMS map scales)
188 Version svn-$Version
189 ";
190
191@@ -151,24 +152,20 @@
192 10000000 =>10000000,
193 50000000 =>50000000,
194 },
195+# Web Map Tiles scale varies with latitude by the formula
196+# (a * 2*pi * PIXELFACT * cos(lat * pi/180)) / (256 * 2^zoom)
197+# where a is major radius of the Earth according to the WGS84 ellipsoid definition.
198+# zoom levels lower than 9 (~1:500k) badly distort the Mercator so are not offered.
199 openstreetmap_tah => {
200- 256*576000 => 1,
201- 128*576000 => 2,
202- 64*576000 => 3,
203- 32*576000 => 4,
204- 16*576000 => 5,
205- 8*576000 => 6,
206- 4*576000 => 7,
207- 2*576000 => 8,
208- 576000 => 9,
209- 288000 => 10,
210- 144000 => 11,
211- 72000 => 12,
212- 36000 => 13,
213- 18000 => 14,
214- 9000 => 15,
215- 4500 => 16,
216- 2250 => 17
217+ 600000 => 9,
218+ 300000 => 10,
219+ 150000 => 11,
220+ 75000 => 12,
221+ 40000 => 13,
222+ 20000 => 14,
223+ 10000 => 15,
224+ 5000 => 16,
225+ 2500 => 17
226 }
227 };
228
229@@ -240,8 +237,6 @@
230 $polite=1;
231 }
232
233-
234-
235 if ( $mapserver eq 'geoscience' )
236 {
237 $scale ||= join(",",keys %{$Scale2Zoom->{'geoscience'}});
238@@ -269,22 +264,24 @@
239 pod2usage(-verbose=>2) if $man;
240
241 sub append_koords($$$$); # {}
242+sub calc_webtile_scale ($$); # {}
243 sub check_coverage($); # {}
244 sub check_koord_file($); # {}
245 sub debug($); # {}
246+sub file_count($); # {}
247 sub geoscience_url($$$); # {}
248-sub landsat_url($$$); # {}
249-sub resize($$); #{}
250-sub file_count($); # {}
251 sub get_coords_for_route; # {}
252 sub get_coords_for_track($); # {}
253+sub get_gpsd_position(); # {}
254 sub get_waypoint($); # {}
255 sub is_map_file($); # {}
256+sub landsat_url($$$); # {}
257+sub openstreetmap_tah_url($$$); # {}
258 sub read_gpstool_map_file(); # {}
259 sub read_koord_file($); # {}
260+sub resize($$); # {}
261 sub update_gpsdrive_map_koord_file(); # {}
262 sub wget_map($$$); # {}
263-sub get_gpsd_position(); # {}
264
265 STDERR->autoflush(1);
266 STDOUT->autoflush(1);
267@@ -407,7 +404,9 @@
268
269 my ($existing,$wanted) = file_count($desired_locations);
270 print "You are about to download $wanted (".($existing+$wanted).") file(s).\n";
271-
272+if ($debug) {
273+ print "Politeness delay set to $polite seconds,\n";
274+}
275 if ( $mapserver eq 'geoscience' ){
276 print "+-----------------------------------------------------------+\n";
277 print "| Geoscience Maps are Copyright, Commonwealth of Australia |\n";
278@@ -419,6 +418,7 @@
279 print "+----------------------------------------------------------------+\n";
280 print "| Landsat maps are courtesy JPL/NASA's OnEarth WMS Global Mosaic |\n";
281 print "| Map prefix will be set automatically based on scale. |\n";
282+ print "+----------------------------------------------------------------+\n";
283 # By law, US Government data is without copyright.
284 }elsif ( $mapserver eq 'openstreetmap_tah' ){
285 print "+-----------------------------------------------------------+\n";
286@@ -427,6 +427,8 @@
287 print "| They are free for use under the terms of the |\n";
288 print "| Creative Commons \"Attribution-Share Alike 2.0 Generic\" |\n";
289 print "| license. See http://www.openstreetmap.org for details. |\n";
290+ print "+-----------------------------------------------------------+\n";
291+
292 } elsif ( ! $force) {
293 print "You may violating the map servers terms of use!\n";
294 print "Please use their service responsible!\n";
295@@ -654,14 +656,32 @@
296 ######################################################################
297 sub map_filename($$$){
298 my ($scale,$lati,$long) = @_;
299+
300+ my $mscale = $scale;
301+
302+ if ( $mapserver eq 'openstreetmap_tah' ) {
303+ my $zoom = undef;
304+ for my $s ( sort keys %{$Scale2Zoom->{openstreetmap_tah}} ) {
305+ next unless $s == $scale;
306+ $zoom = $Scale2Zoom->{openstreetmap_tah}->{$s};
307+ last;
308+ }
309+ unless ( $zoom ) {
310+ print "Error calculating Zoomlevel for Scale: $scale\n";
311+ return (undef);
312+ }
313+ $mscale = $zoom;
314+ }
315
316- my $filename = "$mapserver/$scale"
317+ my $filename = "$mapserver/$mscale"
318 ."/".int($lati)
319 # ."/".sprintf("%3.1f",$lati)
320 ."/".int($long)
321- ."/$FILEPREFIX$scale-$lati-$long.$fileext";
322- printf("Filename(%.0f,%.5f,%.5f): $filename\n",$scale,$lati,$long)
323+ ."/$FILEPREFIX$mscale-$lati-$long.$fileext";
324+
325+ printf("Filename(%.0f,%.5f,%.5f): $filename\n",$mscale,$lati,$long)
326 if $debug;
327+
328 return $filename;
329 }
330
331@@ -678,6 +698,9 @@
332 # mapblast/1000/047/047.0232/9/map_1000-047.0232-0009.8140.gif 47.02320 9.81400 1000
333 #my $filename = "$mapserver/$scale/".int($lati)."/".sprintf("%3.1f",$lati).
334 #"/".int($long)."/$FILEPREFIX$scale-$lati-$long.gif";
335+ if ($debug) {
336+ print "---------------\n";
337+ }
338
339 # redundant??
340 if ($mapserver eq 'landsat')
341@@ -1082,7 +1105,7 @@
342 $lon2 += 360;
343 }
344
345- debug( "landsat_url(LAT=$lat,LON=$lon,SCALE=$scale,FACTOR=$factor)");
346+ debug( "landsat_url(LAT=$lat,LON=$lon,SCALE=$scale)");
347
348 debug( "Calculated Lat1 $lat1");
349 debug( "Calculated Lat2 $lat2");
350@@ -1111,7 +1134,28 @@
351 return ($url,$scale);
352 }
353
354+
355 #############################################################################
356+# calculate the local map scale based on Web Tile zoom level and latitude
357+# This same formula is used by OSM, Google Maps, Microsoft Maps, ...
358+sub calc_webtile_scale ($$){
359+ my $lat = shift;
360+ my $zoom = shift;
361+
362+ # major radius of WGS84 ellipsoid (meters)
363+ my $a = $RADIUS_KM * 1000;
364+
365+ my $zscale = (2*$a*$PI * cos($lat*$D2R) * $PIXELFACT) / (256 * 2**$zoom);
366+
367+ if ($debug) {
368+ print "Tile scale: $zscale\n";
369+ }
370+
371+ return ($zscale);
372+}
373+
374+
375+#############################################################################
376 sub openstreetmap_tah_url($$$){
377 my $lati = shift;
378 my $long = shift;
379@@ -1122,7 +1166,7 @@
380 for my $s ( sort keys %{$Scale2Zoom->{openstreetmap_tah}} ) {
381 next unless $s == $scale;
382 $zoom = $Scale2Zoom->{openstreetmap_tah}->{$s};
383- $mapscale = $s;
384+ $mapscale = calc_webtile_scale($lati, $zoom);
385 last;
386 }
387
388@@ -1132,10 +1176,9 @@
389 }
390
391 if ($debug) {
392- print "\n";
393- print "Using openstreetmap_tah zoom ", $zoom, " for requested scale ", $scale, ":1 actual scale ", $mapscale, ":1\n";
394- print "lat: $lati\n";
395- print "lon: $long\n";
396+ print "Using openstreetmap_tah zoom ", $zoom, " for requested scale 1:", $scale, ". Actual scale 1:", $mapscale, "\n";
397+ print "cetner lat: $lati\n";
398+ print "cetner lon: $long\n";
399 }
400
401 my $url = "http://tah.openstreetmap.org/MapOf/?lat=$lati&long=$long&z=$zoom&w=1280&h=1024&format=png";
402@@ -1903,7 +1946,7 @@
403
404 gpsfetchmap -w <WAYPOINT NAME> -sc <SCALE> -a <#> -p
405
406-gpsfetchmap -la <latitude DD.DDDD> -lo <latitude DD.DDDD> -sc <SCALE> -a <#> -p
407+gpsfetchmap -la <latitude DD.DDDD> -lo <longitude DD.DDDD> -sc <SCALE> -a <#> -p
408
409 gpsfetchmap -sla <start latitude DD.DDDD> -endla <end latitude DD.DDDD> -slo <start longitude DD.DDDD> -endlo <end longitude DD.DDDD> -sc <SCALE> -a <#> -p
410
411@@ -1915,7 +1958,7 @@
412 [-la <latitude DD.DDDD>] [-lo <longitude DD.DDDD>]
413 [-sla <start latitude DD.DDDD>] [-endla <end latitude DD.DDDD>]
414 [-slo <start longitude DD.DDDD>] [-endlo <end longitude DD.DDDD>]
415- [-sc <SCALE>] [-a <#>] [-p] [-m <MAPSERVER>]
416+ [-sc <SCALE>] [-a <#>] [-p <#>] [-m <MAPSERVER>]
417 [-u <UNIT>] [-md <DIR>] [-W <FILE>] [-t <FILE>] [-r]
418 [-C <FILE>] [-P <PREFIX>] [-F] [-d] [-v] [-h] [-M] [-n] [-U] [-c]
419
420@@ -2000,7 +2043,7 @@
421 of longitude. 'units' is read from the configuration file (-C) or as defined
422 by (-u).
423
424-=item B<-p, --polite>
425+=item B<-p, --polite <#>>
426
427 This causes the program to sleep one second between downloads to be polite
428 to the mapserver. Takes an optional value of number of seconds to sleep.
429@@ -2117,6 +2160,13 @@
430
431 Prints the manual page and exits.
432
433+=back
434+
435+
436+=head1 OUTPUT
437+
438+=over 2
439+
440 =item B<Download>
441
442 When downloading Maps the output reads as folows:
443@@ -2130,5 +2180,16 @@
444
445 =back
446
447+
448+=head1 EXAMPLE
449+
450+Download all 1:10000 OpenStreetMaps in a 5 km radius around the
451+Sydney Convention Centre. Between tile downloads it will let
452+the server rest for 3 seconds.
453+
454+gpsfetchmap --mapserver openstreetmap_tah --polite 3 \
455+ --lat "-33.8753" --lon 151.2001 --scale 10000 \
456+ --area 5 --unit kilometers
457+
458 =cut
459
460Index: scripts/mapnik/gpsdrive_mapnik_gentiles-in.py
461===================================================================
462--- scripts/mapnik/gpsdrive_mapnik_gentiles-in.py (revision 2473)
463+++ scripts/mapnik/gpsdrive_mapnik_gentiles-in.py (revision 2479)
464@@ -7,14 +7,20 @@
465
466 Options:
467 -h, --help show this help
468- -b, --bbox boundingbox (lon,lat,lon,lat) - Be carefull! Quote negative values!
469- -s, --scale scale single/range
470- 1 = 147456000
471- 2 = 73728000
472- ...
473- 15 = 9000
474- 16 = 4500
475- 17 = 2250
476+ -b, --bbox boundingbox (minlon,minlat,maxlon,maxlat)
477+ - Be carefull! "Quote" negative values!
478+ -s, --scale scale single/range (zoom level or min-max)
479+ (below "9" Mercator becomes distorted;
480+ actual scale will vary with latitude)
481+ 9 - 1:600,000
482+ 10 - 1:300,000
483+ 11 - 1:150,000
484+ 12 - 1:75,000
485+ 13 - 1:40,000
486+ 14 - 1:20,000
487+ 15 - 1:10,000
488+ 16 - 1:5,000
489+ 17 - 1:2,500
490 --test testrun = generates Munich example
491
492 Examples:
493@@ -22,7 +28,7 @@
494 Munich:
495 gpsdrive_mapnik_gentiles.py -b 11.4,48.07,11.7,48.2 -s 10-16
496
497- World:
498+ World: (just to demonstrate lat/lon order; scale not recommended)
499 gpsdrive_mapnik_gentiles.py -b "-180.0,-90.0,180.0,90.0" -s 1-6
500 """
501
502@@ -32,12 +38,19 @@
503 import getopt
504 import string
505
506-zoom2scale = [728 * 576000,256 * 576000,128 * 576000,64 * 576000,32 * 576000,16 * 576000,8 * 576000,4 * 576000,2 * 576000,576000,288000,144000,72000,36000,18000,9000,4500,2250,1125]
507
508-
509 DEG_TO_RAD = pi/180
510 RAD_TO_DEG = 180/pi
511
512+def calc_scale (lat, zoom):
513+ # GpsDrive's hardcoded pixels per meter ratio
514+ PixelFact = 2817.947378
515+ # wgs84 major Earth axis
516+ a = 6378137.0
517+ dynscale = ( a * 2*pi * cos(lat * DEG_TO_RAD) * PixelFact ) / ( 256*pow(2,zoom) )
518+ print dynscale
519+ return dynscale
520+
521 def minmax (a,b,c):
522 a = max(a,b)
523 a = min(a,c)
524@@ -90,17 +103,28 @@
525 os.mkdir(tile_dir)
526
527 gprj = GoogleProjection(maxZoom+1)
528+
529 #m = Map(2 * 256,2 * 256)
530 m = Map(1280,1024)
531 load_map(m,mapfile)
532- prj = Projection("+proj=merc +datum=WGS84")
533-
534+
535+ #prj = Projection("+proj=merc +datum=WGS84")
536+ # What follows is from /usr/share/proj/esri.extra, EPSG:900913
537+ # "Chris' funny epsgish code for the google mercator"
538+ prj = Projection("+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs")
539+
540 ll0 = (bbox[0],bbox[3])
541 ll1 = (bbox[2],bbox[1])
542-
543+
544 for z in range(minZoom,maxZoom + 1):
545+ if z == 9:
546+ print "CAUTION: Mercator projection begins to be noticeably distorted at this zoom level."
547+ elif z < 9:
548+ print "WARNING: Mercator projection is very distorted at this zoom level."
549+
550 px0 = gprj.fromLLtoPixel(ll0,z)
551 px1 = gprj.fromLLtoPixel(ll1,z)
552+
553 for x in range(int(px0[0]/640.0),int(px1[0]/640.0)+1):
554 for y in range(int(px0[1]/512.0),int(px1[1]/512.0)+1):
555 p0 = gprj.fromPixelToLL((x * 640.0, (y+1) * 512.0),z)
556@@ -145,7 +169,7 @@
557 fh_mapkoord.write(tile_path + " ")
558 fh_mapkoord.write(str((p0[1] + p1[1]) / 2) + " ")
559 fh_mapkoord.write(str((p0[0] + p1[0]) / 2) + " ")
560- fh_mapkoord.write(str(zoom2scale[z]))
561+ fh_mapkoord.write(str( calc_scale( (p0[1] + p1[1])/2, z) ))
562 fh_mapkoord.write(" " + str(p0[1]) + " " + str(p0[0]))
563 fh_mapkoord.write(" " + str(p1[1]) + " " + str(p1[0]))
564 fh_mapkoord.write("\n")
565@@ -221,6 +245,7 @@
566
567 # check for correct values
568 if str(eval(bboxs[0])) != bboxs[0] or str(eval(bboxs[1])) != bboxs[1] or str(eval(bboxs[2])) != bboxs[2] or str(eval(bboxs[3])) != bboxs[3]:
569+ # rounding problems... what exactly is this supposed to be checking ???
570 sys.exit("Boundingbox invalid!")
571
572 if minZoom < 1 or minZoom > 17 or maxZoom < 1 and maxZoom > 17 or minZoom > maxZoom or int(minZoom) <> minZoom or int(maxZoom) <> maxZoom:
0573
=== modified file 'debian/rules'
--- debian/rules 2009-06-11 19:26:06 +0000
+++ debian/rules 2010-07-28 08:11:20 +0000
@@ -74,16 +74,10 @@
74 dh_testroot74 dh_testroot
75 rm -f build-arch-stamp build-indep-stamp75 rm -f build-arch-stamp build-indep-stamp
76 [ ! -f Makefile ] || $(MAKE) distclean76 [ ! -f Makefile ] || $(MAKE) distclean
77ifneq "$(wildcard /usr/share/misc/config.sub)" ""
78 cp -f /usr/share/misc/config.sub config.sub
79endif
80ifneq "$(wildcard /usr/share/misc/config.guess)" ""
81 cp -f /usr/share/misc/config.guess config.guess
82endif
83 dh_clean77 dh_clean
8478
85install: install-arch install-indep79install: install-arch install-indep
86 dh_clean -k80 dh_prep
8781
88install-arch: build-arch82install-arch: build-arch
89 dh_testdir83 dh_testdir

Subscribers

People subscribed via source and target branches

to all changes: