Merge lp:~bilalakhtar/ubuntu/maverick/gpsdrive/gpsdrive-merge-605350 into lp:ubuntu/maverick/gpsdrive
- Maverick (10.10)
- gpsdrive-merge-605350
- Merge into maverick
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 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ubuntu Sponsors | Pending | ||
Review via email: mp+31128@code.launchpad.net |
Commit message
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
1 | === modified file 'config.guess' |
2 | --- config.guess 2010-04-16 11:31:32 +0000 |
3 | +++ config.guess 2010-07-28 08:11:20 +0000 |
4 | @@ -56,8 +56,8 @@ |
5 | GNU config.guess ($timestamp) |
6 | |
7 | Originally written by Per Bothner. |
8 | -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, |
9 | -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
10 | +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
11 | +Free Software Foundation, Inc. |
12 | |
13 | This is free software; see the source for copying conditions. There is NO |
14 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
15 | @@ -161,7 +161,6 @@ |
16 | arm*) machine=arm-unknown ;; |
17 | sh3el) machine=shl-unknown ;; |
18 | sh3eb) machine=sh-unknown ;; |
19 | - sh5el) machine=sh5le-unknown ;; |
20 | *) machine=${UNAME_MACHINE_ARCH}-unknown ;; |
21 | esac |
22 | # The Operating System including object format, if it has switched |
23 | @@ -212,7 +211,7 @@ |
24 | echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} |
25 | exit ;; |
26 | macppc:MirBSD:*:*) |
27 | - echo powerpc-unknown-mirbsd${UNAME_RELEASE} |
28 | + echo powerppc-unknown-mirbsd${UNAME_RELEASE} |
29 | exit ;; |
30 | *:MirBSD:*:*) |
31 | echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} |
32 | @@ -324,30 +323,14 @@ |
33 | case `/usr/bin/uname -p` in |
34 | sparc) echo sparc-icl-nx7; exit ;; |
35 | esac ;; |
36 | - s390x:SunOS:*:*) |
37 | - echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
38 | - exit ;; |
39 | sun4H:SunOS:5.*:*) |
40 | echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
41 | exit ;; |
42 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
43 | echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
44 | exit ;; |
45 | - i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) |
46 | - eval $set_cc_for_build |
47 | - SUN_ARCH="i386" |
48 | - # If there is a compiler, see if it is configured for 64-bit objects. |
49 | - # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. |
50 | - # This test works for both compilers. |
51 | - if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then |
52 | - if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ |
53 | - (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ |
54 | - grep IS_64BIT_ARCH >/dev/null |
55 | - then |
56 | - SUN_ARCH="x86_64" |
57 | - fi |
58 | - fi |
59 | - echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
60 | + i86pc:SunOS:5.*:*) |
61 | + echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
62 | exit ;; |
63 | sun4*:SunOS:6*:*) |
64 | # According to config.sub, this is the proper way to canonicalize |
65 | @@ -548,7 +531,7 @@ |
66 | echo rs6000-ibm-aix3.2 |
67 | fi |
68 | exit ;; |
69 | - *:AIX:*:[456]) |
70 | + *:AIX:*:[45]) |
71 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
72 | if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then |
73 | IBM_ARCH=rs6000 |
74 | @@ -788,8 +771,6 @@ |
75 | case ${UNAME_MACHINE} in |
76 | pc98) |
77 | echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
78 | - amd64) |
79 | - echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
80 | *) |
81 | echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
82 | esac |
83 | @@ -797,7 +778,10 @@ |
84 | i*:CYGWIN*:*) |
85 | echo ${UNAME_MACHINE}-pc-cygwin |
86 | exit ;; |
87 | - *:MINGW*:*) |
88 | + i*:MINGW*:*) |
89 | + echo ${UNAME_MACHINE}-pc-mingw32 |
90 | + exit ;; |
91 | + i*:MSYS_NT-*:*:*) |
92 | echo ${UNAME_MACHINE}-pc-mingw32 |
93 | exit ;; |
94 | i*:windows32*:*) |
95 | @@ -807,18 +791,12 @@ |
96 | i*:PW*:*) |
97 | echo ${UNAME_MACHINE}-pc-pw32 |
98 | exit ;; |
99 | - *:Interix*:[3456]*) |
100 | - case ${UNAME_MACHINE} in |
101 | - x86) |
102 | - echo i586-pc-interix${UNAME_RELEASE} |
103 | - exit ;; |
104 | - EM64T | authenticamd | genuineintel) |
105 | - echo x86_64-unknown-interix${UNAME_RELEASE} |
106 | - exit ;; |
107 | - IA64) |
108 | - echo ia64-unknown-interix${UNAME_RELEASE} |
109 | - exit ;; |
110 | - esac ;; |
111 | + x86:Interix*:[345]*) |
112 | + echo i586-pc-interix${UNAME_RELEASE} |
113 | + exit ;; |
114 | + EM64T:Interix*:[345]*) |
115 | + echo x86_64-unknown-interix${UNAME_RELEASE} |
116 | + exit ;; |
117 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
118 | echo i${UNAME_MACHINE}-pc-mks |
119 | exit ;; |
120 | @@ -855,16 +833,6 @@ |
121 | echo ${UNAME_MACHINE}-pc-minix |
122 | exit ;; |
123 | arm*:Linux:*:*) |
124 | - eval $set_cc_for_build |
125 | - if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
126 | - | grep -q __ARM_EABI__ |
127 | - then |
128 | - echo ${UNAME_MACHINE}-unknown-linux-gnu |
129 | - else |
130 | - echo ${UNAME_MACHINE}-unknown-linux-gnueabi |
131 | - fi |
132 | - exit ;; |
133 | - avr32*:Linux:*:*) |
134 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
135 | exit ;; |
136 | cris:Linux:*:*) |
137 | @@ -931,9 +899,6 @@ |
138 | if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi |
139 | echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} |
140 | exit ;; |
141 | - padre:Linux:*:*) |
142 | - echo sparc-unknown-linux-gnu |
143 | - exit ;; |
144 | parisc:Linux:*:* | hppa:Linux:*:*) |
145 | # Look for CPU level |
146 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
147 | @@ -963,9 +928,6 @@ |
148 | x86_64:Linux:*:*) |
149 | echo x86_64-unknown-linux-gnu |
150 | exit ;; |
151 | - xtensa*:Linux:*:*) |
152 | - echo ${UNAME_MACHINE}-unknown-linux-gnu |
153 | - exit ;; |
154 | i*86:Linux:*:*) |
155 | # The BFD linker knows what the default object file format is, so |
156 | # first see if it will tell us. cd to the root directory to prevent |
157 | @@ -981,6 +943,17 @@ |
158 | elf32-i386) |
159 | TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" |
160 | ;; |
161 | + a.out-i386-linux) |
162 | + echo "${UNAME_MACHINE}-pc-linux-gnuaout" |
163 | + exit ;; |
164 | + coff-i386) |
165 | + echo "${UNAME_MACHINE}-pc-linux-gnucoff" |
166 | + exit ;; |
167 | + "") |
168 | + # Either a pre-BFD a.out linker (linux-gnuoldld) or |
169 | + # one that does not give us useful --help. |
170 | + echo "${UNAME_MACHINE}-pc-linux-gnuoldld" |
171 | + exit ;; |
172 | esac |
173 | # Determine whether the default compiler is a.out or elf |
174 | eval $set_cc_for_build |
175 | @@ -997,7 +970,7 @@ |
176 | LIBC=gnulibc1 |
177 | # endif |
178 | #else |
179 | - #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) |
180 | + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__sun) |
181 | LIBC=gnu |
182 | #else |
183 | LIBC=gnuaout |
184 | @@ -1090,11 +1063,8 @@ |
185 | pc:*:*:*) |
186 | # Left here for compatibility: |
187 | # uname -m prints for DJGPP always 'pc', but it prints nothing about |
188 | - # the processor, so we play safe by assuming i586. |
189 | - # Note: whatever this is, it MUST be the same as what config.sub |
190 | - # prints for the "djgpp" host, or else GDB configury will decide that |
191 | - # this is a cross-build. |
192 | - echo i586-pc-msdosdjgpp |
193 | + # the processor, so we play safe by assuming i386. |
194 | + echo i386-pc-msdosdjgpp |
195 | exit ;; |
196 | Intel:Mach:3*:*) |
197 | echo i386-pc-mach3 |
198 | @@ -1132,16 +1102,6 @@ |
199 | 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
200 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
201 | && { echo i486-ncr-sysv4; exit; } ;; |
202 | - NCR*:*:4.2:* | MPRAS*:*:4.2:*) |
203 | - OS_REL='.3' |
204 | - test -r /etc/.relid \ |
205 | - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
206 | - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
207 | - && { echo i486-ncr-sysv4.3${OS_REL}; exit; } |
208 | - /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
209 | - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } |
210 | - /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ |
211 | - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; |
212 | m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) |
213 | echo m68k-unknown-lynxos${UNAME_RELEASE} |
214 | exit ;; |
215 | @@ -1217,9 +1177,6 @@ |
216 | BePC:BeOS:*:*) # BeOS running on Intel PC compatible. |
217 | echo i586-pc-beos |
218 | exit ;; |
219 | - BePC:Haiku:*:*) # Haiku running on Intel PC compatible. |
220 | - echo i586-pc-haiku |
221 | - exit ;; |
222 | SX-4:SUPER-UX:*:*) |
223 | echo sx4-nec-superux${UNAME_RELEASE} |
224 | exit ;; |
225 | @@ -1229,15 +1186,6 @@ |
226 | SX-6:SUPER-UX:*:*) |
227 | echo sx6-nec-superux${UNAME_RELEASE} |
228 | exit ;; |
229 | - SX-7:SUPER-UX:*:*) |
230 | - echo sx7-nec-superux${UNAME_RELEASE} |
231 | - exit ;; |
232 | - SX-8:SUPER-UX:*:*) |
233 | - echo sx8-nec-superux${UNAME_RELEASE} |
234 | - exit ;; |
235 | - SX-8R:SUPER-UX:*:*) |
236 | - echo sx8r-nec-superux${UNAME_RELEASE} |
237 | - exit ;; |
238 | Power*:Rhapsody:*:*) |
239 | echo powerpc-apple-rhapsody${UNAME_RELEASE} |
240 | exit ;; |
241 | @@ -1328,9 +1276,6 @@ |
242 | i*86:rdos:*:*) |
243 | echo ${UNAME_MACHINE}-pc-rdos |
244 | exit ;; |
245 | - i*86:AROS:*:*) |
246 | - echo ${UNAME_MACHINE}-pc-aros |
247 | - exit ;; |
248 | esac |
249 | |
250 | #echo '(No uname command or uname output not recognized.)' 1>&2 |
251 | @@ -1491,9 +1436,9 @@ |
252 | the operating system you are using. It is advised that you |
253 | download the most up to date version of the config scripts from |
254 | |
255 | - http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD |
256 | + http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess |
257 | and |
258 | - http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD |
259 | + http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub |
260 | |
261 | If the version you run ($0) is already up to date, please |
262 | send the following data and any information you think might be |
263 | |
264 | === modified file 'config.sub' |
265 | --- config.sub 2010-04-16 11:31:32 +0000 |
266 | +++ config.sub 2010-07-28 08:11:20 +0000 |
267 | @@ -72,8 +72,8 @@ |
268 | version="\ |
269 | GNU config.sub ($timestamp) |
270 | |
271 | -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, |
272 | -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
273 | +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
274 | +Free Software Foundation, Inc. |
275 | |
276 | This is free software; see the source for copying conditions. There is NO |
277 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
278 | @@ -122,7 +122,6 @@ |
279 | case $maybe_os in |
280 | nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ |
281 | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ |
282 | - kopensolaris*-gnu* | \ |
283 | storm-chaos* | os2-emx* | rtmk-nova*) |
284 | os=-$maybe_os |
285 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
286 | @@ -245,24 +244,20 @@ |
287 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
288 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
289 | | am33_2.0 \ |
290 | - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ |
291 | + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ |
292 | | bfin \ |
293 | | c4x | clipper \ |
294 | | d10v | d30v | dlx | dsp16xx \ |
295 | - | fido | fr30 | frv \ |
296 | + | fr30 | frv \ |
297 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
298 | | i370 | i860 | i960 | ia64 \ |
299 | | ip2k | iq2000 \ |
300 | - | lm32 \ |
301 | - | m32c | m32r | m32rle | m68000 | m68k | m88k \ |
302 | - | maxq | mb | microblaze | mcore | mep | metag \ |
303 | + | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \ |
304 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
305 | | mips16 \ |
306 | | mips64 | mips64el \ |
307 | - | mips64octeon | mips64octeonel \ |
308 | + | mips64vr | mips64vrel \ |
309 | | mips64orion | mips64orionel \ |
310 | - | mips64r5900 | mips64r5900el \ |
311 | - | mips64vr | mips64vrel \ |
312 | | mips64vr4100 | mips64vr4100el \ |
313 | | mips64vr4300 | mips64vr4300el \ |
314 | | mips64vr5000 | mips64vr5000el \ |
315 | @@ -275,7 +270,6 @@ |
316 | | mipsisa64sr71k | mipsisa64sr71kel \ |
317 | | mipstx39 | mipstx39el \ |
318 | | mn10200 | mn10300 \ |
319 | - | moxie \ |
320 | | mt \ |
321 | | msp430 \ |
322 | | nios | nios2 \ |
323 | @@ -284,17 +278,19 @@ |
324 | | pdp10 | pdp11 | pj | pjl \ |
325 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
326 | | pyramid \ |
327 | - | score \ |
328 | - | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
329 | + | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ |
330 | | sh64 | sh64le \ |
331 | - | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
332 | - | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
333 | - | spu | strongarm \ |
334 | + | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ |
335 | + | sparcv8 | sparcv9 | sparcv9b \ |
336 | + | strongarm \ |
337 | | tahoe | thumb | tic4x | tic80 | tron \ |
338 | | v850 | v850e \ |
339 | | we32k \ |
340 | - | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ |
341 | - | z8k | z80) |
342 | + | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ |
343 | + | z8k) |
344 | + basic_machine=$basic_machine-unknown |
345 | + ;; |
346 | + m32c) |
347 | basic_machine=$basic_machine-unknown |
348 | ;; |
349 | m6811 | m68hc11 | m6812 | m68hc12) |
350 | @@ -326,28 +322,25 @@ |
351 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
352 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
353 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
354 | - | avr-* | avr32-* \ |
355 | + | avr-* \ |
356 | | bfin-* | bs2000-* \ |
357 | | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
358 | | clipper-* | craynv-* | cydra-* \ |
359 | | d10v-* | d30v-* | dlx-* \ |
360 | | elxsi-* \ |
361 | - | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ |
362 | + | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ |
363 | | h8300-* | h8500-* \ |
364 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
365 | | i*86-* | i860-* | i960-* | ia64-* \ |
366 | | ip2k-* | iq2000-* \ |
367 | - | lm32-* \ |
368 | - | m32c-* | m32r-* | m32rle-* \ |
369 | + | m32r-* | m32rle-* \ |
370 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
371 | - | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ |
372 | + | m88110-* | m88k-* | maxq-* | mcore-* \ |
373 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
374 | | mips16-* \ |
375 | | mips64-* | mips64el-* \ |
376 | - | mips64octeon-* | mips64octeonel-* \ |
377 | + | mips64vr-* | mips64vrel-* \ |
378 | | mips64orion-* | mips64orionel-* \ |
379 | - | mips64r5900-* | mips64r5900el-* \ |
380 | - | mips64vr-* | mips64vrel-* \ |
381 | | mips64vr4100-* | mips64vr4100el-* \ |
382 | | mips64vr4300-* | mips64vr4300el-* \ |
383 | | mips64vr5000-* | mips64vr5000el-* \ |
384 | @@ -369,24 +362,22 @@ |
385 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
386 | | pyramid-* \ |
387 | | romp-* | rs6000-* \ |
388 | - | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
389 | + | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \ |
390 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
391 | - | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
392 | + | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ |
393 | | sparclite-* \ |
394 | - | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ |
395 | + | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ |
396 | | tahoe-* | thumb-* \ |
397 | - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ |
398 | + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
399 | | tron-* \ |
400 | | v850-* | v850e-* | vax-* \ |
401 | | we32k-* \ |
402 | - | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ |
403 | - | xstormy16-* | xtensa*-* \ |
404 | + | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ |
405 | + | xstormy16-* | xtensa-* \ |
406 | | ymp-* \ |
407 | - | z8k-* | z80-*) |
408 | + | z8k-*) |
409 | ;; |
410 | - # Recognize the basic CPU types without company name, with glob match. |
411 | - xtensa*) |
412 | - basic_machine=$basic_machine-unknown |
413 | + m32c-*) |
414 | ;; |
415 | # Recognize the various machine names and aliases which stand |
416 | # for a CPU type and a company and sometimes even an OS. |
417 | @@ -450,10 +441,6 @@ |
418 | basic_machine=m68k-apollo |
419 | os=-bsd |
420 | ;; |
421 | - aros) |
422 | - basic_machine=i386-pc |
423 | - os=-aros |
424 | - ;; |
425 | aux) |
426 | basic_machine=m68k-apple |
427 | os=-aux |
428 | @@ -478,10 +465,6 @@ |
429 | basic_machine=c90-cray |
430 | os=-unicos |
431 | ;; |
432 | - cegcc) |
433 | - basic_machine=arm-unknown |
434 | - os=-cegcc |
435 | - ;; |
436 | convex-c1) |
437 | basic_machine=c1-convex |
438 | os=-bsd |
439 | @@ -510,8 +493,8 @@ |
440 | basic_machine=craynv-cray |
441 | os=-unicosmp |
442 | ;; |
443 | - cr16) |
444 | - basic_machine=cr16-unknown |
445 | + cr16c) |
446 | + basic_machine=cr16c-unknown |
447 | os=-elf |
448 | ;; |
449 | crds | unos) |
450 | @@ -549,10 +532,6 @@ |
451 | basic_machine=m88k-motorola |
452 | os=-sysv3 |
453 | ;; |
454 | - dicos) |
455 | - basic_machine=i686-pc |
456 | - os=-dicos |
457 | - ;; |
458 | djgpp) |
459 | basic_machine=i586-pc |
460 | os=-msdosdjgpp |
461 | @@ -707,14 +686,6 @@ |
462 | basic_machine=m68k-isi |
463 | os=-sysv |
464 | ;; |
465 | - m68knommu) |
466 | - basic_machine=m68k-unknown |
467 | - os=-linux |
468 | - ;; |
469 | - m68knommu-*) |
470 | - basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` |
471 | - os=-linux |
472 | - ;; |
473 | m88k-omron*) |
474 | basic_machine=m88k-omron |
475 | ;; |
476 | @@ -730,10 +701,6 @@ |
477 | basic_machine=i386-pc |
478 | os=-mingw32 |
479 | ;; |
480 | - mingw32ce) |
481 | - basic_machine=arm-unknown |
482 | - os=-mingw32ce |
483 | - ;; |
484 | miniframe) |
485 | basic_machine=m68000-convergent |
486 | ;; |
487 | @@ -860,14 +827,6 @@ |
488 | basic_machine=i860-intel |
489 | os=-osf |
490 | ;; |
491 | - parisc) |
492 | - basic_machine=hppa-unknown |
493 | - os=-linux |
494 | - ;; |
495 | - parisc-*) |
496 | - basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` |
497 | - os=-linux |
498 | - ;; |
499 | pbd) |
500 | basic_machine=sparc-tti |
501 | ;; |
502 | @@ -969,10 +928,6 @@ |
503 | sb1el) |
504 | basic_machine=mipsisa64sb1el-unknown |
505 | ;; |
506 | - sde) |
507 | - basic_machine=mipsisa32-sde |
508 | - os=-elf |
509 | - ;; |
510 | sei) |
511 | basic_machine=mips-sei |
512 | os=-seiux |
513 | @@ -984,9 +939,6 @@ |
514 | basic_machine=sh-hitachi |
515 | os=-hms |
516 | ;; |
517 | - sh5el) |
518 | - basic_machine=sh5le-unknown |
519 | - ;; |
520 | sh64) |
521 | basic_machine=sh64-unknown |
522 | ;; |
523 | @@ -1076,10 +1028,6 @@ |
524 | basic_machine=tic6x-unknown |
525 | os=-coff |
526 | ;; |
527 | - tile*) |
528 | - basic_machine=tile-unknown |
529 | - os=-linux-gnu |
530 | - ;; |
531 | tx39) |
532 | basic_machine=mipstx39-unknown |
533 | ;; |
534 | @@ -1155,10 +1103,6 @@ |
535 | basic_machine=z8k-unknown |
536 | os=-sim |
537 | ;; |
538 | - z80-*-coff) |
539 | - basic_machine=z80-unknown |
540 | - os=-sim |
541 | - ;; |
542 | none) |
543 | basic_machine=none-none |
544 | os=-none |
545 | @@ -1197,10 +1141,10 @@ |
546 | we32k) |
547 | basic_machine=we32k-att |
548 | ;; |
549 | - sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) |
550 | + sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) |
551 | basic_machine=sh-unknown |
552 | ;; |
553 | - sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) |
554 | + sparc | sparcv8 | sparcv9 | sparcv9b) |
555 | basic_machine=sparc-sun |
556 | ;; |
557 | cydra) |
558 | @@ -1269,9 +1213,8 @@ |
559 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
560 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ |
561 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ |
562 | - | -kopensolaris* \ |
563 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
564 | - | -aos* | -aros* \ |
565 | + | -aos* \ |
566 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
567 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
568 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
569 | @@ -1280,7 +1223,7 @@ |
570 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
571 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
572 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
573 | - | -chorusos* | -chorusrdb* | -cegcc* \ |
574 | + | -chorusos* | -chorusrdb* \ |
575 | | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
576 | | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ |
577 | | -uxpv* | -beos* | -mpeix* | -udk* \ |
578 | @@ -1290,7 +1233,7 @@ |
579 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
580 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
581 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
582 | - | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) |
583 | + | -skyos* | -haiku* | -rdos*) |
584 | # Remember, each alternative MUST END IN *, to match a version number. |
585 | ;; |
586 | -qnx*) |
587 | @@ -1420,9 +1363,6 @@ |
588 | -zvmoe) |
589 | os=-zvmoe |
590 | ;; |
591 | - -dicos*) |
592 | - os=-dicos |
593 | - ;; |
594 | -none) |
595 | ;; |
596 | *) |
597 | @@ -1445,12 +1385,6 @@ |
598 | # system, and we'll never get to this point. |
599 | |
600 | case $basic_machine in |
601 | - score-*) |
602 | - os=-elf |
603 | - ;; |
604 | - spu-*) |
605 | - os=-elf |
606 | - ;; |
607 | *-acorn) |
608 | os=-riscix1.2 |
609 | ;; |
610 | @@ -1460,9 +1394,9 @@ |
611 | arm*-semi) |
612 | os=-aout |
613 | ;; |
614 | - c4x-* | tic4x-*) |
615 | - os=-coff |
616 | - ;; |
617 | + c4x-* | tic4x-*) |
618 | + os=-coff |
619 | + ;; |
620 | # This must come before the *-dec entry. |
621 | pdp10-*) |
622 | os=-tops20 |
623 | @@ -1488,9 +1422,6 @@ |
624 | m68*-cisco) |
625 | os=-aout |
626 | ;; |
627 | - mep-*) |
628 | - os=-elf |
629 | - ;; |
630 | mips*-cisco) |
631 | os=-elf |
632 | ;; |
633 | |
634 | === modified file 'debian/changelog' |
635 | --- debian/changelog 2010-07-11 20:22:33 +0000 |
636 | +++ debian/changelog 2010-07-28 08:11:20 +0000 |
637 | @@ -1,3 +1,35 @@ |
638 | +gpsdrive (2.10~pre4-6.dfsg-5ubuntu1) maverick; urgency=low |
639 | + |
640 | + * Merge from Debian unstable (LP: #605350), remaining changes: |
641 | + - scripts/geo-code: Changed executing environment from /bin/sh |
642 | + to /bin/bash. |
643 | + - Dropped changes: |
644 | + + Build with libmysqlclient16-dev. |
645 | + |
646 | + -- Bilal Akhtar <bilalakhtar96@yahoo.com> Mon, 26 Jul 2010 12:03:38 +0530 |
647 | + |
648 | +gpsdrive (2.10~pre4-6.dfsg-5) unstable; urgency=low |
649 | + |
650 | + * Added 103-no-textquery patch to remove Text::Query use. Removed |
651 | + dependency on the libtext-query-perl package. |
652 | + Thanks Jonathan Yu. |
653 | + * Revised debian/control for a better layout. |
654 | + * Vcs-* fields now point the trunk branch. |
655 | + |
656 | + -- Francesco Paolo Lovergine <frankie@debian.org> Mon, 08 Mar 2010 11:23:39 +0100 |
657 | + |
658 | +gpsdrive (2.10~pre4-6.dfsg-4) unstable; urgency=low |
659 | + |
660 | + * Do not depend on versioned python. |
661 | + * Policy bumped to 3.8.4. |
662 | + * Moved to libmysqlclient-dev build-dep. |
663 | + * Now suggests postgresql-8.4-postgis. |
664 | + * Debhelper level moved to 7. |
665 | + * Removed superfluous config.{guess,sub} override. |
666 | + * Added me as an uploader. |
667 | + |
668 | + -- Francesco Paolo Lovergine <frankie@debian.org> Thu, 04 Feb 2010 16:53:01 +0100 |
669 | + |
670 | gpsdrive (2.10~pre4-6.dfsg-3ubuntu5) maverick; urgency=low |
671 | |
672 | * scripts/geo-code: Changed executing environment from /bin/sh |
673 | @@ -113,6 +145,7 @@ |
674 | |
675 | -- Andreas Putzo <andreas@putzo.net> Sat, 19 Jul 2008 20:01:39 +0000 |
676 | |
677 | +>>>>>>> .r2096 |
678 | gpsdrive (2.10~pre4-3) unstable; urgency=low |
679 | |
680 | * Fix regression of last upload in the mapnik handling. |
681 | |
682 | === modified file 'debian/compat' |
683 | --- debian/compat 2007-10-16 20:00:05 +0000 |
684 | +++ debian/compat 2010-07-28 08:11:20 +0000 |
685 | @@ -1,1 +1,1 @@ |
686 | -5 |
687 | +7 |
688 | |
689 | === modified file 'debian/control' |
690 | --- debian/control 2010-04-16 11:31:32 +0000 |
691 | +++ debian/control 2010-07-28 08:11:20 +0000 |
692 | @@ -3,19 +3,20 @@ |
693 | Priority: optional |
694 | Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> |
695 | XSBC-Original-Maintainer: Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org> |
696 | -Uploaders: Andreas Putzo <andreas@putzo.net> |
697 | +Uploaders: Andreas Putzo <andreas@putzo.net>, Francesco Paolo Lovergine <frankie@debian.org> |
698 | DM-Upload-Allowed: yes |
699 | -Build-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-dev |
700 | -Standards-Version: 3.8.0 |
701 | +Build-Depends: debhelper (>= 7), automake1.9, libtool, pkg-config, libpcre3-dev, libgtk2.0-dev,libart-2.0-dev, libxml2-dev, libmysqlclient-dev, |
702 | + autotools-dev, dpatch, libmapnik-dev (>= 0.6), libboost-dev, libboost-filesystem-dev, libboost-serialization-dev, libdbus-glib-1-dev |
703 | +Standards-Version: 3.8.4 |
704 | Homepage: http://gpsdrive.de |
705 | -Vcs-Svn: svn://svn.debian.org/svn/pkg-grass/packages/gpsdrive/ |
706 | -Vcs-Browser: http://svn.debian.org/viewsvn/pkg-grass/packages/gpsdrive/ |
707 | +Vcs-Svn: svn://svn.debian.org/svn/pkg-grass/packages/gpsdrive/trunk |
708 | +Vcs-Browser: http://svn.debian.org/viewsvn/pkg-grass/packages/gpsdrive/trunk |
709 | |
710 | Package: gpsdrive |
711 | Architecture: any |
712 | Depends: ${shlibs:Depends}, ${misc:Depends}, gpsdrive-data, openstreetmap-map-icons-square, openstreetmap-map-icons-classic |
713 | Recommends: gpsd, gpsdrive-scripts |
714 | -Suggests: flite | festival, osm2pgsql, mysql-server, postgresql-8.3-postgis |
715 | +Suggests: flite | festival, osm2pgsql, mysql-server, postgresql-8.4-postgis |
716 | Description: Car navigation system |
717 | Map-based navigation system that displays the current |
718 | position provided by a GPS receiver on a zoomable map. |
719 | @@ -39,7 +40,9 @@ |
720 | |
721 | Package: gpsdrive-scripts |
722 | Architecture: all |
723 | -Depends: 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-tk |
724 | +Depends: gpsdrive, ${perl:Depends}, python, python-imaging, python-mapnik, libdbi-perl, libdbd-mysql-perl, libdate-manip-perl, libfile-slurp-perl, |
725 | + libmime-base64-perl, libtime-local-perl, libwww-curl-perl, libwww-mechanize-perl, libxml-parser-perl, libxml-simple-perl, libxml-twig-perl, |
726 | + libxml-writer-perl, perlmagick, perl-tk |
727 | Description: Various scripts for gpsdrive |
728 | Gpsdrive is a car (bike, ship, plane) navigation system. |
729 | . |
730 | |
731 | === modified file 'debian/patches/00list' |
732 | --- debian/patches/00list 2010-07-05 10:54:00 +0000 |
733 | +++ debian/patches/00list 2010-07-28 08:11:20 +0000 |
734 | @@ -18,4 +18,5 @@ |
735 | 100-fix-insecure-tempfiles |
736 | 101-signalposreq |
737 | 102-unittest |
738 | -103-lp-325288 |
739 | +103-no-textquery |
740 | +104-lp-325288 |
741 | |
742 | === removed file 'debian/patches/103-lp-325288.dpatch' |
743 | --- debian/patches/103-lp-325288.dpatch 2010-07-05 15:42:31 +0000 |
744 | +++ debian/patches/103-lp-325288.dpatch 1970-01-01 00:00:00 +0000 |
745 | @@ -1,17 +0,0 @@ |
746 | -#! /bin/sh /usr/share/dpatch/dpatch-run |
747 | -## 103-lp-325288.dpatch by Bilal Akhtar <bilalakhtar96@yahoo.com> |
748 | -## |
749 | -## All lines beginning with `## DP:' are a description of the patch. |
750 | -## DP: This patch fixes launchpad bug 325288 by changing the runtime |
751 | -## DP: environment of file scripts/geo-code from /bin/sh to /bin/bash. |
752 | - |
753 | -@DPATCH@ |
754 | -diff -urNad gpsdrive~/scripts/geo-code gpsdrive/scripts/geo-code |
755 | ---- gpsdrive~/scripts/geo-code 2010-07-05 13:13:11.334553356 +0300 |
756 | -+++ gpsdrive/scripts/geo-code 2010-07-05 13:13:19.202560140 +0300 |
757 | -@@ -1,4 +1,4 @@ |
758 | --#!/bin/sh |
759 | -+#!/bin/bash |
760 | - |
761 | - # |
762 | - # geo-code: Convert a street address into a latitude/longitude |
763 | |
764 | === added file 'debian/patches/103-no-textquery.dpatch' |
765 | --- debian/patches/103-no-textquery.dpatch 1970-01-01 00:00:00 +0000 |
766 | +++ debian/patches/103-no-textquery.dpatch 2010-07-28 08:11:20 +0000 |
767 | @@ -0,0 +1,18 @@ |
768 | +#! /bin/sh /usr/share/dpatch/dpatch-run |
769 | +## 103-no-textquery.dpatch by Francesco Paolo Lovergine <frankie@debian.org> |
770 | +## |
771 | +## All lines beginning with `## DP:' are a description of the patch. |
772 | +## DP: No description. |
773 | + |
774 | +@DPATCH@ |
775 | +diff -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 |
776 | +--- gpsdrive-2.10pre7~/scripts/osm/perl_lib/Geo/Gpsdrive/getstreet.pm 2009-06-14 15:57:25.000000000 +0200 |
777 | ++++ gpsdrive-2.10pre7/scripts/osm/perl_lib/Geo/Gpsdrive/getstreet.pm 2010-03-08 10:47:16.000000000 +0100 |
778 | +@@ -2,7 +2,6 @@ |
779 | + #noch nicht alle variablen angepasst |
780 | + use LWP::UserAgent; |
781 | + use WWW::Mechanize; |
782 | +-use Text::Query; |
783 | + use Getopt::Long; #maybe not needed any more |
784 | + use Pod::Usage; |
785 | + use DBI; |
786 | |
787 | === added file 'debian/patches/104-lp-325288.dpatch' |
788 | --- debian/patches/104-lp-325288.dpatch 1970-01-01 00:00:00 +0000 |
789 | +++ debian/patches/104-lp-325288.dpatch 2010-07-28 08:11:20 +0000 |
790 | @@ -0,0 +1,17 @@ |
791 | +#! /bin/sh /usr/share/dpatch/dpatch-run |
792 | +## 104-lp-325288.dpatch by Bilal Akhtar <bilalakhtar96@yahoo.com> |
793 | +## |
794 | +## All lines beginning with `## DP:' are a description of the patch. |
795 | +## DP: This patch fixes launchpad bug 325288 by changing the runtime |
796 | +## DP: environment of file scripts/geo-code from /bin/sh to /bin/bash. |
797 | + |
798 | +@DPATCH@ |
799 | +diff -urNad gpsdrive~/scripts/geo-code gpsdrive/scripts/geo-code |
800 | +--- gpsdrive~/scripts/geo-code 2010-07-05 13:13:11.334553356 +0300 |
801 | ++++ gpsdrive/scripts/geo-code 2010-07-05 13:13:19.202560140 +0300 |
802 | +@@ -1,4 +1,4 @@ |
803 | +-#!/bin/sh |
804 | ++#!/bin/bash |
805 | + |
806 | + # |
807 | + # geo-code: Convert a street address into a latitude/longitude |
808 | |
809 | === added file 'debian/patches/gpsdrive2.10pre7_osm_proj.patch' |
810 | --- debian/patches/gpsdrive2.10pre7_osm_proj.patch 1970-01-01 00:00:00 +0000 |
811 | +++ debian/patches/gpsdrive2.10pre7_osm_proj.patch 2010-07-28 08:11:20 +0000 |
812 | @@ -0,0 +1,572 @@ |
813 | +#! /bin/sh /usr/share/dpatch/dpatch-run |
814 | +## gpsdrive2.10pre7_osm_proj.patch by H. Bowman <hamish_b yahoo com> |
815 | +## |
816 | +## DP: Fix OpenStreetMap projection handling (backport from upstream) |
817 | + |
818 | +@DPATCH@ |
819 | +Index: src/map_download.c |
820 | +=================================================================== |
821 | +--- src/map_download.c (revision 2476) |
822 | ++++ src/map_download.c (revision 2477) |
823 | +@@ -61,8 +61,8 @@ |
824 | + # endif |
825 | + |
826 | + |
827 | +-#include <gpsdrive.h> |
828 | +-#include <map_handler.h> |
829 | ++#include "gpsdrive.h" |
830 | ++#include "map_handler.h" |
831 | + #include "gpsdrive_config.h" |
832 | + #include "gui.h" |
833 | + #include "map_download.h" |
834 | +@@ -133,24 +133,20 @@ |
835 | + MAPSOURCE_LANDSAT, "1 : 50 million", 0, 50000000, |
836 | + |
837 | + MAPSOURCE_OSM_TAH, "OpenStreetMap Tiles@Home", -1, -1, |
838 | +- MAPSOURCE_OSM_TAH, "1 : 147 456 000", 1, 256*576000, |
839 | +- MAPSOURCE_OSM_TAH, "1 : 73 728 000", 2, 128*576000, |
840 | +- MAPSOURCE_OSM_TAH, "1 : 36 864 000", 3, 64*576000, |
841 | +- MAPSOURCE_OSM_TAH, "1 : 18 432 000", 4, 32*576000, |
842 | +- MAPSOURCE_OSM_TAH, "1 : 9 216 000", 5, 16*576000, |
843 | +- MAPSOURCE_OSM_TAH, "1 : 4 608 000", 6, 8*576000, |
844 | +- MAPSOURCE_OSM_TAH, "1 : 2 304 000", 7, 4*576000, |
845 | +- MAPSOURCE_OSM_TAH, "1 : 1 152 000", 8, 2*576000, |
846 | +- |
847 | +- MAPSOURCE_OSM_TAH, "1 : 576 000", 9, 576000, |
848 | +- MAPSOURCE_OSM_TAH, "1 : 288 000", 10, 288000, |
849 | +- MAPSOURCE_OSM_TAH, "1 : 144 000", 11, 144000, |
850 | +- MAPSOURCE_OSM_TAH, "1 : 72 000", 12, 72000, |
851 | +- MAPSOURCE_OSM_TAH, "1 : 36 000", 13, 36000, |
852 | +- MAPSOURCE_OSM_TAH, "1 : 18 000", 14, 18000, |
853 | +- MAPSOURCE_OSM_TAH, "1 : 9 000", 15, 9000, |
854 | +- MAPSOURCE_OSM_TAH, "1 : 4 500", 16, 4500, |
855 | +- MAPSOURCE_OSM_TAH, "1 : 2 250", 17, 2250, |
856 | ++ /* scale varies with latitude, so this is just a rough guide |
857 | ++ which will only be valid for mid-lats */ |
858 | ++ /* Octave code: for lat=0:5:75; disp( [lat (a * 2*pi *pixelfact * cos(lat * pi/180)) / (256*2^9)]); end */ |
859 | ++ MAPSOURCE_OSM_TAH, "1 : 2 500", 17, 2250, |
860 | ++ MAPSOURCE_OSM_TAH, "1 : 5 000", 16, 4500, |
861 | ++ MAPSOURCE_OSM_TAH, "1 : 10 000", 15, 9000, |
862 | ++ MAPSOURCE_OSM_TAH, "1 : 20 000", 14, 18000, |
863 | ++ MAPSOURCE_OSM_TAH, "1 : 40 000", 13, 36000, |
864 | ++ MAPSOURCE_OSM_TAH, "1 : 75 000", 12, 72000, |
865 | ++ MAPSOURCE_OSM_TAH, "1 : 150 000", 11, 144000, |
866 | ++ MAPSOURCE_OSM_TAH, "1 : 300 000", 10, 288000, |
867 | ++ MAPSOURCE_OSM_TAH, "1 : 600 000", 9, 576000, |
868 | ++ /* the distortion gets too bad at scales wider than 1:500k |
869 | ++ It would be more accurate to stop earlier, but we compromise */ |
870 | + MAPSOURCE_N_ITEMS, "", 0, 0 |
871 | + }; |
872 | + |
873 | +@@ -165,7 +161,23 @@ |
874 | + gtk_entry_set_text (GTK_ENTRY (lon_entry), lon); |
875 | + } |
876 | + |
877 | ++/* ***************************************************************************** |
878 | ++ * calculate the local map scale based on Web Tile zoom level and latitude |
879 | ++ */ |
880 | ++double |
881 | ++calc_webtile_scale (double lat, int zoom) |
882 | ++{ |
883 | ++ double scale; |
884 | ++ double a = 6378137.0; /* major radius of WGS84 ellipsoid (meters) */ |
885 | + |
886 | ++ scale = (a * 2*M_PI * cos(DEG2RAD(lat)) * PIXELFACT) / (256 * pow(2,zoom)); |
887 | ++ |
888 | ++ if (mydebug > 3) |
889 | ++ g_print ("Tile scale: %.2f\n", scale); |
890 | ++ |
891 | ++ return scale; |
892 | ++} |
893 | ++ |
894 | + /* ***************************************************************************** |
895 | + * callback to set paramaters for map to download |
896 | + */ |
897 | +@@ -195,9 +207,13 @@ |
898 | + 3, &mapdl_scale, -1); |
899 | + /* TODO: determine map_ or top_ proj at this point so drawdownloadrectangle() |
900 | + * knows how big to draw the green preview box */ |
901 | ++ if (local_config.mapsource_type == MAPSOURCE_OSM_TAH) |
902 | ++ mapdl_scale = (int)calc_webtile_scale(mapdl_lat, mapdl_zoom); |
903 | ++ |
904 | + if (mydebug > 3) |
905 | + g_print ("new map scale/zoom level: %d / %d\n", |
906 | + mapdl_scale, mapdl_zoom); |
907 | ++ |
908 | + local_config.mapsource_scale = gtk_combo_box_get_active (GTK_COMBO_BOX (scale_combobox)); |
909 | + current.needtosave = TRUE; |
910 | + } |
911 | +@@ -439,6 +455,7 @@ |
912 | + gchar file_path[512]; |
913 | + gchar path[40]; |
914 | + gchar img_fmt[4]; |
915 | ++ gchar scale_str[40]; |
916 | + |
917 | + if (mapdl_active) |
918 | + return TRUE; |
919 | +@@ -450,11 +467,14 @@ |
920 | + g_strlcpy (path, "landsat", sizeof (path)); |
921 | + g_strlcpy (img_fmt, "jpg", sizeof (img_fmt)); |
922 | + mapdl_geturl_landsat (); |
923 | ++ g_snprintf (scale_str, sizeof (scale_str), "%d", mapdl_scale); |
924 | + break; |
925 | + case MAPSOURCE_OSM_TAH: |
926 | + g_strlcpy (path, "openstreetmap_tah", sizeof (path)); |
927 | + g_strlcpy (img_fmt, "png", sizeof (img_fmt)); |
928 | + mapdl_geturl_osm_tah (); |
929 | ++ mapdl_scale = (int)calc_webtile_scale(mapdl_lat, mapdl_zoom); |
930 | ++ g_snprintf (scale_str, sizeof (scale_str), "%d", mapdl_zoom); |
931 | + break; |
932 | + default: |
933 | + return TRUE; |
934 | +@@ -464,10 +484,11 @@ |
935 | + g_print (" download url:\n%s\n", mapdl_url); |
936 | + |
937 | + /* set file path and create directory if necessary */ |
938 | +- |
939 | +- |
940 | +- g_snprintf (file_path, sizeof (file_path), "%s%s/%d/%.0f/%.0f/", |
941 | +- local_config.dir_maps, path, mapdl_scale, mapdl_lat, mapdl_lon); |
942 | ++ |
943 | ++ g_snprintf (file_path, sizeof (file_path), "%s%s/%s/%.0f/%.0f/", |
944 | ++ local_config.dir_maps, path, scale_str, mapdl_lat, mapdl_lon); |
945 | ++ |
946 | ++ |
947 | + if(!g_file_test (file_path, G_FILE_TEST_IS_DIR)) |
948 | + { |
949 | + if (g_mkdir_with_parents (file_path, 0700)) |
950 | +@@ -477,14 +498,15 @@ |
951 | + } |
952 | + |
953 | + /* complete filename */ |
954 | +- g_snprintf (mapdl_file_w_path, sizeof (mapdl_file_w_path), "%s%s_%d_%5.3f_%5.3f.%s", |
955 | +- file_path, mapdl_proj, mapdl_scale, mapdl_lat, mapdl_lon, img_fmt); |
956 | ++ g_snprintf (mapdl_file_w_path, sizeof (mapdl_file_w_path), "%s%s_%s_%5.3f_%5.3f.%s", |
957 | ++ file_path, mapdl_proj, scale_str, mapdl_lat, mapdl_lon, img_fmt); |
958 | + |
959 | + if (mydebug > 10) |
960 | + g_print (" filename: %s\n", mapdl_file_w_path); |
961 | + |
962 | + gtk_progress_bar_set_text (GTK_PROGRESS_BAR (mapdl_progress), |
963 | + _("Loading Map...")); |
964 | ++ |
965 | + mapdl_abort = FALSE; |
966 | + mapdl_download (); |
967 | + |
968 | +Index: src/map_download.h |
969 | +=================================================================== |
970 | +--- src/map_download.h (revision 2476) |
971 | ++++ src/map_download.h (revision 2477) |
972 | +@@ -1,10 +1,9 @@ |
973 | + /*********************************************************************** |
974 | + |
975 | + Copyright (c) 2008 Guenther Meyer <d.s.e (at) sordidmusic.com> |
976 | +- |
977 | + Website: www.gpsdrive.de/ |
978 | + |
979 | +-Disclaimer: Please do not use for navigation. |
980 | ++Disclaimer: Please do not use as a primary means of navigation. |
981 | + |
982 | + This program is free software; you can redistribute it and/or modify |
983 | + it under the terms of the GNU General Public License as published by |
984 | +@@ -36,5 +35,6 @@ |
985 | + void mapdl_set_coords (gchar *lat, gchar *lon); |
986 | + gint mapdl_init (void); |
987 | + gint mapdl_cleanup (void); |
988 | ++double calc_webtile_scale (double, int); |
989 | + |
990 | + #endif /* GPSDRIVE_MAP_DOWNLOAD_H */ |
991 | +Index: scripts/gpsfetchmap.pl |
992 | +=================================================================== |
993 | +--- scripts/gpsfetchmap.pl (revision 2479) |
994 | ++++ scripts/gpsfetchmap.pl (revision 2480) |
995 | +@@ -47,6 +47,7 @@ |
996 | + modified (Jul 2007) by Maciek Kaliszewski <mkalkal\@interia.pl> |
997 | + modified (Oct 2007) by Andreas Putzo <andreas\@putzo.net> |
998 | + modified (Jan 2008) by Gernot Hillier <gernot\@hillier.de> (added Openstreetmap support) |
999 | ++modified (Aug 2009) by Hamish Bowman <hamish_b yahoo com> (fix OSM+WMS map scales) |
1000 | + Version svn-$Version |
1001 | + "; |
1002 | + |
1003 | +@@ -151,24 +152,20 @@ |
1004 | + 10000000 =>10000000, |
1005 | + 50000000 =>50000000, |
1006 | + }, |
1007 | ++# Web Map Tiles scale varies with latitude by the formula |
1008 | ++# (a * 2*pi * PIXELFACT * cos(lat * pi/180)) / (256 * 2^zoom) |
1009 | ++# where a is major radius of the Earth according to the WGS84 ellipsoid definition. |
1010 | ++# zoom levels lower than 9 (~1:500k) badly distort the Mercator so are not offered. |
1011 | + openstreetmap_tah => { |
1012 | +- 256*576000 => 1, |
1013 | +- 128*576000 => 2, |
1014 | +- 64*576000 => 3, |
1015 | +- 32*576000 => 4, |
1016 | +- 16*576000 => 5, |
1017 | +- 8*576000 => 6, |
1018 | +- 4*576000 => 7, |
1019 | +- 2*576000 => 8, |
1020 | +- 576000 => 9, |
1021 | +- 288000 => 10, |
1022 | +- 144000 => 11, |
1023 | +- 72000 => 12, |
1024 | +- 36000 => 13, |
1025 | +- 18000 => 14, |
1026 | +- 9000 => 15, |
1027 | +- 4500 => 16, |
1028 | +- 2250 => 17 |
1029 | ++ 600000 => 9, |
1030 | ++ 300000 => 10, |
1031 | ++ 150000 => 11, |
1032 | ++ 75000 => 12, |
1033 | ++ 40000 => 13, |
1034 | ++ 20000 => 14, |
1035 | ++ 10000 => 15, |
1036 | ++ 5000 => 16, |
1037 | ++ 2500 => 17 |
1038 | + } |
1039 | + }; |
1040 | + |
1041 | +@@ -240,8 +237,6 @@ |
1042 | + $polite=1; |
1043 | + } |
1044 | + |
1045 | +- |
1046 | +- |
1047 | + if ( $mapserver eq 'geoscience' ) |
1048 | + { |
1049 | + $scale ||= join(",",keys %{$Scale2Zoom->{'geoscience'}}); |
1050 | +@@ -269,22 +264,24 @@ |
1051 | + pod2usage(-verbose=>2) if $man; |
1052 | + |
1053 | + sub append_koords($$$$); # {} |
1054 | ++sub calc_webtile_scale ($$); # {} |
1055 | + sub check_coverage($); # {} |
1056 | + sub check_koord_file($); # {} |
1057 | + sub debug($); # {} |
1058 | ++sub file_count($); # {} |
1059 | + sub geoscience_url($$$); # {} |
1060 | +-sub landsat_url($$$); # {} |
1061 | +-sub resize($$); #{} |
1062 | +-sub file_count($); # {} |
1063 | + sub get_coords_for_route; # {} |
1064 | + sub get_coords_for_track($); # {} |
1065 | ++sub get_gpsd_position(); # {} |
1066 | + sub get_waypoint($); # {} |
1067 | + sub is_map_file($); # {} |
1068 | ++sub landsat_url($$$); # {} |
1069 | ++sub openstreetmap_tah_url($$$); # {} |
1070 | + sub read_gpstool_map_file(); # {} |
1071 | + sub read_koord_file($); # {} |
1072 | ++sub resize($$); # {} |
1073 | + sub update_gpsdrive_map_koord_file(); # {} |
1074 | + sub wget_map($$$); # {} |
1075 | +-sub get_gpsd_position(); # {} |
1076 | + |
1077 | + STDERR->autoflush(1); |
1078 | + STDOUT->autoflush(1); |
1079 | +@@ -407,7 +404,9 @@ |
1080 | + |
1081 | + my ($existing,$wanted) = file_count($desired_locations); |
1082 | + print "You are about to download $wanted (".($existing+$wanted).") file(s).\n"; |
1083 | +- |
1084 | ++if ($debug) { |
1085 | ++ print "Politeness delay set to $polite seconds,\n"; |
1086 | ++} |
1087 | + if ( $mapserver eq 'geoscience' ){ |
1088 | + print "+-----------------------------------------------------------+\n"; |
1089 | + print "| Geoscience Maps are Copyright, Commonwealth of Australia |\n"; |
1090 | +@@ -419,6 +418,7 @@ |
1091 | + print "+----------------------------------------------------------------+\n"; |
1092 | + print "| Landsat maps are courtesy JPL/NASA's OnEarth WMS Global Mosaic |\n"; |
1093 | + print "| Map prefix will be set automatically based on scale. |\n"; |
1094 | ++ print "+----------------------------------------------------------------+\n"; |
1095 | + # By law, US Government data is without copyright. |
1096 | + }elsif ( $mapserver eq 'openstreetmap_tah' ){ |
1097 | + print "+-----------------------------------------------------------+\n"; |
1098 | +@@ -427,6 +427,8 @@ |
1099 | + print "| They are free for use under the terms of the |\n"; |
1100 | + print "| Creative Commons \"Attribution-Share Alike 2.0 Generic\" |\n"; |
1101 | + print "| license. See http://www.openstreetmap.org for details. |\n"; |
1102 | ++ print "+-----------------------------------------------------------+\n"; |
1103 | ++ |
1104 | + } elsif ( ! $force) { |
1105 | + print "You may violating the map servers terms of use!\n"; |
1106 | + print "Please use their service responsible!\n"; |
1107 | +@@ -654,14 +656,32 @@ |
1108 | + ###################################################################### |
1109 | + sub map_filename($$$){ |
1110 | + my ($scale,$lati,$long) = @_; |
1111 | ++ |
1112 | ++ my $mscale = $scale; |
1113 | ++ |
1114 | ++ if ( $mapserver eq 'openstreetmap_tah' ) { |
1115 | ++ my $zoom = undef; |
1116 | ++ for my $s ( sort keys %{$Scale2Zoom->{openstreetmap_tah}} ) { |
1117 | ++ next unless $s == $scale; |
1118 | ++ $zoom = $Scale2Zoom->{openstreetmap_tah}->{$s}; |
1119 | ++ last; |
1120 | ++ } |
1121 | ++ unless ( $zoom ) { |
1122 | ++ print "Error calculating Zoomlevel for Scale: $scale\n"; |
1123 | ++ return (undef); |
1124 | ++ } |
1125 | ++ $mscale = $zoom; |
1126 | ++ } |
1127 | + |
1128 | +- my $filename = "$mapserver/$scale" |
1129 | ++ my $filename = "$mapserver/$mscale" |
1130 | + ."/".int($lati) |
1131 | + # ."/".sprintf("%3.1f",$lati) |
1132 | + ."/".int($long) |
1133 | +- ."/$FILEPREFIX$scale-$lati-$long.$fileext"; |
1134 | +- printf("Filename(%.0f,%.5f,%.5f): $filename\n",$scale,$lati,$long) |
1135 | ++ ."/$FILEPREFIX$mscale-$lati-$long.$fileext"; |
1136 | ++ |
1137 | ++ printf("Filename(%.0f,%.5f,%.5f): $filename\n",$mscale,$lati,$long) |
1138 | + if $debug; |
1139 | ++ |
1140 | + return $filename; |
1141 | + } |
1142 | + |
1143 | +@@ -678,6 +698,9 @@ |
1144 | + # mapblast/1000/047/047.0232/9/map_1000-047.0232-0009.8140.gif 47.02320 9.81400 1000 |
1145 | + #my $filename = "$mapserver/$scale/".int($lati)."/".sprintf("%3.1f",$lati). |
1146 | + #"/".int($long)."/$FILEPREFIX$scale-$lati-$long.gif"; |
1147 | ++ if ($debug) { |
1148 | ++ print "---------------\n"; |
1149 | ++ } |
1150 | + |
1151 | + # redundant?? |
1152 | + if ($mapserver eq 'landsat') |
1153 | +@@ -1082,7 +1105,7 @@ |
1154 | + $lon2 += 360; |
1155 | + } |
1156 | + |
1157 | +- debug( "landsat_url(LAT=$lat,LON=$lon,SCALE=$scale,FACTOR=$factor)"); |
1158 | ++ debug( "landsat_url(LAT=$lat,LON=$lon,SCALE=$scale)"); |
1159 | + |
1160 | + debug( "Calculated Lat1 $lat1"); |
1161 | + debug( "Calculated Lat2 $lat2"); |
1162 | +@@ -1111,7 +1134,28 @@ |
1163 | + return ($url,$scale); |
1164 | + } |
1165 | + |
1166 | ++ |
1167 | + ############################################################################# |
1168 | ++# calculate the local map scale based on Web Tile zoom level and latitude |
1169 | ++# This same formula is used by OSM, Google Maps, Microsoft Maps, ... |
1170 | ++sub calc_webtile_scale ($$){ |
1171 | ++ my $lat = shift; |
1172 | ++ my $zoom = shift; |
1173 | ++ |
1174 | ++ # major radius of WGS84 ellipsoid (meters) |
1175 | ++ my $a = $RADIUS_KM * 1000; |
1176 | ++ |
1177 | ++ my $zscale = (2*$a*$PI * cos($lat*$D2R) * $PIXELFACT) / (256 * 2**$zoom); |
1178 | ++ |
1179 | ++ if ($debug) { |
1180 | ++ print "Tile scale: $zscale\n"; |
1181 | ++ } |
1182 | ++ |
1183 | ++ return ($zscale); |
1184 | ++} |
1185 | ++ |
1186 | ++ |
1187 | ++############################################################################# |
1188 | + sub openstreetmap_tah_url($$$){ |
1189 | + my $lati = shift; |
1190 | + my $long = shift; |
1191 | +@@ -1122,7 +1166,7 @@ |
1192 | + for my $s ( sort keys %{$Scale2Zoom->{openstreetmap_tah}} ) { |
1193 | + next unless $s == $scale; |
1194 | + $zoom = $Scale2Zoom->{openstreetmap_tah}->{$s}; |
1195 | +- $mapscale = $s; |
1196 | ++ $mapscale = calc_webtile_scale($lati, $zoom); |
1197 | + last; |
1198 | + } |
1199 | + |
1200 | +@@ -1132,10 +1176,9 @@ |
1201 | + } |
1202 | + |
1203 | + if ($debug) { |
1204 | +- print "\n"; |
1205 | +- print "Using openstreetmap_tah zoom ", $zoom, " for requested scale ", $scale, ":1 actual scale ", $mapscale, ":1\n"; |
1206 | +- print "lat: $lati\n"; |
1207 | +- print "lon: $long\n"; |
1208 | ++ print "Using openstreetmap_tah zoom ", $zoom, " for requested scale 1:", $scale, ". Actual scale 1:", $mapscale, "\n"; |
1209 | ++ print "cetner lat: $lati\n"; |
1210 | ++ print "cetner lon: $long\n"; |
1211 | + } |
1212 | + |
1213 | + my $url = "http://tah.openstreetmap.org/MapOf/?lat=$lati&long=$long&z=$zoom&w=1280&h=1024&format=png"; |
1214 | +@@ -1903,7 +1946,7 @@ |
1215 | + |
1216 | + gpsfetchmap -w <WAYPOINT NAME> -sc <SCALE> -a <#> -p |
1217 | + |
1218 | +-gpsfetchmap -la <latitude DD.DDDD> -lo <latitude DD.DDDD> -sc <SCALE> -a <#> -p |
1219 | ++gpsfetchmap -la <latitude DD.DDDD> -lo <longitude DD.DDDD> -sc <SCALE> -a <#> -p |
1220 | + |
1221 | + 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 |
1222 | + |
1223 | +@@ -1915,7 +1958,7 @@ |
1224 | + [-la <latitude DD.DDDD>] [-lo <longitude DD.DDDD>] |
1225 | + [-sla <start latitude DD.DDDD>] [-endla <end latitude DD.DDDD>] |
1226 | + [-slo <start longitude DD.DDDD>] [-endlo <end longitude DD.DDDD>] |
1227 | +- [-sc <SCALE>] [-a <#>] [-p] [-m <MAPSERVER>] |
1228 | ++ [-sc <SCALE>] [-a <#>] [-p <#>] [-m <MAPSERVER>] |
1229 | + [-u <UNIT>] [-md <DIR>] [-W <FILE>] [-t <FILE>] [-r] |
1230 | + [-C <FILE>] [-P <PREFIX>] [-F] [-d] [-v] [-h] [-M] [-n] [-U] [-c] |
1231 | + |
1232 | +@@ -2000,7 +2043,7 @@ |
1233 | + of longitude. 'units' is read from the configuration file (-C) or as defined |
1234 | + by (-u). |
1235 | + |
1236 | +-=item B<-p, --polite> |
1237 | ++=item B<-p, --polite <#>> |
1238 | + |
1239 | + This causes the program to sleep one second between downloads to be polite |
1240 | + to the mapserver. Takes an optional value of number of seconds to sleep. |
1241 | +@@ -2117,6 +2160,13 @@ |
1242 | + |
1243 | + Prints the manual page and exits. |
1244 | + |
1245 | ++=back |
1246 | ++ |
1247 | ++ |
1248 | ++=head1 OUTPUT |
1249 | ++ |
1250 | ++=over 2 |
1251 | ++ |
1252 | + =item B<Download> |
1253 | + |
1254 | + When downloading Maps the output reads as folows: |
1255 | +@@ -2130,5 +2180,16 @@ |
1256 | + |
1257 | + =back |
1258 | + |
1259 | ++ |
1260 | ++=head1 EXAMPLE |
1261 | ++ |
1262 | ++Download all 1:10000 OpenStreetMaps in a 5 km radius around the |
1263 | ++Sydney Convention Centre. Between tile downloads it will let |
1264 | ++the server rest for 3 seconds. |
1265 | ++ |
1266 | ++gpsfetchmap --mapserver openstreetmap_tah --polite 3 \ |
1267 | ++ --lat "-33.8753" --lon 151.2001 --scale 10000 \ |
1268 | ++ --area 5 --unit kilometers |
1269 | ++ |
1270 | + =cut |
1271 | + |
1272 | +Index: scripts/mapnik/gpsdrive_mapnik_gentiles-in.py |
1273 | +=================================================================== |
1274 | +--- scripts/mapnik/gpsdrive_mapnik_gentiles-in.py (revision 2473) |
1275 | ++++ scripts/mapnik/gpsdrive_mapnik_gentiles-in.py (revision 2479) |
1276 | +@@ -7,14 +7,20 @@ |
1277 | + |
1278 | + Options: |
1279 | + -h, --help show this help |
1280 | +- -b, --bbox boundingbox (lon,lat,lon,lat) - Be carefull! Quote negative values! |
1281 | +- -s, --scale scale single/range |
1282 | +- 1 = 147456000 |
1283 | +- 2 = 73728000 |
1284 | +- ... |
1285 | +- 15 = 9000 |
1286 | +- 16 = 4500 |
1287 | +- 17 = 2250 |
1288 | ++ -b, --bbox boundingbox (minlon,minlat,maxlon,maxlat) |
1289 | ++ - Be carefull! "Quote" negative values! |
1290 | ++ -s, --scale scale single/range (zoom level or min-max) |
1291 | ++ (below "9" Mercator becomes distorted; |
1292 | ++ actual scale will vary with latitude) |
1293 | ++ 9 - 1:600,000 |
1294 | ++ 10 - 1:300,000 |
1295 | ++ 11 - 1:150,000 |
1296 | ++ 12 - 1:75,000 |
1297 | ++ 13 - 1:40,000 |
1298 | ++ 14 - 1:20,000 |
1299 | ++ 15 - 1:10,000 |
1300 | ++ 16 - 1:5,000 |
1301 | ++ 17 - 1:2,500 |
1302 | + --test testrun = generates Munich example |
1303 | + |
1304 | + Examples: |
1305 | +@@ -22,7 +28,7 @@ |
1306 | + Munich: |
1307 | + gpsdrive_mapnik_gentiles.py -b 11.4,48.07,11.7,48.2 -s 10-16 |
1308 | + |
1309 | +- World: |
1310 | ++ World: (just to demonstrate lat/lon order; scale not recommended) |
1311 | + gpsdrive_mapnik_gentiles.py -b "-180.0,-90.0,180.0,90.0" -s 1-6 |
1312 | + """ |
1313 | + |
1314 | +@@ -32,12 +38,19 @@ |
1315 | + import getopt |
1316 | + import string |
1317 | + |
1318 | +-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] |
1319 | + |
1320 | +- |
1321 | + DEG_TO_RAD = pi/180 |
1322 | + RAD_TO_DEG = 180/pi |
1323 | + |
1324 | ++def calc_scale (lat, zoom): |
1325 | ++ # GpsDrive's hardcoded pixels per meter ratio |
1326 | ++ PixelFact = 2817.947378 |
1327 | ++ # wgs84 major Earth axis |
1328 | ++ a = 6378137.0 |
1329 | ++ dynscale = ( a * 2*pi * cos(lat * DEG_TO_RAD) * PixelFact ) / ( 256*pow(2,zoom) ) |
1330 | ++ print dynscale |
1331 | ++ return dynscale |
1332 | ++ |
1333 | + def minmax (a,b,c): |
1334 | + a = max(a,b) |
1335 | + a = min(a,c) |
1336 | +@@ -90,17 +103,28 @@ |
1337 | + os.mkdir(tile_dir) |
1338 | + |
1339 | + gprj = GoogleProjection(maxZoom+1) |
1340 | ++ |
1341 | + #m = Map(2 * 256,2 * 256) |
1342 | + m = Map(1280,1024) |
1343 | + load_map(m,mapfile) |
1344 | +- prj = Projection("+proj=merc +datum=WGS84") |
1345 | +- |
1346 | ++ |
1347 | ++ #prj = Projection("+proj=merc +datum=WGS84") |
1348 | ++ # What follows is from /usr/share/proj/esri.extra, EPSG:900913 |
1349 | ++ # "Chris' funny epsgish code for the google mercator" |
1350 | ++ 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") |
1351 | ++ |
1352 | + ll0 = (bbox[0],bbox[3]) |
1353 | + ll1 = (bbox[2],bbox[1]) |
1354 | +- |
1355 | ++ |
1356 | + for z in range(minZoom,maxZoom + 1): |
1357 | ++ if z == 9: |
1358 | ++ print "CAUTION: Mercator projection begins to be noticeably distorted at this zoom level." |
1359 | ++ elif z < 9: |
1360 | ++ print "WARNING: Mercator projection is very distorted at this zoom level." |
1361 | ++ |
1362 | + px0 = gprj.fromLLtoPixel(ll0,z) |
1363 | + px1 = gprj.fromLLtoPixel(ll1,z) |
1364 | ++ |
1365 | + for x in range(int(px0[0]/640.0),int(px1[0]/640.0)+1): |
1366 | + for y in range(int(px0[1]/512.0),int(px1[1]/512.0)+1): |
1367 | + p0 = gprj.fromPixelToLL((x * 640.0, (y+1) * 512.0),z) |
1368 | +@@ -145,7 +169,7 @@ |
1369 | + fh_mapkoord.write(tile_path + " ") |
1370 | + fh_mapkoord.write(str((p0[1] + p1[1]) / 2) + " ") |
1371 | + fh_mapkoord.write(str((p0[0] + p1[0]) / 2) + " ") |
1372 | +- fh_mapkoord.write(str(zoom2scale[z])) |
1373 | ++ fh_mapkoord.write(str( calc_scale( (p0[1] + p1[1])/2, z) )) |
1374 | + fh_mapkoord.write(" " + str(p0[1]) + " " + str(p0[0])) |
1375 | + fh_mapkoord.write(" " + str(p1[1]) + " " + str(p1[0])) |
1376 | + fh_mapkoord.write("\n") |
1377 | +@@ -221,6 +245,7 @@ |
1378 | + |
1379 | + # check for correct values |
1380 | + 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]: |
1381 | ++ # rounding problems... what exactly is this supposed to be checking ??? |
1382 | + sys.exit("Boundingbox invalid!") |
1383 | + |
1384 | + if minZoom < 1 or minZoom > 17 or maxZoom < 1 and maxZoom > 17 or minZoom > maxZoom or int(minZoom) <> minZoom or int(maxZoom) <> maxZoom: |
1385 | |
1386 | === modified file 'debian/rules' |
1387 | --- debian/rules 2009-06-11 19:26:06 +0000 |
1388 | +++ debian/rules 2010-07-28 08:11:20 +0000 |
1389 | @@ -74,16 +74,10 @@ |
1390 | dh_testroot |
1391 | rm -f build-arch-stamp build-indep-stamp |
1392 | [ ! -f Makefile ] || $(MAKE) distclean |
1393 | -ifneq "$(wildcard /usr/share/misc/config.sub)" "" |
1394 | - cp -f /usr/share/misc/config.sub config.sub |
1395 | -endif |
1396 | -ifneq "$(wildcard /usr/share/misc/config.guess)" "" |
1397 | - cp -f /usr/share/misc/config.guess config.guess |
1398 | -endif |
1399 | dh_clean |
1400 | |
1401 | install: install-arch install-indep |
1402 | - dh_clean -k |
1403 | + dh_prep |
1404 | |
1405 | install-arch: build-arch |
1406 | dh_testdir |