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 
tb cutter
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    TrekBuddy Forum Index -> Tools
View previous topic :: View next topic  
Author Message
nadlabak



Joined: 22 Jan 2008
Posts: 4

PostPosted: Mon Feb 04, 2008 4:20 pm    Post subject: Reply with quote

Thank you very much!
Back to top
View user's profile Send private message Visit poster's website
loonycartoon



Joined: 21 Feb 2008
Posts: 1

PostPosted: Thu Feb 21, 2008 10:33 pm    Post subject: Reply with quote

For Vista right click on TB Cutter.exe and then click on Run as administrator
then in the next window click on Allow
Back to top
View user's profile Send private message
supik



Joined: 05 Nov 2006
Posts: 26

PostPosted: Wed Mar 05, 2008 8:03 pm    Post subject: Reply with quote

loonycartoon wrote:
For Vista right click on TB Cutter.exe and then click on Run as administrator
then in the next window click on Allow


very usefull info! thank you so much!! Smile
Back to top
View user's profile Send private message
milan.zeleznik



Joined: 04 Mar 2008
Posts: 25

PostPosted: Wed Mar 12, 2008 6:51 pm    Post subject: Reply with quote

I don't know why is 'Maps in JAR' option there?
_________________
Samsung Galaxy Core 2
http://mygpx.blogspot.com
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5662

PostPosted: Thu Mar 13, 2008 10:13 am    Post subject: Reply with quote

Since a) most phones have memory card these days and b) TB is signed, this option is just a "reminder" of the past...
Map can be put into jar - it helped to avoid confirmation prompts and/or use map in phones without memory card.
Back to top
View user's profile Send private message
Kiikonen



Joined: 01 Apr 2008
Posts: 9

PostPosted: Tue Apr 01, 2008 12:02 pm    Post subject: Reply with quote

It seems thet there's even another problem in running the cutter on Vista. Hitting "Start" causes no action at all. Do I have to try the Python-version and install the Python, which I don't have yet, or is this possible to fix with some future update? Everything else should be okay, I calibrated the maps with Map Calibrator and so on used the .gmi- calibration file.

I don't use multiple platforms on my computer.

edit. "Pull it back!" My problems are solved. That administrator-thing had to be mentioned also in another place I already hadn't noticed.

Thanks for this ultimate tool!
Back to top
View user's profile Send private message
kaleda



Joined: 09 Nov 2007
Posts: 11

PostPosted: Thu Jun 05, 2008 12:16 pm    Post subject: Reply with quote

Since now TrekBuddy can handle JPEG files, could it be possible to add JPEG support to pyTBcutter?
Back to top
View user's profile Send private message
athanis



Joined: 18 Aug 2007
Posts: 10

PostPosted: Tue Jul 15, 2008 8:11 am    Post subject: Reply with quote

Hi, can somebody tell me what is the best tile width and height for a nokia N70?
Thanks in advance, and thanks for the tool.

----------------

----------------
escoltant : J.B.Culla, C.Capdevila, G.Lienas, J.Barbeta, J.Tàpia i X.Campos - 14/07/08
via FoxyTunes
Back to top
View user's profile Send private message
kimlo



Joined: 25 Dec 2007
Posts: 51

PostPosted: Tue Jul 15, 2008 9:22 am    Post subject: Reply with quote

athanis wrote:
Hi, can somebody tell me what is the best tile width and height for a nokia N70?
Thanks in advance, and thanks for the tool.



----------------

----------------
escoltant : J.B.Culla, C.Capdevila, G.Lienas, J.Barbeta, J.Tàpia i X.Campos - 14/07/08
via FoxyTunes


300x400
Back to top
View user's profile Send private message Send e-mail Visit poster's website
semik



Joined: 18 Jul 2008
Posts: 27
Location: Kladno

PostPosted: Mon Sep 15, 2008 8:41 pm    Post subject: TBcutter.pl Reply with quote

TBcutter runs on Windows = very CPU intensive in VMware on Linux.

pyTBcutter produces bit weird output - it doesn't mantain same color palete over all titles and result output map changes colors when scroling. I do not know Python, so I've written my version in perl. Usage:

Usage: TBcutter.pl [options] -f <filename>

Posible options:
-f filename to work on
-n sugested and minimum title size (512)
-m maximum title size (1024)
-c colormap (undef)
-q quality (100)

I run TrekBuddy on E51 (S60) phone with slow TAR access (and I do not like running helper daemon) So I tried increase bit title size for better SD card usage. My TBcutter.pl mantain title size between -n and -m sizes to prevent creating small titles 1024x1024 is fine for E51 but I usualy use 512x512 (google).

For best results it is needed to suply color palete with -c switch. Study imagemagick and -unique-colors option (at least version 6.3.7).

I also implemented inverse operation. I re-cuted some maps downloaded from Internet to achieve better SD card usage.



TBcutter.pl.gz
 Description:

Download
 Filename:  TBcutter.pl.gz
 Filesize:  1.35 KB
 Downloaded:  469 Time(s)


merge.pl.gz
 Description:

Download
 Filename:  merge.pl.gz
 Filesize:  969 Bytes
 Downloaded:  180 Time(s)

Back to top
View user's profile Send private message Visit poster's website
jose1711



Joined: 06 Feb 2009
Posts: 18

PostPosted: Thu Feb 19, 2009 9:53 pm    Post subject: Reply with quote

hello,

for all linux users concerned about the performance of the map cutting process i made a small benchmark. i noticed the TBCutter.pl script uses imagemagick to cut the map and it's not a secret that imagemagick suite is not very well optimized so i compared it to graphicsmagick and netpbm.

here's my testing configuration:
notebook latitude d600, 1 gb ram, arch linux, kernel 2.6.27.6, libpng 1.2.34

input file: map of kosice (slovakia) - resolution: 8000 x 12684 (png and pnm format), 8bit, png = 14.3 MB, pnm = 304 MB

tested program versions:
imagemagick 6.4.9.2, graphicsmagick 1.3.5, netpbm 10.35-608 (10.35.41)

how the test was performed:
an input file was cut into 7 800x800 tiles, the tiles were selected to spread more or less all around the image. the total running time was measured using time command (real), 5 runs were taken, each preceded by a system reboot (runlevel 3 - console).
the following scenarios were considered:
- imagemagick:
7x convert input.png -crop 800x800+x+y tmpX.png
- graphicsmagick (png2png):
7x gm convert input.png -crop 800x800+x+y tmpX.png
- graphicsmagick (pnm2png):
7x gm convert input.pnm -crop 800x800+x+y tmpX.png
- netpbm:
7x ( pnmcut -l x -t y -h 800 -w 800 input.pnm >tmpX.pnm; pnm2png tmpX.pnm tmpX.png )

here are the results [mm:ss.sss]:
Code:

imagemagick:
1: 01:15.382
2: 01:15.481
3: 01:14.943
4: 01:15.400
5: 01:15.054

graphicsmagick (png -> png):
1: 01:05.619
2: 01:06.005
3: 01:05.361
4: 01:05.547
5: 01:05.534

graphicsmagick (pnm -> png):
1: 00:26.562
2: 00:27.512
3: 00:27.853
4: 00:27.445
5: 00:27.217

netpbm:
1: 00:23.148
2: 00:22.384
3: 00:23.050
4: 00:22.344
5: 00:21.785


average times:
Code:

imagemagick          75.252 s
graphicsmagick (png) 65.613 s
graphicsmagick (pnm) 27.318 s
netpbm               22.542 s


so i made the following conclusions:
1. graphicsmagick is slightly (approx. 13 %) faster than imagemagick
2. the absolute winner in terms of cropping speed is netpbm
3. processing uncompressed (pnm) image is up to 3.4x faster than with compressed (png) one. the obvious disadvantage is more disk space required + additional time to convert the file (converting file used in the test from png to pnm took 23.5 to 27 seconds - depending on the tool)

hope someone finds this useful.

cheers,

jose
Back to top
View user's profile Send private message
16stonepig



Joined: 03 Apr 2009
Posts: 6

PostPosted: Wed Apr 08, 2009 9:29 pm    Post subject: Reply with quote

I'm having trouble with TBCutter. I'm using Map Calibrator to create a GMI for an exported UK map. In Map Calibrator, the correct Lat and Long are being displayed for any point on the map I choose.

However, when I slice it up using TBCutter and import onto my blackberry, the map is about 200m out. The GPS position reported by the blackberry is correct, so the problem must be something to do with transforming the original map file into tiles.

Can anyone help? Where should I be looking to troubleshoot this?
Back to top
View user's profile Send private message
guest



Joined: 08 Oct 2006
Posts: 4883

PostPosted: Tue Jul 28, 2009 5:25 pm    Post subject: Reply with quote

This sounds like a problem of Map Datums, make sure everything is working in WGS84.
Back to top
View user's profile Send private message Visit poster's website
roger4x4



Joined: 22 Aug 2009
Posts: 1

PostPosted: Sat Aug 22, 2009 8:47 pm    Post subject: Excellent!!! Reply with quote

loonycartoon wrote:
For Vista right click on TB Cutter.exe and then click on Run as administrator
then in the next window click on Allow



This was driving me crazy! Thanks a lot!!!!
Back to top
View user's profile Send private message
billy06



Joined: 01 Oct 2008
Posts: 434
Location: Lowestoft U.K

PostPosted: Sat Aug 22, 2009 9:18 pm    Post subject: max image size Reply with quote

is there a max image size tb cutter can handle or is it memory dependant ? thanks for a great app
_________________
Nexus 5X, Nexus 5, Nexus 7 3G, HTC Sensation, nokia 5800. web:www.thetrekbuddies.co.uk . Twitter:http://twitter.com/TheTrekbuddies
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    TrekBuddy Forum Index -> Tools All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 3 of 4

 
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