[ gpsdrive ] automatic download of OpenStreetmap *pixel maps*?

Gernot Hillier gernot at hillier.de
Fri Jan 4 09:24:26 AKST 2008


Hi!

Joerg Ostertag (gpsdrive Munich/Germany) schrieb:
> On Dienstag 01 Januar 2008, Gernot Hillier wrote:
>> Hi!
>>
>> Joerg Ostertag (gpsdrive Munich/Germany) schrieb:
>>>> If not, I'd like trying to contribute one - preferrably directly via the
>>>> GUI in the same dialog which does Expedia (?) downloads (at least in
>>>> 2.10pre4). Does this make sense for you?
>>> Would be nice. You probably wand to expand gpsfetchmap.pl. But there is
>>> one slight challenge.... the tiles comming from tiles at home or
>>> tiles.openstreetmap.org are 256x256 pixel and you'll have to combine them
>>> to get a 1280x1024 Pixel image. But there should be code inside
>>> gpsfetchmap to do this. The stiching formerly was also done for
>>> google-maps. So you can probably have a look in this old code. If you
>>> don't find it in the current svn you might want to have a look into the
>>> source before 2.10pre4.
>> No, it's much easier. T at H already does this for you:
>> http://tah.openstreetmap.org/MapOf/?lat=48.5333&long=12.15&z=14&w=1280&h=10
>> 24&format=png
> 
> OK then it should be a pice of cace to include it into gpsdrive and/or 
> gpsfetchmap.
> 

Yes, no real problem to solve after I found the zoom2scale info in
scripts/mapnik :-)

Attached, please find a patch to gpsfetchmap.pl adding openstreetmap T at H
download support. Please consider applying. And as always, any feedback
greatly appreciated! :-)

--
Gernot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gpsdrive-2.10pre4-openstreetmap-download.patch
Type: text/x-patch
Size: 4166 bytes
Desc: not available
Url : http://lists.gpsdrivers.org/pipermail/gpsdrive/attachments/20080104/66fe5289/attachment.bin 


More information about the GPSdrive mailing list