Select to view content in your preferred language

IMap and IEnumLayers with ArcGIS 10.8.1

1348
2
09-23-2020 09:59 AM
AmitabhaSarkar
Emerging Contributor

How to initialize IMap from ServerObjectHelper in ArcGIS Server 10.8.1 with C#, Could anybody can help. Many thanks in advance

Tags (2)
0 Kudos
2 Replies
nicogis
MVP Frequent Contributor

... 

SOEs are only supported for extending map and image services. Because map and image services use a service definition file and do not access a map document (MXD) directly, there are certain classes you should avoid and others you should favor when writing SOEs.

Avoid using ArcObjects from the Carto library that are specifically designed for use with MXDs. This includes IMap, ILayer, and items related to data frames and page layouts. Instead, use ArcObjects designed for working with map services, such as MapServer, MapLayerInfos, and MapDescription. Use the interface IMapServerDataAccess to access the datasets underlying each layer in your map.

Libraries not directly related to the map document, such as ESRI.ArcGIS.Geometry and ESRI.ArcGIS.Geodatabase for .NET or com.esri.arcgis.geometry and com.esri.arcgis.geodatabase for Java, are always permissible to use in SOEs. ...

0 Kudos
AmitabhaSarkar
Emerging Contributor

Many thanks for the information.

Get Outlook for Android<https://aka.ms/ghei36>

0 Kudos