get_layers and symbology style problem in ArcGIS Server

3862
1
08-03-2015 10:48 PM
SteveMcmaster1
New Contributor

I've discovered a quirk (bug?) in ArcGIS Server that is causing problems in a custom SOE we are developing.

The code opens a MXD and loops through the layers.

When running the command (IMapDocument.get_Map(index).get_Layers) on the MXD, only the layers that are symbolized with solid fill are returned. Any of the layers that have anything other than a solid fill fill (e.g. Vineyard, Snowfield/Ice, Reservoir) are not returned.

So even though the MXD may have 40 layers, we only get 35 layers back when opening it via ArcGIS Server, with the 5 layers with more complex symbology missing.

I believe this is probably due to the style vs serverstyle paradigm, meaning ArcGIS Server is unable to handle the style definition.

Can anyone suggest a work-around or fix? Even if we got the layer back without the symbology this would be an improvement on what we currently have, where the layer is not even returned.

Thanks.

Steve

0 Kudos
1 Reply
nicogis
MVP Frequent Contributor

Can you give further details? Version ArcGIS Server, part of source code for understand what you are doing.

0 Kudos