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 15-09-2012, 21:46   #196
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,423
Re: Imgkap - kap File Converter Tool

denverdOn,
break it up if you like. You are making a rat-chart, but just check it out against a list of lights and other known positions to get a feel for the accuracy.
... The idea is to get a clear practical chart within it's scale of USE. All rasters (kaps) have some distortion so making a small scale chart bigger does not make you safer. The positions cannot all be as accurate as a large scale chart.


For a model, as to what we are saying, download some kaps from the US .See how they size them. It's a technique, that I don't say I've mastered, but I know it exists!

However, be that as it may, that you can't match my example, on your computer, is troubling. So, the next question will be, "What is your screen size in pixels?" My screen is 1024 x 768 across. (I would put on my creep hat, and deduce yours from a screen grab you posted, but I see you haven't one)
HappySeagull is offline   Reply With Quote
Old 16-09-2012, 02:32   #197
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: Imgkap - kap File Converter Tool

Quote:
Originally Posted by denverd0n View Post

I like the fact that it has a lot of detail, so I kind of hate to lose that. Do you think it would help to break it up into, say, four separate charts? But keep the current level of resolution in each?

.
The chart has not a lot of details, but is a good overview. It's not good enough to enter Gorda Sound for example (see pics below).
By going for a smaller size and lower resolution you will not loose any details. Check the NGA projects thread, this subject was discussed a lot.

Let's look at an example:

Click image for larger version

Name:	high_gorda.png
Views:	218
Size:	192.0 KB
ID:	46599
Entrance to Gorda Sound using your original. A zoom factor of 2.8.

Click image for larger version

Name:	low_gorda.png
Views:	220
Size:	148.3 KB
ID:	46600
The same thing with "my" smaller version.

As you ca see there is no loss in navigation details, but your version is slightly clearer. Note that both charts are a little over zoomed.
With your version you can zoom much more before noting pixilation, but that does not make the chart any more accurate. The accuracy of the chart is based on the original survey and has nothing to do with the size and resolution of the chart picture, as long as the picture is non pixilated at a zoomfactor of 2. Why just 2? Because normally any chart is based on a survey in twice the scale of the final chart. Read more about this subject in Nigel Calders excellent book "How to read a Nautical Chart", recently updated with a second edition.

My conclusion is still the same .

Thomas
cagney is offline   Reply With Quote
Old 17-09-2012, 06:01   #198
Registered User
 
denverd0n's Avatar

Join Date: Jun 2008
Location: Tampa, FL
Posts: 5,021
Images: 6
Re: Imgkap - kap File Converter Tool

Thanks again for all your help. I shrunk the original .png file down and recreated the .kap and now all seems to be okay. I guess OpenCPN just doesn't like files that are too big.
denverd0n is offline   Reply With Quote
Old 17-09-2012, 07:19   #199
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,423
Re: Imgkap - kap File Converter Tool

naah. O likes big files ok. If your printed charts were four times the size they are now, you'd want smaller ones, I bet.
HappySeagull is offline   Reply With Quote
Old 06-12-2012, 06:44   #200
Registered User

Join Date: Jan 2012
Posts: 53
Re: Imgkap - kap File Converter Tool

Hi MdJ,

First off I really like what imgkap can do.

I have some global bathymetric data that I wanted to view on opencpn as a kap. However the code doesn't seem recognize the special case where lon0=lon1 to mean the globe rather than zero:

imgkap gda_world_70N_120E_70S_120E.png 70 120 -70 120

gedit imERROR - size of image is not correct
Extend widthin 6762 heightin 3723 to widthout 6762 heightout 0
ERROR - imgkap return 2

I was just curious is there a better way to specify this or does the code need some modification?

Thanks,
Eric
Eric. is offline   Reply With Quote
Old 06-12-2012, 08:08   #201
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Imgkap - kap File Converter Tool

Eric...
I would probably cut the chart image in two (or even more to speed loading up) as a workaround. With quilting on, the resulting effect will be fine.

Pavel
nohal is offline   Reply With Quote
Old 08-12-2012, 04:32   #202
MdJ
Registered User

Join Date: Jul 2010
Location: France
Boat: Etap 22i
Posts: 65
Re: Imgkap - kap File Converter Tool

Hello Eric,

imgkap limit the latitude values ​​to +/-180°

Cut image seems to be the best solution.

Another solution is to generate kap file with -180/+180 and then change header with 120°

> Imgkap gda_world_70N_120E_70S_120E.png -70 -180 70 180
> Impgkap gda_world_70N_120E_70S_120E.kap header.txt

Change in header.txt -/+180 to 120 (PLY and REF)
> Imgkap gda_world_70N_120E_70S_120E.png header.txt

But same problem may arise for software display as OpenCPN

Alain
MdJ is offline   Reply With Quote
Old 06-01-2013, 09:36   #203
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,423
Re: Imgkap - kap File Converter Tool-No calibration tool needed.

I don't recall it being mentioned before in this thread so:

It's possible to extrapolate two diagonal corners from any two known positions. No calibration tool is needed. Just a useful image viewer to find x,y pixel positions of these Positions and some arithmetic to discover the positions of the diagonal corners of the chart image from these.
imgkap offers the correction values if you have it "wrong".
Resize image accordingly and run the command again.
HappySeagull is offline   Reply With Quote
Old 22-03-2013, 05:29   #204
Registered User

Join Date: Jan 2007
Posts: 20
Re: Imgkap - kap File Converter Tool

Hi
I seem to hit a snag in convert GE images to KAP and I have not seem a similar post.

I am trying to build a series of GE images to cover a large bay. I have divided the bay into 4 images that share common edges. I convert "imgkap" each image separately and loading them in Open Cpn, the individual image load Ok and no problems. If I load any more than a single image (2, 3 or all 4) only one of the images is correct but the others are not.

Now this is the strange part. The incorrect loaded image(s) initially looks OK but as soon as I scroll the overall image, the GE image does not stay pin to the background image . As you can see from the attached screen shot.

Any suggestions??

Cheers Tom
Attached Thumbnails
Click image for larger version

Name:	IMGKAP.JPG
Views:	219
Size:	57.4 KB
ID:	57570  
onehalfmoon is offline   Reply With Quote
Old 22-03-2013, 09:25   #205
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: Imgkap - kap File Converter Tool

Quote:
Originally Posted by onehalfmoon View Post
Hi
I seem to hit a snag in convert GE images to KAP and I have not seem a similar post.

I am trying to build a series of GE images to cover a large bay. I have divided the bay into 4 images that share common edges. I convert "imgkap" each image separately and loading them in Open Cpn, the individual image load Ok and no problems. If I load any more than a single image (2, 3 or all 4) only one of the images is correct but the others are not.

Now this is the strange part. The incorrect loaded image(s) initially looks OK but as soon as I scroll the overall image, the GE image does not stay pin to the background image . As you can see from the attached screen shot.

Any suggestions??

Cheers Tom
Check what opencpn.log has to say about your charts.

Thomas
cagney is offline   Reply With Quote
Old 03-04-2013, 08:29   #206
Registered User

Join Date: Feb 2013
Posts: 8
Re: Imgkap - kap File Converter Tool

Hey HappySeagull,
I was hoping to use imgkap to generate a static image from kap files, based off my current location. As in a nautical version of the google chart on this page: Bad Wolf

However, while I can convert the .kap to a png as a whole, is there a way of doing it for only a specified location of the chart? Or do I have to read the headers myself, figure out the coordinates and distance/pixel, and use imagemagick to zoom in on the area?
KyleYankan is offline   Reply With Quote
Old 03-04-2013, 22:23   #207
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,423
Re: Imgkap - kap File Converter Tool

KyleYankan,
Using screen grabs....

Method 1 is simplest.
1)zoom to the level you want..
2)push the cursor into the corners of the chart and write down the two diagonal corner positions (O shows cursor position on the bottom)
3) screengrab and carefully crop the screengrab ...
4)offer it all to imgkap..

IF you get the positions-versus-pixels wrong, imgkap will tell you- in that case, if you are not far off,try a resize of the image as imgkap directs.I found I got pretty good at cropping pretty fast, so it mostly worked with no hiccups.

Tip: get O to use decimal degrees in the User Interface Tab...easier for this stuff,I find.

Method 2
1) you can just create a box route with O's route-manager being careful as to directions ie:90,then180,then270 then 360...(and O will ask, "Use the waypoint?" voila the box is closed.Now,IF you like, double-check the marks you made so that the box really is rectangular in the mercator way by editing the corner positions ...(in a clockwise-made box,upper left latitude =upper right latitude ,upper right long =lower right longitude,etc.) Do this so the crop works nicely even though you only need the two diagonal corners for imgkap
2) then make a screen-grab
3)carefully crop the screen-grab to the route- box and save it(...I try to bisect the route arrows)
4)use the (ahem) "route"'s positions of the corners you can read out of O's Route-Manager or, if you like, from an exported gpx...easier to copy and paste from these..
4)offer it all to imgkap..

there's sort of an example here: if you can get by the obsolete clucking http://www.cruisersforum.com/forums/...tml#post657151


There's a third way- finding lat/long of corner pixels by extrapolating from known positions on a screen grab OR a cropped chart image. I can't see any quality difference between screengrab and chart image but ...I'll explain it if you think you need it.

By the way, I think phiggins' GE2KAP can do this!
HappySeagull is offline   Reply With Quote
Old 04-04-2013, 08:55   #208
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,423
Re: Imgkap - kap File Converter Tool

...I'd say I prefer the route-crop method...just square up the box in the Waypoint Properties dialogues at each corner by copy+paste to the NEXT wpt...ie: copy upper left corner lat to upper right then copy upper right Long to lower right then copy lower right lat to lower left etc etc....You can also be pasting these into a .cmd or .bat file as you go, to save time.
Another tip...Use combination CTRL and + or - keys to finely control the area for the screen grab.
Took me total much less than 5 minutes. It is really easy. (I'm using irfanview)
HappySeagull is offline   Reply With Quote
Old 25-08-2013, 09:41   #209
Registered User

Join Date: Aug 2013
Posts: 1
Re: Imgkap - kap File Converter Tool

i'm trying to extract the png from a .kap generated by imgkap but everytimes it says ERROR - Invalid index table in (null)
ERROR - imgkap return 3

could somebody help me? i put the kap file here : http://www.searchevolution.com/109.kap
germainm is offline   Reply With Quote
Old 25-08-2013, 14:44   #210
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: Imgkap - kap File Converter Tool

Quote:
Originally Posted by germainm View Post
i'm trying to extract the png from a .kap generated by imgkap but everytimes it says ERROR - Invalid index table in (null)
ERROR - imgkap return 3

could somebody help me? i put the kap file here : http://www.searchevolution.com/109.kap
The problem is that you, probably, have edited the kap file without running "bsbfix" (part of libbsb) afterwards.
To fix this just run: $bsbfix 109.kap
Then you'll get the picture with:$imgkap 109.kap 109.png

Thomas
cagney is offline   Reply With Quote
Reply

Tags
imgkap


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
Development Debugging Environment - Setup Help rgleason OpenCPN 654 04-10-2020 05:37
OpenCPN Beta Version 3.1.814 Released bdbcat OpenCPN 185 14-09-2012 07:43
Route File Transfer via SDcard to Garmin 441s four winds Navigation 11 25-02-2012 08:34
GRIB Weather Mark Ward OpenCPN 26 12-02-2012 21:33
Route Properties, Missing Functions James Baines OpenCPN 13 13-07-2011 04:31

Advertise Here


All times are GMT -7. The time now is 19:20.


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.