Hello again, Furthermore I wrote a set of scripts to download/freshen the map tiles for offline use, in this case of OSM Osmarender map tiles, but I think they can be easily adopted to other map types as well.
In osm_url_generator.pl you have to specify the area from which you want map
tiles e.g.
my %bb=( 'N' => '57.675', 'S' => '57.173', 'W' => '13.354', 'E' => '14.36');
# some area in sweden
you probably want to modify from what to what zoom level tiles urls are created
for my $z ( 4 .. 14 ) {
Using high zoom levels of course produce a high amount of tiles to download.
osm_get_tile.sh takes care of the actual download
run.sh uses xargs to run several downloads in parallel,
which speeds up the download a lot. This is basically what it does:
./osm_url_generator.pl | xargs -n2 -P $NO_OF_PARALLEL_DOWNLOADS
./osm_get_tile.sh
Use at your own risk,
backup your you viking map store ~/.viking-maps first!
Have fun
Best Regards
Lixus
osm_get_tile.sh
Description: application/shellscript
osm_url_generator.pl
Description: Perl program
run.sh
Description: application/shellscript
------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge
_______________________________________________ Viking-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/viking-devel Viking home page: http://viking.sf.net/
