Display and configure electronic navigational charts per ENC specification.
The S-52 standard defines how Electronic Navigational Chart (ENC) content should be displayed to ensure that data is presented consistently across every charting system. S-52 defines several display options, including variations on symbology to ensure that charts are readable both at night and in direct sunlight.
When opened, the sample displays an electronic navigational chart. Tap on the map to select Enc features and view the feature's acronyms and descriptions shown in a callout. Tap "Display Settings" and use the options to adjust some of the Enc mariner display settings, such as the colors and symbology.
- To display Enc content:
- Create an
EncExchangeSet
using a path to the local Enc exchange set files and load it. - Make an
EncCell
for each of theEncExchangeSet.Datasets
and then make anEncLayer
from each cell. - Add the layers to the map using
Map.OperationalLayers.Add()
and create aMapView
to display the map.
- Create an
- To select Enc features:
- Use
GeoViewTapped()
on the map view to get the screen point from the tapped location. - Identify nearby features to the tapped location with
IdentifyLayersAsync()
. - From the resulting
IdentifyLayerResult
, get theEncLayer
fromLayerContent
and theEncFeature
(s) fromGeoElements
. - Use
EncLayer.SelectFeature()
to select the Enc feature(s).
- Use
- To set Enc display settings:
- Get the
EncDisplaySettings
instance fromEncEnvironmentSettings.Default.DisplaySettings
. - Use
MarinerSettings
,TextGroupVisibilitySettings
, andViewingGroupSettings
to access the settings instances and set their properties. - Reset the display settings using
ResetToDefaults()
on the settings instances.
- Get the
- EncCell
- EncDataset
- EncDisplaySettings
- EncEnvironmentSettings
- EncExchangeSet
- EncLayer
- EncMarinerSettings
- EncTextGroupVisibilitySettings
- EncViewingGroupSettings
- IdentifyLayerResult
This sample downloads the ENC Exchange Set without updates item from ArcGIS Online automatically.
The latest Hydrography Data can be downloaded from the Esri Developer downloads. The S57DataDictionary.xml
file is contained there.
Read more about displaying and deploying electronic navigational charts on Esri Developer.
ENC, hydrography, identify, IHO, layers, maritime, nautical chart, S-52, S-57, select, settings, symbology