Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 27-06-2014, 12:46   #1
Registered User

Join Date: Oct 2010
Location: San Blas MX/ Vancouver Canada
Posts: 13
Kap testing tool?

I'm making some charts from scanned images and some charts from converted jpgs with mapcal following the chart conversion manual. The scanned charts are working fine, but the converted jpgs crash, suggesting the resulting files are corrupt in some way.

Does anyone know of a kap file testing utility or have any suggestions on what to look for in the final kap to determine what my problem is?

Thanks
__________________

__________________
avant is offline   Reply With Quote
Old 27-06-2014, 12:57   #2
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,248
Re: Kap testing tool?

Quote:
Originally Posted by avant View Post
I'm making some charts from scanned images and some charts from converted jpgs with mapcal following the chart conversion manual. The scanned charts are working fine, but the converted jpgs crash, suggesting the resulting files are corrupt in some way.

Does anyone know of a kap file testing utility or have any suggestions on what to look for in the final kap to determine what my problem is?

Thanks
There is no kap file testing tool. The key is to understand the format of the text portion of the kap files. See imgkap and the kap file | Official OpenCPN Homepage and The BSB/KAP file format. | Official OpenCPN Homepage.

You can check the opencpn.log for possible hints.
Otherwise, attach the corrupt chart-file to a post on this forum. I and others will try to help you.

Thomas
__________________

__________________
cagney is offline   Reply With Quote
Old 27-06-2014, 14:06   #3
Registered User

Join Date: Oct 2010
Location: San Blas MX/ Vancouver Canada
Posts: 13
Re: Kap testing tool?

here is the header, copied from the file:

! Created by mc2bsbh beta09 - Use at your own risk!
VER/2.0
BSB/NA=point conception to isla cedros
NU=18000,RA=7277,5742,DU=167
KNP/SC=950000,GD=WGS84,PR=MERCATOR,PP=UNKNOWN
PI=UNKNOWN,SP=UNKNOWN,SK=0.0,TA=90.0
UN=METERS,SD=UNKNOWN
DX=144.67,DY=144.67
OST/1
REF/1,1396,1106,34,-124
REF/2,1392,4062,30,-124
REF/3,6422,4060,30,-116
REF/4,5164,1106,34,-118
CPH/0.0
PLY/1,34.9900649,-125.998657
PLY/2,28.0130841,-125.990879
PLY/3,28.003642,-115.003946
PLY/4,34.9954469,-115.006118
DTM/0,0

I think some of the 'unknown' values being missing is the problem, but i am at a loss as to why they are missing! in the manual it is unclear/unspecified as to which values are required and which allow an unknown value. for some values (like SD) there is no apparent entry point in mapcal to address them (at least i don't see it).

the kap is too big to attach at 1.32Mb, i can forward on request

thanks
__________________
avant is offline   Reply With Quote
Old 28-06-2014, 05:00   #4
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,248
Re: Kap testing tool?

I think that you are right.
Did you check the opencpn.log?

"PP=UNKNOWN", will not go down well with OpenCPN.
For a Mercator chart it should be the latitude where the chart scale is valid or
0.0 .
This is never an UNKNOWN value, and is a bug.

Open the kap file in a hexeditor, change the value and run "bsbfix".

If this does not work upload your file to one of the free Internet temporary storage services and publish the link here.

Thomas
__________________
cagney is offline   Reply With Quote
Old 02-07-2014, 22:00   #5
Obsfucator, Second Class
 
dacust's Avatar

Cruisers Forum Supporter

Join Date: Feb 2008
Location: Southeast USA.
Boat: 1982 Sea Ray SRV360
Posts: 1,743
Re: Kap testing tool?

It would also be nice to see the CHARTCAL.DIR so we can follow it through the code.

mc2sbsh beta 09 is the latest and hasn't changed since Jan 27, 2010.

The header above says MERCATOR, which should mean CHARTCAL.DIR had PR=1. Looks like to me that mc2bsbh will output PP=UNKNOWN as long as there is no CR PP.

Best I can tell, PP is only set if it is TRANSVERSE MERCATOR (PR=2) or if it was put in the manual comment lines (CR line with a PP parameter specified).

In version 1-3 it set pp=lon0 unless override
In version 4-6 it only set pp if override
We then skipped to version 9 for release

-dan

EDIT: Forgot to put that if PR=2, it sets PP=the number from the CHARTCAL LON0 field (unless there is a CR/PP override). This code was part of that very last update in Jan 2010.
dacust is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Imgkap - kap File Converter Tool MdJ OpenCPN 222 12-11-2015 17:15
Water Testing Tool or Kit Recommendations ? msulc Plumbing Systems and Fixtures 18 01-04-2011 10:06
Let's See Your Boat's Workbench, Tool Shed, Tool Box . . . Ocean Roads Construction, Maintenance & Refit 46 12-10-2010 17:22
Affordable BSB/KAP Charts from JA Rogers CaptMarc Product or Service Reviews & Evaluations 4 16-03-2010 15:18
Load Testing and Conductance Testing Joe500 Electrical: Batteries, Generators & Solar 0 02-12-2009 16:12



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 06:03.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.