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 Rating: Thread Rating: 4 votes, 2.00 average. Display Modes
Old 20-03-2010, 19:07   #616
Registered User

Join Date: Nov 2009
Location: France
Posts: 63
Quote:
Originally Posted by BluegillBoy View Post
3) what I'm seeing in the file is:
bin\mc2bsbh -l %MAP% Calibration\CHARTCAL.DIR
(an "-l" rather than an "-s")
am I in the wrong place or has that command changed?
I would try this :
Code:
 bin\mc2bsbh-poly -p -s %MAP% Calibration\CHARTCAL.DIR
'-l' is for 'get the list of charts contained into infile (CHARTCAL.DIR)'
'-s' is to 'proceed for one single chart included into infile''
Quote:
4) is there anyway to get an actual .bsb file? that seems to be the key to some other nav programs.
You can get free NOAA raster charts here : Raster Navigational Charts: NOAA RNCs
Some BSB files are included.

Jean-Pascal
Totobeloeil is offline   Reply With Quote
Old 20-03-2010, 20:00   #617
Registered User
 
BluegillBoy's Avatar

Join Date: Mar 2010
Location: Chicago summers, gulf during winters
Boat: Endeavour TrawlerCat 36 - My Bluegill Heaven
Posts: 180
I'm working with KapGenAll which probably explains the "-l" list versus the "-s" single chart.

NOAA is great for the lakes and coast. But they don't offer raster charts for the waterways and canals - or the Illinois and Mississippi rivers. I'm trying to provide a full library of those in raster format.

The United States Army Corp of Engineers is responsible for those waterways, not NOAA. And the scanned charts they provide have much more detail and information that the ENCs.

Which is why I'm trying to find if there's a way to get the .HDR or .DIR headers in a .BSB formt which many of the other navigation programs need.
BluegillBoy is offline   Reply With Quote
Old 20-03-2010, 21:08   #618
Registered User

Join Date: Nov 2009
Location: France
Posts: 63
Quote:
Originally Posted by BluegillBoy View Post
I'm working with KapGenAll which probably explains the "-l" list versus the "-s" single chart.
mc2bsbh-poly is a part of KapGenAll . It replaces mc2bsbh. The '-l' option has nothing to do specifically with KapGenAll (the loop is inside the command file). That is why I propose to change the command file and run it.
Quote:
I'm trying to find if there's a way to get the .HDR or .DIR headers in a .BSB formt which many of the other navigation programs need.
KapGenAll will generate all the headers you need and incorporate them to the kap files. I'm not sure to understand why you absolutely want to make bsb files.

Jean-Pascal
Totobeloeil is offline   Reply With Quote
Old 21-03-2010, 01:59   #619
Registered User

Join Date: Sep 2009
Location: Rome
Posts: 320
Quote:
Originally Posted by BluegillBoy View Post
I'm working with KapGenAll which probably explains the "-l" list versus the "-s" single chart.

NOAA is great for the lakes and coast. But they don't offer raster charts for the waterways and canals - or the Illinois and Mississippi rivers. I'm trying to provide a full library of those in raster format.

The United States Army Corp of Engineers is responsible for those waterways, not NOAA. And the scanned charts they provide have much more detail and information that the ENCs.

Which is why I'm trying to find if there's a way to get the .HDR or .DIR headers in a .BSB formt which many of the other navigation programs need.
Hello,

KapGenAll.cmd is a batch that calls KapGen.cmd for all charts

The real work for each chart is done in KapGen.cmd

At line 41 in KapGen.cmd batch version beta06 you will find the line with the -s switch that you have to change to use the poly version of mc2bsbh.

If many people will use the mc2bsbh-poly version and do not report problems, we can make the -poly version the standard mc2bsbh (in fact the -poly version without the -p switch works exactly as the standard non poly version...)

About the BSB file, this seems not needed for many applications we have tested with the charts generated by KapGen/mc2bsbh and for sure this is not needed by the free ones OCPN and SeaClear (that are our primary target applications)

Ciao, Marco.
GPS-Marco is offline   Reply With Quote
Old 26-03-2010, 03:31   #620
Registered User
 
HamishB's Avatar

Join Date: Jan 2010
Location: New Zealand
Posts: 286
Quote:
Originally Posted by BluegillBoy View Post
The United States Army Corp of Engineers is responsible for those waterways, not NOAA. And the scanned charts they provide have much more detail and information that the ENCs.

are they georeferenced or just flat scans? i.e. can `gdalinfo` tell you lat/lon information about them?


Hamish
HamishB is offline   Reply With Quote
Old 26-03-2010, 03:47   #621
Registered User
 
HamishB's Avatar

Join Date: Jan 2010
Location: New Zealand
Posts: 286
Quote:
Originally Posted by GPS-Marco View Post
Anyway I've seen that when OCPN fails in georeferencing charts (skewed charts, non mercator charts, etc.), in these cases mc2bebh-poly reduces considerably the error. Better than nothing... Give it a try.
w.r.t. "better than nothing", well that's not quite correct anymore.

These days I am happily reprojecting aerial photos, LANDSAT imagery, etc. from arbitrary map projections into Mercator and automatically chopping away non-navigable chart-edges and then exporting them as GeoTiffs and a suitably formed header file. From there you can use tif2bsb if it is legal to do so in your country. If not just enjoy the GeoTiff in your favourite mapping software (e.g. QGIS).

The script uses GDAL and GRASS GIS tools to ensure that the georeferencing is exactly right with no tedious human digitization required. (this isn't really meant for registering maps yourself, this is more for preparing geodata already in georeferenced form)


even without that, it is very quick to use `gdalwarp` to reproject the image to Mercator before registering it. (even though that seems like double-handling to me)


regards,
Hamish
HamishB is offline   Reply With Quote
Old 26-03-2010, 09:40   #622
Registered User
 
BluegillBoy's Avatar

Join Date: Mar 2010
Location: Chicago summers, gulf during winters
Boat: Endeavour TrawlerCat 36 - My Bluegill Heaven
Posts: 180
"are they georeferenced or just flat scans? i.e. can `gdalinfo` tell you lat/lon information about them?"

they have lat/lon and gridlines printed on them. the issue has been that they're not north-up, which chokes MapCal.

however... I've been having a lot of success with Marco's poly! even tho MapCal says the E/W and N/S are reversed, it does save the ChartCal.dir and KapGen (with poly integrated into it) produces charts.

i'm gereally getting comments from KapGen projecting errors of betwee 0.6 and 2.0 pixels. (PS - I LOVE that error projecting feature, Marco. When I start seeing errors of 140 pixels, it's an instant prod to go back into calibration and find my typo!)

I'm launching the boat this weekend, and will try out the charts. sitting at home, they don't always seem to match edge to edge exactly when I scroll them with the mouse. But I really need field trials onboard to tell for sure.

more updates on Monday - I'm goin' cruisin'!!
BluegillBoy is offline   Reply With Quote
Old 28-03-2010, 19:04   #623
Registered User
 
BluegillBoy's Avatar

Join Date: Mar 2010
Location: Chicago summers, gulf during winters
Boat: Endeavour TrawlerCat 36 - My Bluegill Heaven
Posts: 180
Launched this weekend in 34-degree temps, cruised her 60 miles to our marina using OpenCPN and the charts I created - wonderful.

The original problem is the the Illinois Waterway charts aren't north-up, they're strip charts oriented to show the greatest length in a landscape format.

Got the PDF charts from USACE, calibrated using at least 4 points with MapCalII, converted using the Poly version by modifying KapGenAll to use the poly version - and that did the trick and let me do a batch convert on the charts.

All seemed accurate and seamless while underway.

One issue still remains - OpenCPN doesn't project the bearing line well. Sometimes it's accurate for the orientation of the chart, but sometimes it's projected assuming north-up even though the chart isn't north up. And sometimes it switches back and forth even on the same chart.

I can live with the "boat" symbol pointing the wrong way, but that bearing line gets distracting. Is there a way to just turn it off?

The other wish I have is for quilting, rather than only showing one chart and the njumping to the next. Wrong thread for a wish list I know.

Anyway, if anyone needs the Illinois Waterway in raster format, let me know. Always glad to share.
BluegillBoy is offline   Reply With Quote
Old 28-03-2010, 19:14   #624
Registered User
 
HamishB's Avatar

Join Date: Jan 2010
Location: New Zealand
Posts: 286
Quote:
Originally Posted by BluegillBoy View Post
One issue still remains - OpenCPN doesn't project the bearing line well. Sometimes it's accurate for the orientation of the chart, but sometimes it's projected assuming north-up even though the chart isn't north up. And sometimes it switches back and forth even on the same chart.
perhaps there is a atan() instead of atan2() in the code somewhere?

or maybe just that the polyfit blows up when you try and push it too far?

it is recommended to rotate the raw scan with a graphics program like the GIMP before doing any registration. You can drag a horizontal or vertical guide from the left or top edge of the image canvas to help with lining up the grid lines while using the rotation tool.


Hamish
HamishB is offline   Reply With Quote
Old 28-03-2010, 19:24   #625
Registered User
 
BluegillBoy's Avatar

Join Date: Mar 2010
Location: Chicago summers, gulf during winters
Boat: Endeavour TrawlerCat 36 - My Bluegill Heaven
Posts: 180
I have rotated the charts to north-up before calibration. the problem with the strip charts that the Army Corp of Engineers makes is that when you rotate them, the descriptions, words, markings, everything are then rotated 90 degrees or even upside down. So they work fine once calibrated, but really aren't readable and therefore aren't usable.

So I'm still wishing that OpenCPN would properly project bearing lines even when charts aren't north-up.

Any help with that?
BluegillBoy is offline   Reply With Quote
Old 28-03-2010, 20:19   #626
Registered User
 
HamishB's Avatar

Join Date: Jan 2010
Location: New Zealand
Posts: 286
Quote:
Originally Posted by BluegillBoy View Post
I have rotated the charts to north-up before calibration.
ok, probably nothing to do with the kapgen polyfit then.

Quote:
the problem with the strip charts that the Army Corp of Engineers makes is that when you rotate them, the descriptions, words, markings, everything are then rotated 90 degrees or even upside down. So they work fine once calibrated, but really aren't readable and therefore aren't usable.

So I'm still wishing that OpenCPN would properly project bearing lines even when charts aren't north-up.

Any help with that?
my guess is that it is the (recently fixed) bug of switching calculations when the distance was shorter than a certain amount? does the bearing line fix itself when you move it say more than 1/4 mile away from the boat but break when very near to the boat?


the program has no idea what is printed on the chart image, so no way of knowing that the original was not north up, has words on it, etc. the only solution to that is to use vector based ENCs or a lot of time manually rotating features in the image editor.


Hamish
HamishB is offline   Reply With Quote
Old 29-03-2010, 01:10   #627
Registered User
 
idpnd's Avatar

Join Date: Sep 2007
Location: Almería, ES
Boat: Chiquita 46 - Libertalia
Posts: 1,558
Quote:
Originally Posted by HamishB View Post
the program has no idea what is printed on the chart image, so no way of knowing that the original was not north up, has words on it, etc. the only solution to that is to use vector based ENCs or a lot of time manually rotating features in the image editor.
That's a good point actually - chart rotation won't be particularly pleasing on raster charts..
__________________
sv Libertalia
idpnd is offline   Reply With Quote
Old 31-03-2010, 14:23   #628
Registered User

Join Date: Sep 2009
Location: Rome
Posts: 320
CHARTCAL-V24

Hello. Here is new version of New Zealand Charts Portfolio for you. Changes from V23 to V24 are about 10 maps:

NZ53, NZ522, NZ531, NZ5225, NZ5225_1, NZ5411_1,
NZ5411_2, NZ7621, NZ7621_1, NZ7622

Reason of change is that LINZ on March 24th has released new versions of above map images (either for reprinting old charts or for adding some Notice To Mariners).

If you want them, download the new ChartCal-V24 ( MCE66 - Software ) and rebuild with KapGen the above charts (first delete the relative tif files from /Img folder if you have alredy built those maps). Or just download the already built charts (Upgrade File) from the link at the same location.

Let me know. Ciao, Marco.
GPS-Marco is offline   Reply With Quote
Old 02-04-2010, 20:39   #629
Sponsoring Vendor
 
brak's Avatar

Community Sponsor
Cruisers Forum Supporter

Join Date: Jan 2009
Location: East of West
Posts: 252
Quote:
Originally Posted by idpnd View Post
That's a good point actually - chart rotation won't be particularly pleasing on raster charts..
I beg to differ. Raster charts look just fine rotated. Of course I should say that because we implement it, but aside from that - I find raster charts no less legible than my paper charts which I usually keep aligned with boat heading. It makes finding land features, navaids etc a lot easier, at the obvious expense of text being potentially upside down.
brak is offline   Reply With Quote
Old 03-04-2010, 07:23   #630
Registered User
 
BluegillBoy's Avatar

Join Date: Mar 2010
Location: Chicago summers, gulf during winters
Boat: Endeavour TrawlerCat 36 - My Bluegill Heaven
Posts: 180
And of course depths being difficult to read.

but the big difference to me is on the river rather than lake/coast. the river charts are printed on long thin pages, always with the river running left & right. Plus the things most important to read are position, which is generally given as "downbound approaching the Santa Fe Bridge" or the Wilmington Ave. bridge, or the Acme Steel docks. ATONs got nothin' to do with it except keep you in the channel. it's impossible to tell an approaching tow where you are if you can't instantly read your chart.

that said, there's good reason for various chart and, as you point out, open water navigation takes a whole different approach. Which is probably why open water charts are almost always printed north-up.
BluegillBoy is offline   Reply With Quote
Reply

Tags
charts, kml, raster2bsb, tiff2bsb, bsb


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
Charts on CD stxboy Navigation 43 28-01-2014 10:40
Charts for BC Charlie Navigation 11 19-04-2007 03:39
Used Charts daven Navigation 2 28-11-2006 16:47
Looking at charts - where to go to next Rippy Other 19 10-03-2006 04:27

Advertise Here


All times are GMT -7. The time now is 07:42.


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.