Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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 19-12-2011, 08:02   #31
Registered User

Join Date: Feb 2010
Posts: 619
Re: Applying Notices to Mariners (NTMs)

Richard...

In many cases it would be easy indeed to set the right icon to an NtM mark, but I think the full-size icons should be displayed at the appropriate chart scale only... Lines and areas perhaps can be handled in general...

The marks I am showing can only be interpreted as "Careful here, more info in this NtM..." They can not be considered "Chart Corrections". The text of an NtM can only be interpreted in the context of an appropriate edition of the base chart (up to date to the previous NtM), which is not part of the picture here, and only will be if we could learn at run time what is currently on screen.

Reading NtM text only will never produce an updated chart:

- chartlets and Notes are separate and difficult to treat
- New Editions cancel all history, so without a N.E. original no corrections should be applied at all
- only one scale (and even - one chart) should be considered at a time (see pictures below)
- if two or more correction points overlap exactly, OCPN WPT mechanism will not show "Additional Info" for the older/newer ones, which can still be valid
- some NGA NtM syntax is hard to parse
- some corrections are not related to any point on chart

So, with this approach one can only aim at an approximation of the process (undoubtedly useful).

Piotr

PS.

If perhaps Santa would drop into my mailbox a link to a .csv DOLE document (Dates Of Latest Editions, preferably with numbers, titles, scales and chart extent limits) for all NGA charts...

NOAA publishes one for its 1000 domestic charts, but NGA (NIMA) only publishes this in a full catalog, hard to convert into .csv.

British Admiralty publishes an .xls for the dates, titles and scales (Chart Availability List).
Attached Thumbnails
Click image for larger version

Name:	NGA_NtM_Dual_Scale_Es.jpg
Views:	135
Size:	86.4 KB
ID:	34905   Click image for larger version

Name:	NGA_NtM_Dual_Scale_Ws.jpg
Views:	146
Size:	93.2 KB
ID:	34906  

PjotrC is offline   Reply With Quote
Old 20-12-2011, 11:35   #32
Registered User

Join Date: Feb 2010
Posts: 619
Re: Applying Notices to Mariners (NTMs)

I have uploaded to nga_ntm_demo.zip - 4shared.com - online file sharing and storage - download a demo kit with .gpx layer files generated automatically from NGA Notices for Region5 and the sample Folio, ca. 8000 correction points.

Before putting more work in it is probably good to review and comment.

It works well and reasonably fast in OCPN, as long as no List Contents is clicked in RM, what takes some minutes. The parser is quite naive, but I believe not much more can be done... the list of issues I mentioned in previous post remains valid...

I put some keywords into WP Descriptions to readily show what the Notice is about, but a full keyword in WP name clutters the screen too much - so a first letter only in the name... (D - Depth, W - Wreck, etc..)

The files for points and lines+areas are separate, they can go into separate layers or be loaded all together.

The sample NtM database is linked to at E:\nga_ntm. I do not know how to make Notepad use relative pathnames, so all the links may have to be changed for some users. (Would be nice to have all the WP links point to the portable drive for 2.6. -p, but how?)

P.
Attached Thumbnails
Click image for larger version

Name:	Lines_Areas.jpg
Views:	149
Size:	110.6 KB
ID:	34973   Click image for larger version

Name:	Wpts.jpg
Views:	161
Size:	141.3 KB
ID:	34974  

PjotrC is offline   Reply With Quote
Old 20-12-2011, 23:07   #33
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
Re: Applying Notices to Mariners (NTMs)

Quote:
Originally Posted by PjotrC View Post
If perhaps Santa would drop into my mailbox a link to a .csv DOLE document (Dates Of Latest Editions, preferably with numbers, titles, scales and chart extent limits) for all NGA charts...
Pjotr...
Would NGA Charts project stats be the type of info you like? If so, Santa will export it for all the charts as CSV in a couple of minutes...

I agree with you that you are hitting the limits of the navobjects mechanisms in OpenCPN both technically and from the usability point of view. Robbing some of Dave's code and gluing it together with SpatiaLite download page perhaps should not be impossible in a reasonable time.

Pavel
nohal is offline   Reply With Quote
Old 21-12-2011, 00:21   #34
Registered User

Join Date: Feb 2010
Posts: 619
Re: Applying Notices to Mariners (NTMs)

Quote:
Originally Posted by nohal View Post
Would NGA Charts project stats be the type of info you like? If so, Santa will export it for all the charts as CSV in a couple of minutes...
Dear Santa...

Yess, thanks, please...

Much obliged,

Piotr

PS.

Test status update:

I pulled down all NtMs for all regions for 2011 (20000+ correction points, it all fits). A couple of glitches, but very useful overall.
Attached Thumbnails
Click image for larger version

Name:	All_Regions.jpg
Views:	158
Size:	162.8 KB
ID:	34994  
PjotrC is offline   Reply With Quote
Old 21-12-2011, 01:23   #35
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
Re: Applying Notices to Mariners (NTMs)

Pjotr...
Here you go, let me know if the format and special characters escaping suits your expectations.
If you prefer the raw data, there's a daily dump of the NGA project database available at https://github.com/ngacharts/data - the CSV is a dump from the view at https://github.com/ngacharts/ngachar...tabase.sql#L94

Pavel
Attached Files
File Type: doc ocpn_nga_charts_with_params.zip.doc (301.6 KB, 133 views)
nohal is offline   Reply With Quote
Old 21-12-2011, 11:42   #36
Registered User

Join Date: Feb 2010
Posts: 619
Re: Applying Notices to Mariners (NTMs)

Quote:
Originally Posted by nohal View Post
let me know ...
Pavel,

Thanks, the file is readable OK. Is it possible to have the bounding rectangles (lat, lon rather than pix) for the charts?

P.
PjotrC is offline   Reply With Quote
Old 21-12-2011, 13:50   #37
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: Applying Notices to Mariners (NTMs)

Piotr
Seems like Pavel is off for a while...
Have a look at columns AM, AN,AO and AP (after import into a spread sheet) which ought to be what you are looking for. The headings are South, West, North, and East.
Thomas
cagney is offline   Reply With Quote
Old 22-12-2011, 01:47   #38
Registered User

Join Date: Feb 2010
Posts: 619
Re: Applying Notices to Mariners (NTMs)

Magic...

How did you do it? They were not there yesterday... :-) I hope they stay...

P.
PjotrC 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


Advertise Here


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


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.