CherSoft Ltd www.chersoft.co.uk Home   About   Advantages   Developer Reference   Downloads   FAQ   Contact

ENC Viewing Groups

By Andy Nibbs

Tuesday, November 29, 2005

The information displayed by default in an ENCX ENC view is limited – a great range of options exist to control what information is displayed on an ENC view. Different types of feature are categorised into viewing groups.

Controlling which groups are displayed allows the display to be decluttered. The ENCX library allows all groups to be displayed or turned off. ECDIS developers should note that the ECDIS standard requires that some viewing groups are displayed all the time.

A full list of viewing groups is here http://www.encx.com/reference/interface_i_s57_display_settings.html#_e_n_c_x_1_1_s57_display_settingsa28

You will probably need to experiment with which groups are displayed for your own application and consider whether or not to give the users control over what is displayed.

Below there is some sample code to start with. This can be dropped into the EncView1 sample application.

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
  ...
  draw.SetManager(senc)
  draw.DisplaySettings.SetViewingGroupRange(0, draw.DisplaySettings.NumViewingGroups, True) ' turn them all on
  ' turn off some charting quality stuff that clutters the display
  draw.DisplaySettings.ViewingGroup(11000) = False
  draw.DisplaySettings.SetViewingGroupRange(31000, 31040, False)
  ' turn on all text groups
  draw.DisplaySettings.TextGroup(10) = True ' Important(Text)
  draw.DisplaySettings.TextGroup(11) = True ' vertical clearance of bridges, overhead cable, pipe or conveyor (BRIDGE, CBLOHD, PIPOHD, CONVYR, VERCLR, VERCCL, VERCOP), bearing of navline, recommended route, deep water route centreline line (NAVLNE, RCRTCL, DWRTCL, ORIENT), name and communications channel of radio calling-in point (RDOCAL, OBJNAM, COMCHA).
  draw.DisplaySettings.TextGroup(20) = True ' Other(Text)
  draw.DisplaySettings.TextGroup(21) = True ' names for position reporting: name or number (OBJNAM) of buoys (BOYxxx), beacons(BCNxxx), daymarks(DAYMAR), light vessel, light float (LITVES, LITFLT), offshore platform (OFSPLF).
 
draw.DisplaySettings.TextGroup(23) = True ' light description string
  draw.DisplaySettings.TextGroup(24) = True ' note on chart data or nautical publication
  draw.DisplaySettings.TextGroup(25) = True ' nature of seabed
  draw.DisplaySettings.TextGroup(26) = True ' geographic names  
 draw.DisplaySettings.TextGroup(27) = True ' value of: magnetic variation; swept depth

  draw.DisplaySettings.TextGroup(29) = True ' berth number (OBJNAM of BERTHS, ACHBRT)
  draw.DisplaySettings.TextGroup(31) = True ' national language text
  draw.DisplaySettings.TwoColourShadingForDepthZones = False
  ...
 

ENCX Home