Add ENC exchange set
Display nautical charts per the ENC specification.
The ENC specification describes how hydrographic data should be displayed digitally.
An ENC exchange set is a catalog of data files which can be loaded as cells. The cells contain information on how symbols should be displayed in relation to one another, so as to represent information such as depth and obstacles accurately.
How to use the sample
Run the sample and view the ENC data. Pan and zoom around the map. Take note of the high level of detail in the data and the smooth rendering of the layer.
How it works
- Specify the path to a local CATALOG.031 file to create an
- After loading the exchange set, get the
EncDatasetobjects in the exchange set.
- Create an
EncCellfor each dataset. Then create an
EncLayerfor each cell.
- Add the ENC layer to a map's operational layers collection to display it.
This sample downloads the ENC Exchange Set without updates item from ArcGIS Online.
Data, ENC, hydrographic, layers, maritime, nautical chart
<UserControl x:Class="ArcGIS.WPF.Samples.AddEncExchangeSet.AddEncExchangeSet" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013"> <Grid> <esri:MapView x:Name="MyMapView" /> </Grid> </UserControl>