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 
Application for cuttings maps to TrekBuddy

 
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
Duffa



Joined: 05 Dec 2006
Posts: 32

PostPosted: Tue Dec 12, 2006 5:01 pm    Post subject: Application for cuttings maps to TrekBuddy Reply with quote

Because creating maps is quite difficult and cutting in GIMP is very slow, I've written a small application for preparing maps to TB. Enjoy.


TB Cutter.zip
 Description:

Download
 Filename:  TB Cutter.zip
 Filesize:  270.88 KB
 Downloaded:  399 Time(s)

Back to top
View user's profile Send private message
krzysiekz



Joined: 07 Oct 2006
Posts: 168

PostPosted: Tue Dec 12, 2006 6:29 pm    Post subject: Reply with quote

I tried it, but i've got an error, and parts like this. (from 8bit tiff 7751x7011, 55mb)
I prefer using modified gimp script.



Pl_0_0.png
 Description:
 Filesize:  59.25 KB
 Viewed:  24620 Time(s)

Pl_0_0.png


Back to top
View user's profile Send private message
Duffa



Joined: 05 Dec 2006
Posts: 32

PostPosted: Tue Dec 12, 2006 7:07 pm    Post subject: Reply with quote

krzysiekz wrote:
I tried it, but i've got an error, and parts like this. (from 8bit tiff 7751x7011, 55mb)
I prefer using modified gimp script.


I am sorry, I have all my maps in TrueColor, so I forgot for input maps in other bit depth Sad I'll fix this bug as soon as possible.
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5662

PostPosted: Tue Dec 12, 2006 7:25 pm    Post subject: Reply with quote

Good job!

Just a note: I think that having 24/32 bpp maps is wasting memory (card or internal), the device will likely resample it anyway. I find 8bpp enough for any map, but, it is your choice Cool
Back to top
View user's profile Send private message
Duffa



Joined: 05 Dec 2006
Posts: 32

PostPosted: Tue Dec 12, 2006 8:25 pm    Post subject: Reply with quote

Here is new version with various bit depth support:

TB Cutter.zip

I only increase bpp after loading bitmap, I plan to cut bitmaps directly in input bit depth to save memory.
Back to top
View user's profile Send private message
la_ouiche



Joined: 08 Dec 2006
Posts: 19

PostPosted: Mon Dec 18, 2006 3:12 pm    Post subject: Application for cuttings maps to TrekBuddy Reply with quote

Hi,

Thanks for the tool, it works fine! Except I have quite a big map (12000x14000 pixels), and TB Cutter crash when I try to cut it in 600x300 tiles, it creates the first tiles ok (0 to 3000 pixels for the first line of tiles), and then crashes. Do you have any idea to go throught?

Thx
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5662

PostPosted: Tue Dec 19, 2006 5:16 pm    Post subject: Reply with quote

It really seems to crash with big maps, I've just tried 30400x17200 PNG8 map Cool


cutter_crash.JPG
 Description:
tb cutter crash with 30400x17200 map PNG8
 Filesize:  87.1 KB
 Viewed:  24490 Time(s)

cutter_crash.JPG


Back to top
View user's profile Send private message
Duffa



Joined: 05 Dec 2006
Posts: 32

PostPosted: Wed Dec 20, 2006 8:55 am    Post subject: Reply with quote

kruch wrote:
It really seems to crash with big maps, I've just tried 30400x17200 PNG8 map Cool


My biggest map is 14500x13700 pixels (24 bit) and TB Cutter cut it OK. I'll try bigger bitmap...

30400x17200 is about 530MB, and I must convert it into 24bpp (because I can't cut 8 bit map directly yet), so you need 2GB RAM in all!!!
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5662

PostPosted: Wed Dec 20, 2006 9:11 am    Post subject: Reply with quote

I see. It will be great once your application will handle 8bpp maps directly, I'm really looking forward to it! GIMP is a pain for large maps.

Ta mapa je moc hezka, mam ji od jednoho sikovnyho uzivatele , cela CR (meritko neumim odhadnout) Wink . GIMP to neda, mam 1.5 GB RAM + 1.5 GB swap Sad
Back to top
View user's profile Send private message
Ranger



Joined: 12 Dec 2006
Posts: 6030

PostPosted: Wed Dec 20, 2006 11:25 am    Post subject: Reply with quote

Guys, why you would to have so large bitmaps difficult to handle ?

BTW, few words about subject Smile

Automation of map preparation process for TB

Input: map(s) picture(s), coordinates info
Output: tiled map(s), tiles index(es), coordinates file(s), tree structure

Process steps for maps/atlases:
- map(s) calibration
- cutting map(s) and indexing (via file names)
- tiles colour reduction (more effective than overall map colour reduction)
- producing folder structures for final map/atlas and files moving
- optionally tared

So tools are - calibrator, cutter, colour reduction filter, tree generator and file mover, tar converter. Something loosed ?

Duffa, would you build such complete tool ?
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5662

PostPosted: Wed Dec 20, 2006 7:11 pm    Post subject: Reply with quote

I've created a dedicated forum for tools, and tb cutter topic Wink
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
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