Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 11-01-2010, 14:23   #121
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Don B
I made a png of the attached file. Opened perfectly in MapCal!
Thomas
cagney is offline   Reply With Quote
Old 12-01-2010, 03:32   #122
Registered User
 
Don B. Cilly's Avatar

Join Date: Dec 2009
Location: Ibiza, Spain
Boat: At the moment, Chrome on Ubuntu I'm afraid, but I take out lots of little ones
Posts: 59
Quote:
Originally Posted by cagney View Post
I made a png of the attached file. Opened perfectly in MapCal!
Yes. Yes. I said "disregard" :)
I just fell victim to the betatester curse, I just had to send you the wrong file. As Soap was saying in that movie about assumptions...

I did some reasonably thorough testin'.
(Note: this applies to mapcal with wine. In Windows they all open).
It has to do with size. It's not exact. The black icons also have to do with size, but it's a different thing, although it's easy to get misled, as I was, the threshold is different.

With BMPs, mapcal won't open anything over (roughly) 13 megs.
With pngs, see attached text file, it varies, (probably depending on color depth or something) but it's definitely a size thing, around 400K seems to be the thing.

Note: Loads slow means just that, NO means just that too, I am positive they won't load however much you wait, apart from trying (to wait) you can see it immediately from CPU load, the NOs give up almost immediately, the slows take the CPU load way up for a few seconds (up to 10 or so).

We should have some good clues for Mr. Holmes now, the ones I gave before were pretty useless.

- D.
Attached Files
File Type: txt chartresults.txt (862 Bytes, 76 views)
Don B. Cilly is offline   Reply With Quote
Old 12-01-2010, 13:27   #123
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Quote:
Originally Posted by cagney View Post
One thing that must be possible to do with ImageMagic is to automate what I did with Gimp.
*Find a command that add some colors in the upper left corner.
*Save the new picture, perhaps as png, and then transform it to gif and finally tif, in the usual way.
I think this will force the picture to be acceptable to tif2bsb.
Anyone with some deeper knowledge in ImageMagic??
I'll do some RTFM:ing later.......

Thomas
I have found a way with ImageMagic:
Quote:
convert test.gif -font courier -fill red -gravity SouthEast -pointsize 10 -annotate +3+18 'OpenCPN' annotate.gif
This command writes the text 'OpenCPN' in font-size 10 in red text in the lower right hand corner of the picture 'test.gif' and saves this as the new picture 'annotate.gif'
When converting annotate.gif to a .tif image I get
Quote:
BITSPERSAMPLE=8
which should work just fine with tif2bsb.

Thomas
cagney is offline   Reply With Quote
Old 13-01-2010, 16:05   #124
Registered User
 
Don B. Cilly's Avatar

Join Date: Dec 2009
Location: Ibiza, Spain
Boat: At the moment, Chrome on Ubuntu I'm afraid, but I take out lots of little ones
Posts: 59
I'd like to know,
those of you who use MapCal with Wine, do you have the same size problems, or is it my hardware that's not up to it?
I only have a little netbook with an Atom and 1Gig ram at the moment, as my Cray is presently on loan to Spectre I have no way to test it otherwise...

- D.
Don B. Cilly is offline   Reply With Quote
Old 13-01-2010, 16:12   #125
Obsfucator, Second Class
 
dacust's Avatar

Join Date: Feb 2008
Location: Southeast USA.
Boat: 1982 Sea Ray SRV360
Posts: 1,745
Quote:
Originally Posted by Don B. Cilly View Post
I'd like to know,
those of you who use MapCal with Wine, do you have the same size problems, or is it my hardware that's not up to it?
I only have a little netbook with an Atom and 1Gig ram at the moment, as my Cray is presently on loan to Spectre I have no way to test it otherwise...

- D.
You blew it. You never loan out your truck, and you never, Never, NEVER loan out your Cray.

-dan
dacust is offline   Reply With Quote
Old 13-01-2010, 16:33   #126
Registered User
 
Don B. Cilly's Avatar

Join Date: Dec 2009
Location: Ibiza, Spain
Boat: At the moment, Chrome on Ubuntu I'm afraid, but I take out lots of little ones
Posts: 59
You never argue with Spectre either, only my cousin James B. (another branch of the family) does that.
__________________
https://gandalf.it/astronav/
Don B. Cilly is offline   Reply With Quote
Old 13-01-2010, 17:19   #127
Obsfucator, Second Class
 
dacust's Avatar

Join Date: Feb 2008
Location: Southeast USA.
Boat: 1982 Sea Ray SRV360
Posts: 1,745
Quote:
Originally Posted by Don B. Cilly View Post
You never argue with Spectre either, only my cousin James B. (another branch of the family) does that.
OK. Point taken.
dacust is offline   Reply With Quote
Old 17-01-2010, 15:29   #128
Registered User
 
Don B. Cilly's Avatar

Join Date: Dec 2009
Location: Ibiza, Spain
Boat: At the moment, Chrome on Ubuntu I'm afraid, but I take out lots of little ones
Posts: 59
Well well well,
my heartfelt thanks to all you guys, lack of Crays notwithstanding, my Western Mediterranean is beginning to look good:



The Eastern part looks just as good actually. Now for the North Atlantic and the Caribbean...
As soon as this does develop into an open chart standard, I'll have quite a few nice and reliable charts for ya'll.

- D.
Don B. Cilly is offline   Reply With Quote
Old 17-01-2010, 16:01   #129
Registered User
 
sinbad7's Avatar

Join Date: Sep 2003
Location: Ubatuba,SP,Brazil (Ex Norway)
Boat: (Ex) Alu. 60' yacht-"Eight Bells"
Posts: 2,731
Images: 57
Send a message via Skype™ to sinbad7
Open chart standard?

Don.B.Cilly..

Seems a little 'Cilly' to display your commercial .bsb charts of the Med in this Open Chart Standard thread?
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 18-01-2010, 10:25   #130
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Congratulations Don!

I can see that you have been working hard with your chart conversions. Thank you for making me have a second go at all them tiles

Thomas
cagney is offline   Reply With Quote
Old 18-01-2010, 13:04   #131
Registered User
 
Don B. Cilly's Avatar

Join Date: Dec 2009
Location: Ibiza, Spain
Boat: At the moment, Chrome on Ubuntu I'm afraid, but I take out lots of little ones
Posts: 59
Hey Thomas,
I could certainly never have done it without that join-pcx thing. Thank you.

And Sinbad, well, we haven't got the open standard yet, have we?
Maybe I missed it..
Thanks to everyone's efforts we may be progressing towards it, though.
And what better way to start than using the charts I have?
I do have the original CDs for them, I'm not giving them away or anything, just making them usable (opencpn would not read them tiled, and Maptech won't run on linux)...but in the process learning a lot, and sharing all knowledge I can.

- D.
Don B. Cilly is offline   Reply With Quote
Old 21-01-2010, 05:02   #132
Registered User
 
Don B. Cilly's Avatar

Join Date: Dec 2009
Location: Ibiza, Spain
Boat: At the moment, Chrome on Ubuntu I'm afraid, but I take out lots of little ones
Posts: 59
Simple kap viewer

Attn. Thomas/cagney/taifun:
(but if anyone else is interested, obviously...)

How difficult would it be to write a little script (in shell/python/ruby/whatever) that
1) passes the kap filename to bsb2tif and converts it
2) opens the resulting tif in ImageViewer
3) When IV is closed, deletes the tif

so if I "open with" [kapview.sh] a kap file, I see it?

At the moment I have .kaps set to open with the hex editor :-/

- D.
Don B. Cilly is offline   Reply With Quote
Old 21-01-2010, 05:18   #133
Registered User
 
sinbad7's Avatar

Join Date: Sep 2003
Location: Ubatuba,SP,Brazil (Ex Norway)
Boat: (Ex) Alu. 60' yacht-"Eight Bells"
Posts: 2,731
Images: 57
Send a message via Skype™ to sinbad7
Don B.

Here is a utility which converts a .kap chart to .png:

It also procuces a .kap chart from a .png and a CHART.DIR file.
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 21-01-2010, 09:00   #134
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Quote:
Originally Posted by Don B. Cilly View Post
Attn. Thomas/cagney/taifun:
(but if anyone else is interested, obviously...)

How difficult would it be to write a little script (in shell/python/ruby/whatever) that
1) passes the kap filename to bsb2tif and converts it
2) opens the resulting tif in ImageViewer
3) When IV is closed, deletes the tif

so if I "open with" [kapview.sh] a kap file, I see it?

At the moment I have .kaps set to open with the hex editor :-/

- D.
Something like this?
Code:
#!/bin/sh
touch new.png
bsb2png $1 new.png
gimp new.png
unlink new.png
Change code to suit your needs.

Thomas
cagney is offline   Reply With Quote
Old 21-01-2010, 11:32   #135
Registered User
 
Don B. Cilly's Avatar

Join Date: Dec 2009
Location: Ibiza, Spain
Boat: At the moment, Chrome on Ubuntu I'm afraid, but I take out lots of little ones
Posts: 59
Quote:
Originally Posted by cagney View Post
Something like this?
Something like that indeed :-)

Quote:
Change code to suit your needs.
I just changed
Code:
gimp new.png
to
Code:
eog new.png
(which is Eye of Gnome, a lot faster than the Gimp on my non-Cray:)
I called it kapview, made it exec, put it in /usr/local/bin, right-clicked on a .kap and told it to open it with that as default.

Quick, clean (doesn't leave stuff lying around) and very useful.

Thanks, nice shot (as the French say ;)

- D.
Don B. Cilly is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Marine GeoTiff - Open Chart Standard dacust OpenCPN 12 04-11-2009 17:43
Standard Horizon Plotter Scratch Our Community 3 05-01-2009 13:45
Standard Horizon JonasB Navigation 6 05-12-2008 11:40
Standard Horizon - CP 500 Parlay III Navigation 3 04-08-2008 07:20

Advertise Here


All times are GMT -7. The time now is 23:38.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.