← Back to team overview

ubuntu-phone team mailing list archive

Re: OSMTouch and pre-fetch tiles

 

El día Saturday, June 13, 2015 a las 05:00:37PM +0200, Frans Schreuder escribió:

> Hello Matthias,
> 
> It could be due to a different screen resolution, that zoom levels are
> handled differently.
> Anyway it looks like a lot of work to copy over the cache.

Thanks for the feedback. The script to copy the files to a common dir
ist just simple:

#!/bin/sh
# this script changes the name from the tiles to a form which
# uses the app OSMTouch, for example:
#
# 18/139636/91057.png  --> osm_100-1-18-139636-91057.png

cd ~/Maps/OSM
mkdir -p TEMP
find 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 -type f |\

   while read name; do
      osmtouchName=`echo $name | sed 's;/;-;g'  | sed 's;^;osm_100-1-;'`
      cp $name TEMP/$osmtouchName
   done   
exit 0

After this one just SCP the files from TEMP/* to the BQ.

> I am
> currently developing an offline navigation application which is suited
> for your needs.
> It's not yet in the store, but the sources are available on github.
> 
> https://github.com/fransschreuder/OSMScout-ubuntu
> 
> Opening the project in ubuntu-sdk, build and install it seems like less
> work to me than manually converting image tiles.

Thanks, I will have a look. How the app will fetch in advance around
100000 tiles for the location, for example the area of Havana?

	matthias

-- 
Matthias Apitz, guru@xxxxxxxxxxx, http://www.unixarea.de/ +49-170-4527211    +49-176-38902045
"Wenn der Mensch von den Umständen gebildet wird, so muß man die Umstände menschlich bilden."
"Si el hombre es formado por las circunstancias entonces es necesario formar humanamente
las circunstancias", Karl Marx in Die heilige Familie / La sagrada familia (MEW 2, 138)


Follow ups

References