Developer Reference ENC Viewing Groups

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 can be found here.

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 (VERCLR/VERCCL/VERCOP/VERCSA of BRIDGE),
                                              ' overhead cable (VERCLR of CBLOHD),
                                              ' overhead pipeline (VERCLR of PIPOHD),
                                              ' conveyor (VERCLR of CONVYR), bearing of navline (ORIENT of NAVLINE),
                                              ' recommended route (RCRTCL), deep water route centreline line (DWRTCL),
                                              ' recommended track (RECTRC),
                                              ' name and communications channel of
                                              ' radio calling-in point (OBJNAM/COMCHA of RDOCAL)
    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 (OBJNAM of ACHARE, BRIDGE, BUAARE, BUISGL, DOCARE, FAIRWY, LNDARE, LNDMRK, LNDRGN, SEAARE, TIDEWY, PILBOP)
    draw.DisplaySettings.TextGroup(27) = True ' Value of: magnetic variation; swept depth
    draw.DisplaySettings.TextGroup(28) = True ' Height of islet or land feature (HEIGHT of LNDARE)
    draw.DisplaySettings.TextGroup(29) = True ' Berth number (OBJNAM of BERTHS, ACHBRT)
    draw.DisplaySettings.TextGroup(31) = True ' National language text (NOBJNM)
    draw.DisplaySettings.TwoColourShadingForDepthZones = False
    ...