I m unable to show ENC map getting error "layer could not be added to map because layer initialization failed" and "S57 dictionary not found". I have set symbols path too.

4396
31
Jump to solution
08-20-2016 04:38 AM
AnzarKhatri
New Contributor

I want to show ENC chart in my WPF app but getting these error. I have also attached screen shot of error. I have set symbols path and manifest file too but no success.

<Window x:Class="ArcGISApp1.MainWindow"
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"
xmlns:hydro="clr-namespace:Esri.ArcGISRuntime.Hydrographic;assembly=Esri.ArcGISRuntime"
Title="MainWindow"
Height="350"
Width="525">
<Grid>
<esri:MapView x:Name="MyMapView"
LayerLoaded="MyMapView_LayerLoaded">
<esri:Map>
<!--<esri:ArcGISTiledMapServiceLayer ID="Basemap" ServiceUri="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/>-->
<esri:GroupLayer ID="Hydrographic">
<hydro:HydrographicS57Layer ID="PK2NB58Z"
Path="US5TX51M.000">
</hydro:HydrographicS57Layer>
</esri:GroupLayer>
</esri:Map>
</esri:MapView>
</Grid>
</Window>

I think there is no issue at all in code. I dont understand what is the reason..........!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Tags (1)
0 Kudos
31 Replies
AnttiKajanus1
Occasional Contributor III

I would need to have more information what you are actually doing and what you mean with the previous comment to be able to give any more detailed answers for that. But basically the application needs to be licensed when it is deployed. Remember that if you have ArcGIS Online / Portal in your organization, you can sign in to license the app.

0 Kudos
AnzarKhatri
New Contributor

Our app is very simple n will work in disconnected mode. As I told u after displaying chart we have to display some symbols and their movement mean complete from where it started and where ended with any properties of symbol displayed in side panel. This is the full app. Do we still need to license the app and if so can u give me some contact (email) so thatI can discuss these things and the license plan?

0 Kudos
AnzarKhatri
New Contributor

Hi, I hva eseen ur ArcGIS Runtime SDK for .NET: Tips and Tricks video but in the attached samples there is no demo project for funky symbols..!! Can u provide me that bcz we r stuck only in specialized symbols using ArcGIS. If u have any other samples or some tips for custom symbols plz provide us. Thnaks.

0 Kudos
AnttiKajanus1
Occasional Contributor III

You can contact your distributor for the licensing. Also have a look to licensing documentation.

0 Kudos
AnzarKhatri
New Contributor

Sorry for the late reply...As I asked previously can I add custom drawing in charts?

Is there any page where I can see what can I do and what not?

0 Kudos
AnttiKajanus1
Occasional Contributor III

You can work with GraphicsOverlays (On top of MapView.Map.Layers preferred way) or using GraphicsLayers (inside of MapView.Map.Layers collection) to add custom object to the MapView. Have a look samples in https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/master/src/Desktop/ArcGISRuntimeSamplesDe...

0 Kudos
AnzarKhatri
New Contributor

Thanks. We also have contacted our local distributor but still confused about licensing.

As soon as we are exploring many things are coming to mind..is it possible to combine two maps such as loading tpk file and then ENC?

I did but as soon as I zoom to hydro layer the loaded tpk disappears. I tried to merge both but got error "Mix spatial references are not supported". Any suggestion?

0 Kudos
AnttiKajanus1
Occasional Contributor III

You can use any number of layers in your map where they might be hydrographic, tile layers (local or online), feature layers etc.. Just make sure that you have all the data in the same Spatial Reference since we don't support multiple spatial references in a one MapView/Map.

When using TPKs make sure that you data from the area and all the scales you want to show. Read more about creating tile packages from http://desktop.arcgis.com/en/arcmap/10.3/map/working-with-arcmap/about-tile-packages.htm

0 Kudos
AnzarKhatri
New Contributor

I mean if I have tpk file. I make this as my basemap n then load ENC on top of it...?

0 Kudos
AnttiKajanus1
Occasional Contributor III

Yep, that's the way. Remember that you can dynamically add / remove layers too but just make sure that the tpk is rendered below the ENC on top of it. (read: lower index in layers collection).

0 Kudos