Select to view content in your preferred language

using UseAcceleratedDisplay is throwing exception

1517
10
Jump to solution
09-05-2012 08:19 AM
GhassanKarwchan
Occasional Contributor
I have a layer with 7000 features, so I am increasing maxRecords of the map service, and I am adding the attribute UseAcceleratedDisplay to be true for the map
and it is failing, and throwing exception SEHException



and when I don't use UseAcceleratedDisplay , it works but it is so slow
If I don't use it, the layer will take 15-25 seconds to load

And I am using very simple fill symbol,
<esri:SimpleRenderer x:Key="MySimpleRenderer">
                <esri:SimpleRenderer.Symbol>
                    <esri:SimpleFillSymbol BorderBrush="Blue" BorderThickness="4"/>
                </esri:SimpleRenderer.Symbol>
            </esri:SimpleRenderer>

I appreciate your help, because I am converting an application from ArcGIS engine, and for two days, I couldn't display a layer.
Was this product tested before release?
0 Kudos
10 Replies
MichaelBranscomb
Esri Frequent Contributor
Thanks Mike
So, I fixed my problem by choosing Dynamic Layer.
So, I am going to ask you a question, and not for the problem, because the problem is fixed, but to learn best practices.
I used Feature Layer, because I want to use the identity task.
This is the reason I chose the feature layer.
So, I think that choice was valid for the task, but not for the size and complexity of the features.

If we need Identity task, we should use feature layer
Am I right?


Second,
In my case, the identity will be only required for the polygons where the client has buildings, which are only the main land and three other islands, which means three polygons out of 6500 polygons that are totally useless but we need to display them anyway.

So what the best practices in this way?

Like this example is going to be repeated for many clients (I believe), where you have contour for lands, which contains hundreds of small islands, and most of them useless because they are inhabitants, but you want to display them as background anyway, but you are interested in few polygons to get their attributes

Should you split this into two layers?


Hi,

#1. To use the Identify Task you should use either LocalMapServices or online map services. For LocalMapServices you can use the LocalMapService.UrlMapService property and add the layer id (e.g. + "/1"). For online services you should browse the ArcGIS Rest catalog to get the layer URL e.g. http://sampleserver6.arcgisonline.com/arcgis/rest/.

#2. You could probably achieve this in a number of ways. One approach might be to investigate adding the layer twice, with a definition query applied to each one in the first case to only include the few polygons you are interested in and the second case to include the remaining 1000s of polygons. Or you could perform a queryto return the few polygons you are interested in and add those to the map as graphics. That would allow you to provide additional interaction with those polygons such as adding MapTips.

Cheers

Mike
0 Kudos