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 10-04-2014, 10:04   #1
Registered User

Join Date: Nov 2011
Posts: 9
need help

I have downloaded this but I don't know how or where do I install it
I have mapcal can someone help me


mc2bsbh: converts georeference format from MapCal to BSB header
Usage: mc2bsbh [-d] [-s chartname] [-o outfile | -e extension] [-l] <infile>
<infile> : the output from MapCal - normally CHARTCAL.DIR
-d : this is debug mode. It prints out a bunch of garbage
-s chartname : convert a single chart header from <infile>
-o outfile : to specify your own header file name
-e extention : to specify your own header extension
-l : to print out just the list of charts in <infile>
For information look at MapCal Utilities
For help visit forum at OpenCPN - Cruisers & Sailing Forums
mikepeterf is offline   Reply With Quote
Old 10-04-2014, 20:14   #2
Obsfucator, Second Class
 
dacust's Avatar

Join Date: Feb 2008
Location: Southeast USA.
Boat: 1982 Sea Ray SRV360
Posts: 1,745
Re: need help

Quote:
Originally Posted by mikepeterf View Post
I have downloaded this but I don't know how or where do I install it
I have mapcal can someone help me


mc2bsbh: converts georeference format from MapCal to BSB header
Usage: mc2bsbh [-d] [-s chartname] [-o outfile | -e extension] [-l] <infile>
<infile> : the output from MapCal - normally CHARTCAL.DIR
-d : this is debug mode. It prints out a bunch of garbage
-s chartname : convert a single chart header from <infile>
-o outfile : to specify your own header file name
-e extention : to specify your own header extension
-l : to print out just the list of charts in <infile>
For information look at MapCal Utilities
For help visit forum at OpenCPN - Cruisers & Sailing Forums
Easiest way is for you to start doing one. We can walk you through the steps.

You don't install mc2bsbh, you just need to run it with the right files set up as input.

On the MapCal Utilities link, scroll down until you see the "Requirements:" heading.

You have MapCal and mc2bsbh, you also need tif2bsb and ImageMagick. tif2bsb doesn't need installation, but I think ImageMagick does. You'll just need to look on their web pages to see.

Once you have the pieces, you can scroll down a little further to the "Steps for Use" section.

The gist is:
First you calibrate a chart using MapCal.
Last you create the chart using tif2bsb

In between you have to convert some stuff because the stuff that comes out of MapCal is not in the format needed by tif2bsb.

Additionally, the image you want to calibrate may not be in a format that MapCal can use, so you MIGHT have to convert the image before calibrating.

SO, first download the other pieces, then get an image to calibrate. Post the image in here so we can see what your are working with, and we'll step you through.

I just noticed a typo on the page. The very last step before the diagram, it says "tif2bsbh", should just be "tif2bsb".

-dan
dacust is offline   Reply With Quote
Old 11-04-2014, 06:58   #3
Registered User

Join Date: Nov 2011
Posts: 9
Re: need help

ok I have downloaded everything I need ,,tif2bsb ,,mc2bsbh, and ImageMagic i have a chart that im trying to convert im sending 1 in a jpg
Attached Thumbnails
Click image for larger version

Name:	2111_PUERTO SALAVERRY A.jpg
Views:	413
Size:	438.5 KB
ID:	79147  
mikepeterf is offline   Reply With Quote
Old 11-04-2014, 19:30   #4
Obsfucator, Second Class
 
dacust's Avatar

Join Date: Feb 2008
Location: Southeast USA.
Boat: 1982 Sea Ray SRV360
Posts: 1,745
Re: need help

OK, first trick is getting the .jpg into a format that MapCal can read. It can use ,bmp and I THINK .png and maybe one more? I use .bmp.

There are ways to set the PATH variable in Windows to make commands all work from within a working directory. If you are going to do a lot of them, you'll want to do that. But for now, let's just do it the quick and dirty way. It is quick, but it is dirty because if you don't clean up after yourself, you'll lose things and leave garbage in your program directories. So, keep track of what you put where.

You have the directories for the programs, make a directory for charts, and make a directory called 2111. That's the chart number. We are going to use this name a lot of times, so we want it short, but unique. This directory is where we will keep a copy of each of the items we make for the chart. So, you'll end up with a 2111.bmp, 2111.hdr, 2111.kap, etc.

So, first one. Copy the chart into that directory and name it 2111.jpg (lower case jpg).

Next, the dirty part, instead of working on the jpg there, copy it into the directory where you have ImageMagik.

Now, start > run > cmd.exe
This will bring up a command window. You'll be in here a lot.
CD to the directory for ImageMagick. If you then type
dir
and press enter, you should see all the ImageMagick programs and also the 2111.jpg. If you see this, you are in the right place.

To convert it to a bmp, type in
convert 2111.jpg 2111.bmp
and press enter
Now do a dir again and you should see the .bmp

Copy 2111.bmp that to your 2111 directory.

Next, we want to calibrate the chart. Start MapCal and open the chart 2111\2111.bmp.

See if you can calibrate the chart using the directions in the help or on the website. If not, ask questions in here.

The hints are:
Calibrate 3 points towards the corners.
Make sure to draw the border around the usable part of the chart.
ABSOLUTELY, once you are done, take the option that says "Save calibration". It will not ask you where to save it. It will just automatically save it to a file called CHARTCAL.DIR.

Once you are done, copy CHARTCAL.DIR to the 2111 directory and also post it here so I can see it.

-dan
dacust is offline   Reply With Quote
Old 12-04-2014, 13:13   #5
Registered User

Join Date: Nov 2011
Posts: 9
Re: need help

so far so good up till here where do I put the bmp in ImageMagik theres like 5 folders im lost here
mikepeterf is offline   Reply With Quote
Old 12-04-2014, 16:15   #6
Obsfucator, Second Class
 
dacust's Avatar

Join Date: Feb 2008
Location: Southeast USA.
Boat: 1982 Sea Ray SRV360
Posts: 1,745
Re: need help

Just so I can keep it straight, can you post a list of the folder names?

The .bmp should go in the 2111 folder.

So, the 2111 folder should contain 2111.jpg and 2111.bmp

MapCal can handle getting the 2111.bmp from any folder, so for this one time we won't copy it to a different folder to work on it.

Once you get it calibrated, you need to copy CHARTCAL.DIR from the MapCal folder to 2111.

-dan
dacust is offline   Reply With Quote
Old 14-04-2014, 07:41   #7
Registered User

Join Date: Nov 2011
Posts: 9
Re: need help

ok so far I think so good I have the calibrated, chart CHARTCAL.DIR it wont let me attach it here so if you can give me the next steps ill try it
mikepeterf is offline   Reply With Quote
Old 14-04-2014, 19:05   #8
Obsfucator, Second Class
 
dacust's Avatar

Join Date: Feb 2008
Location: Southeast USA.
Boat: 1982 Sea Ray SRV360
Posts: 1,745
Re: need help

Copy CHARTCAL.DIR to the folder with mc2bsbh.

Then from cmd.exe, cd to that directory and run:
mc2bsbh CHARTCAL.DIR -s 2111

It should output a 2111.hdr file. Copy that to the 2111 directory.

If you did not name the chart 2111, you either need to change that in the above command, or you could also just do
mc2bsbh CHARTCAL.DIR
- that will produce a .hdr file for every chart calibrated in CHARTCAL.DIR.

You are almost done, now.

You probably still have the 2111.jpg and 2111.bmp in the ImageMagik folder, right? Just cd to that directory and run the following two commands.
convert 2111.jpg -colors 127 2111.gif
convert 2111.gif -colors 127 2111.tif

Now, copy 2111.gif and 2111.tif to the 2111 directory. (we don't really need the .gif, but what the heck)

So, now you need two of these to make to final chart.

Copy 2111.hdr and 2111.tif to the tif2bsb folder.
cd to the directory and run:
tif2bsb -c 127 2111.hdr 2111.tif 2111.kap

You should now have a 2111.kap which is the actual chart. So, copy it to the 2111 directory.

NOW you are ready. copy the 2111.kap to a directory for your charts. Whever you want. Then, in OpenCPN, go into the chart manager and add that directory to the chart list and let it rebuild the data base.

You should be able to see your chart,

To clean up, just delete the 2111.xxx files from all the directories EXCEPT the 2111 directory. Now you're ready to do another one.

If you have a problem in the above steps, first thing to do is attach the CHARTCAL.DIR and 2111.hdr in here. You can do that by making a copy and name it CHARTCAL.DIR.PDF and 2111.hdr.pdf. The PDF will let you attach it. I'll just have to download it and rename it back so I can look at it.

-dan
dacust 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
Need Help - What Paper Charts Do I Need? CaptainBW Navigation 0 01-03-2012 11:32
I Need Help . . . But Don't Even Know what I Need Mr B Marine Electronics 9 27-09-2011 13:58
Need crew for Pacific passage? I need to escape! Sturgomatic Crew Archives 1 11-03-2009 10:28
Need help here ! 29cascadefixer General Sailing Forum 25 26-04-2008 20:54
Need help about polishing stainless plate By Invitation General Sailing Forum 13 03-08-2005 21:45

Advertise Here


All times are GMT -7. The time now is 21:16.


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.