Bílý vrch
icon TrekBuddy
www.trekbuddy.net
Outdoor companion.
  • internal / bluetooth / simulator GPS
  • offline raster maps
  • smart GPX / raw NMEA logs
  • waypoints and simple navigation
  • custom views
  • MIDP and Symbian phones
  • Blackberry
  • Android
Visit wiki to see all features, guides and howtos. Project tracker.

Partners:    (Polish/Polski)(Polski) Compass mapy      (Polish/Polski)(Polski) Galileos mapy      (Polish/Polski)(Polski) CartoMedia      (Czech/Èesky)(Èesky) Eaglesoft trasy      (Polish/Polski)(Polski) ExpressMap     

 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
0.9.71
Goto page 1, 2  Next
 
Post new topic   This topic is locked: you cannot edit posts or make replies.    TrekBuddy Forum Index -> Recycle Bin
View previous topic :: View next topic  
Author Message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5664

PostPosted: Wed Jan 09, 2008 8:50 am    Post subject: 0.9.71 Reply with quote

Changelog
    - I broke my internal API backward compatiblity in the previous release that results in errors like "Not a digit" exception etc; fixed
    - .tar map loading speed up

Speed up of .tar map loading (not browsing!)

Tar tool (command line gnu version, at least) is able to generate nice tar entries listing file that TB will use since now (if it finds it) instead of scanning the whole .tar which takes some time. Applies to both standalone maps and maps in atlas (Create .tmi file for every map in atlas you want to open faster).

How to create such file? Example: I have 19_Okoli_Prahy_jih.tar map. I run
Code:
tar -R -tf 19_Okoli_Prahy_jih.tar > 19_Okoli_Prahy_jih.tmi

on my PC and then copy the 19_Okoli_Prahy_jih.tmi to memory card to the same folder where 19_Okoli_Prahy_jih.tar is. That is it. Sample file attached.

Order of entries in the tar archive is important for performance - calibration file should be the first entry! You can check the order in the map's tmi file.

---

0.9.71 download link
Requirements Installation Configuration



19_Okoli_Prahy_jih.zip
 Description:
.tmi sample

Download
 Filename:  19_Okoli_Prahy_jih.zip
 Filesize:  1.18 KB
 Downloaded:  933 Time(s)



Last edited by kruch on Fri Jan 11, 2008 11:56 am; edited 5 times in total
Back to top
View user's profile Send private message
Dave.a



Joined: 19 Oct 2006
Posts: 69

PostPosted: Wed Jan 09, 2008 9:48 am    Post subject: TARed atlases Reply with quote

Thank you for a new version. What about speedup of TARed atlases? Should I put tmi file into each folder of sub map?
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5664

PostPosted: Wed Jan 09, 2008 10:19 am    Post subject: Re: TARed atlases Reply with quote

Dave.a wrote:
What about speedup of TARed atlases? Should I put tmi file into each folder of sub map?


Yes, tmi is for maps - either standalone or in atlas. Create a tmi file for every map in atlas you want to open faster.
Back to top
View user's profile Send private message
rahuber



Joined: 08 Sep 2007
Posts: 3

PostPosted: Wed Jan 09, 2008 11:08 am    Post subject: Reply with quote

Hi,
i trief to add the tmi file to all my atlases with a small bash script. It seems like tar -R works locale specific. With my default locale i got lines like this:
Code:
Block 0:  /...
...
Block 17449: ** Block aus NULlen **

i switched to en_US with export LANG=en_US
and got this:
Code:
block 0: /...
...
block 17449: ** Block of NULs **


It is still different to Kruchs Example one whitespace between block and <blockno> instead of multiples. But seems to work.

Maybe you could make the parser more robust or exactly specify the format Smile
Thanks a lot for the new version
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5664

PostPosted: Wed Jan 09, 2008 12:12 pm    Post subject: Reply with quote

damn the locales... Smile
Back to top
View user's profile Send private message
Jakob



Joined: 18 Apr 2007
Posts: 109
Location: Germany / Munich

PostPosted: Wed Jan 09, 2008 1:54 pm    Post subject: Reply with quote

Strange - I've installed 0.9.71 on my sxg75.
TB starts up for a second, then sxg75 returns to the
Java application menu. Any clue what's wrong?

_________________
SXG75 / HTC G1
Back to top
View user's profile Send private message
Cactus



Joined: 14 Dec 2007
Posts: 214
Location: Fife, Scotland

PostPosted: Wed Jan 09, 2008 4:29 pm    Post subject: Reply with quote

TMI has really speeded up map updates. Thanks!

(Now if you could only find a solution to the "internal bluetooth errors" on the S65 - Yes, I need to buy a different phone Sad )

_________________
Nokia Lumia 635, Windows Phone 10
Nokia Lumia 520, Windows Phone 8.1
Back to top
View user's profile Send private message
Dave.a



Joined: 19 Oct 2006
Posts: 69

PostPosted: Wed Jan 09, 2008 5:13 pm    Post subject: Reply with quote

On SXG75 I got error _Event Failure_(code6;result null;throwable java.lang.NullointerException)_java.langlArrayIndexOutfBoundsException. This atlas works in 0.9.68 correctly.
Back to top
View user's profile Send private message
guest



Joined: 08 Oct 2006
Posts: 4953

PostPosted: Wed Jan 09, 2008 5:56 pm    Post subject: Reply with quote

I created .tmi for every map in atlas the same way
and with some maps i get now:
[7]null:
cz.kruch.track.maps.InvalidMapException:
Failed to load slice: bw: Invalid header: '6c 80 dd 19 19 30 49'

I also got:
_EVENT FAILURE_ (code 6;result 'null';throwable java.lang.NullPointerException);java.langlArrayIndexOutfBoundsException

However, some maps in the atlas still work.

It seems the problem ist only with high zoom level (lots of png files in big tar)
Back to top
View user's profile Send private message Visit poster's website
druzicka



Joined: 07 Aug 2007
Posts: 90

PostPosted: Wed Jan 09, 2008 7:13 pm    Post subject: Reply with quote

guest wrote:
I created .tmi for every map in atlas the same way
and with some maps i get now:
[7]null:
cz.kruch.track.maps.InvalidMapException:
Failed to load slice: bw: Invalid header: '6c 80 dd 19 19 30 49'

I also got:
_EVENT FAILURE_ (code 6;result 'null';throwable java.lang.NullPointerException);java.langlArrayIndexOutfBoundsException

However, some maps in the atlas still work.

It seems the problem ist only with high zoom level (lots of png files in big tar)


+1 nokia 6230i Surprised(
Back to top
View user's profile Send private message
guest



Joined: 08 Oct 2006
Posts: 4953

PostPosted: Wed Jan 09, 2008 7:23 pm    Post subject: Reply with quote

druzicka wrote:

+1 nokia 6230i Surprised(

Mine is K750i...
Back to top
View user's profile Send private message Visit poster's website
rudison



Joined: 16 Dec 2007
Posts: 8

PostPosted: Wed Jan 09, 2008 10:12 pm    Post subject: Reply with quote

Excellent!

This is a wonderful improvement to speed up the loading of large tar maps!
Back to top
View user's profile Send private message
FredMed



Joined: 18 Sep 2007
Posts: 10

PostPosted: Wed Jan 09, 2008 10:22 pm    Post subject: Tar.exe? Reply with quote

kruch wrote:

How to create such file? Example: I have 19_Okoli_Prahy_jih.tar map. I run
Code:
tar -R -tf 19_Okoli_Prahy_jih.tar > 19_Okoli_Prahy_jih.tmi

on my PC and then copy the 19_Okoli_Prahy_jih.tmi to memory card to the same folder where 19_Okoli_Prahy_jih.tar is. That is it. Sample file attached.


And where can I find tar.exe to run this command in WinXP (I use Altap Salamander as file manager)? I tried to download some tar found with Google but it didnt work..
Back to top
View user's profile Send private message
druzicka



Joined: 07 Aug 2007
Posts: 90

PostPosted: Thu Jan 10, 2008 5:46 am    Post subject: Reply with quote

i am rename all of directories and files to upper case letters and now i can load atlas, select layer, select map, but if trek load map i get :
[6] null:
java.lang.Null
PointerException
Back to top
View user's profile Send private message
rudison



Joined: 16 Dec 2007
Posts: 8

PostPosted: Thu Jan 10, 2008 9:57 am    Post subject: Re: Tar.exe? Reply with quote

FredMed wrote:
And where can I find tar.exe to run this command in WinXP (I use Altap Salamander as file manager)? I tried to download some tar found with Google but it didnt work..

This version here works well with WinXP and also makes correct tmi files:
http://www.trekbuddy.net/forum/viewtopic.php?t=561
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    TrekBuddy Forum Index -> Recycle Bin All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group