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.
Trekbuddy is on Github now

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 
Is a .set file used inside indexed TARed atlases?

 
Post new topic   Reply to topic    TrekBuddy Forum Index -> English
View previous topic :: View next topic  
Author Message
davorl



Joined: 01 Nov 2007
Posts: 6
Location: Salsomaggiore Terme (PR), Italy

PostPosted: Thu Apr 23, 2009 9:09 pm    Post subject: Is a .set file used inside indexed TARed atlases? Reply with quote

Hello.
I'm in the process of writing a little multi-platform UI tool for packing/unpacking atlases into tar format.
To this end I need an information from someone much more knowledgeable about the inner workings of TB than me Smile

Here is the question: does TB actually use any .set file found inside a TARed atlas, even when there is a matching .tmi index file? And if it does, which one? The .set found in the .tar map (where the tiles are) or the one inside the "root" tar archive (where the .tba file lies)?

I suppose the .set files are not used, since the same information is available from the .tmi files. I so, I can safely leave them out when building the tar archive (and recreating them from the tile list when unpacking). But I cannot just "suppose", I need to know for sure. Smile

Thank you for your help!
Back to top
View user's profile Send private message
Ranger



Joined: 12 Dec 2006
Posts: 6030

PostPosted: Fri Apr 24, 2009 8:25 am    Post subject: Reply with quote

Hi,
Good question. Two (or three) index files are not needed indeed, but ...
Maps are used different way as you know, some peoples are using untared maps/atlases, where .set file is necessary, others are using tared maps (alone or in atlases).
If you have tared map with .set file inside, it is enough to unpack map file to have it working in unpacked form. So .tar file is comfortable container for both map types handling.
External .tmi file is used to accelerate tiles loading for tared map, if you load map itself. But in atlas tared header is used first to show enumerated maps in atlas Smile
If .set file is available even in tared map, map can be used in more flexible way. So after some time .set files returned to tared map content as obligatory.
On other side, index .tmi file is not obligatory, but if you use it map is loaded very fast.
Back to top
View user's profile Send private message
davorl



Joined: 01 Nov 2007
Posts: 6
Location: Salsomaggiore Terme (PR), Italy

PostPosted: Fri Apr 24, 2009 7:24 pm    Post subject: Reply with quote

Good point!

I think I will le the user choose with a checkbox if he wants to add the .set file inside either tar archive.

Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    TrekBuddy Forum Index -> English All times are GMT
Page 1 of 1

 
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