Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 26-10-2015, 03:13   #1
Registered User

Join Date: Oct 2015
Posts: 3
ENC Data in Word Processor

I'm trying to develop a excel file that will auto update soundings for specific regions and I'm trying to understand how the ENC data is constructed / read. Does anyone have any information on this? Or if there is some sort of word processor available for download that can decrypt the ENC file?

Thanks
__________________

__________________
clark05 is offline   Reply With Quote
Old 26-10-2015, 03:39   #2
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 2,753
Re: ENC Data in Word Processor

If your are referring to ENCs in the context of standard chart material you can start here:

https://www.iho.int/srv1/index.php?o...id=408&lang=en

For performance reasons a chart plotter program - such as OpenCPN - will convert the ENCs into an internal format - SENC in IHO speak.
__________________

__________________
bcn is online now   Reply With Quote
Old 26-10-2015, 03:45   #3
Registered User

Join Date: Oct 2015
Posts: 3
Re: ENC Data in Word Processor

Thanks for the reply bcn,

I'm trying to find the text data of the ENC so I can extract that to Excel or other program to insert into a database.
__________________
clark05 is offline   Reply With Quote
Old 26-10-2015, 03:56   #4
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 2,753
Re: ENC Data in Word Processor

If you are trying to update or extract information from an (offical) ENC you will have to identify the corresponding chart objects with their attributes and search for them in the ENC.

There is no table Soundings with /lat/lon/depth
--> S-57 standard
__________________
bcn is online now   Reply With Quote
Old 26-10-2015, 05:23   #5
Registered User

Join Date: Jul 2015
Location: Plano, Texas
Posts: 68
Re: ENC Data in Word Processor

IHO S-57 / ENC - Object and Attribute Catalogue

Look at DEPARE and DEPCNT. There may be others but I am not that familiar with the S-57 spec. I don't think what you want to do is going to be particularly easy.

Another route is look at the Open Sea Map work. They use a JOSM structure to hold the depth data. At least if you go that way, you are working on current technology. Navionics has a similar initiative but I am concerned they will restrict the data to Navionic users are make it a pay per use thing.

HTH
Doug
__________________
dwoodall is offline   Reply With Quote
Old 30-10-2015, 11:24   #6
Registered User

Join Date: Jun 2013
Location: Moscow, Russia
Boat: Clerk Chair 1.6ft
Posts: 39
Re: ENC Data in Word Processor

Quote:
Originally Posted by bcn View Post
There is no table Soundings with lat/lon/depth in S-57 standard.
Perhaps you meant quite the opposite — spot soundings are stored right that way (an array of isolated 3D-points).

Quote:
Originally Posted by clark05 View Post
I'm trying to develop a excel file that will auto update soundings for specific regions and I'm trying to understand how the ENC data is constructed / read.
If you just need to extract data from ENC, and do not want to do full-fledged parsing, you may choose to support “canonical format” only and make some shortcuts:
  • if only spot soundings are of interest, then you basically need to parse isolated-node vector records (VI) which have 3D-coordinate field (SG3D);
  • for areas of ranged depths, you will need to parse feature records (FE) as well, looking for those of type DEPARE, as dwoodall mentioned, — then enumerate all items in their feature-to-spatial pointer field (FSPT) to find all corresponding edge vector records (VE) that are linked with connected-node records (VC), which together constitute the area's boundary (or boundaries, if there are multiple); you then need to parse the feature record's attributes DRVAL1 and DRVAL2 from attribute field (ATTV) to get the depth range for that area;
  • for lines of constant depth (whether open or closed), you will need to do similar work for DEPCNT feature objects and VALDCO attribute.
As you see, getting the data from ENC is easy… or difficult — depending on your attitude.

However, updating the data in ENC with your own values is another story:
  • if you are just updating spot soundings (i. e. modifying Z-coordinate of existing points), then a simple binary overwrite may be enough, as long as you can match the source format;
  • if you need to add or remove points, or replace a text attribute value with a different length, you will also need to perform full recalculation of DDF field directory;
  • alternatively, it may be easier to rewrite the entire file, because then you will be in total control of the format, but that also requires taking care of everything — if you want your updated chart to be compatible with existing software.
But why would you want to modify official ENCs at all? They could not be called “ENCs” after that, as this name implies they originate from a legitimate source.
__________________
SamsonovAnton is offline   Reply With Quote
Old 31-10-2015, 18:37   #7
Registered User

Join Date: Oct 2015
Posts: 3
Re: ENC Data in Word Processor

Wow, definitely more work than I expected. I'm not trying to edit the ENC, just trying to extract the depth information. I work on an oil tanker and I'm looking for an automated way to calculate UKC for each leg of my voyage without having to visually go through the ECDIS.

Thanks for the info I'll try to continue digging into this and see what I come up with.
__________________
clark05 is offline   Reply With Quote
Old 01-11-2015, 10:35   #8
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,967
Re: ENC Data in Word Processor

I wouldn't be surprised, impressed though, if someone, say Sean, should be able to "follow" a route on vector charts and read depth info in a certain distance beside the line and print that in a table. Next is to interest the programmer for this task.
Håkan
__________________
Hakan is offline   Reply With Quote
Old 03-11-2015, 04:06   #9
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,320
Re: ENC Data in Word Processor

Submarines must do this all the time, but it is probably not open source. I think somewhere this program already exists is it open source?
__________________

__________________
rgleason is offline   Reply With Quote
Reply

Tags
enc

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
Manual Food Processor or Blender ? Skippa Provisioning: Food & Drink 37 10-09-2017 22:52
For Sale: Blue Sky Solar IPN ProRemote Display / Processor rabend Classifieds Archive 4 02-08-2011 20:53
For Sale: Blue Sky Solar IPN ProRemote Display / Processor rabend Classifieds Archive 2 22-07-2011 21:19
B&G H2000 Paddlewheel Processor Input svBeBe Marine Electronics 0 28-03-2011 06:41



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

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


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.