Select to view content in your preferred language

Performance problem when I import my ArcGIS Server's layer

690
1
06-06-2011 06:55 PM
shinjaekang
New Contributor
I'm testring a GIS screen using ArcGIS API for Microsoft Silverlight/WPF.

My test environment is like this:

- ArcGIS API for Microsoft Silverlight/WPF 2.1 or 2.2
- ArcGIS Server 9.3.1
- 1 local shapefile
- Microsoft Visual Studio 2010

This is my step:

1. Install ArcGIS API for Microsoft Silverlight/WPF
2. Make a new service and publish my local polygon shapefile. Rest information of my service is like this

Test (MapServer)

View In: ArcMap ArcGIS Explorer ArcGIS JavaScript Google Earth

View Footprint In: Google Earth

Service Description:

Map Name: Layers

Layers:

TestLayer (0)
Description:

Copyright Text:

Spatial Reference: 32748

Single Fused Map Cache: false

Intial Extent:
XMin: 655999.922725362
YMin: 9198575.66869691
XMax: 899003.860308017
YMax: 9346219.46839192
Spatial Reference: 32748
Full Extent:
XMin: 698264.223300862
YMin: 9198411.25466607
XMax: 849176.514313842
YMax: 9346055.05436108
Spatial Reference: 32748
Units: esriMeters

Supported Image Format Types: PNG32,PNG24,PNG,JPG,DIB,TIFF,EMF,PS,PDF,GIF,SVG,SVGZ

Document Info:

Title: Test
Author: test
Comments:
Subject:
Category:
Keywords:
AntialiasingMode: None
TextAntialiasingMode: None
Supported Interfaces: REST SOAP

Supported Operations: Export Map Identify Find Generate KML

3. Create new WPF application project in Visual Studio 2010
4. Design GIS screen like follows

<esri:Map x:Name="Map">
<esri:ArcGISTiledMapServiceLayer ID="WorldShadeReliefLayer" Url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer" />
<esri:FeatureLayer ID="MyLayer" Url="http://localhost/ArcGIS/rest/services/Test/MapServer/1" Color="LightGray" />
</esri:Map>


Questions

When I run my application, my feature layer is displayed well, but performance is significantly downed when I move screen.
I guess I miss some configuration in my service. Because, when I import my layer in ArcGIS Explorer, it displays very smoothly.

How can I re-config my service setting for improve performance likes ArcGIS Explorer?

Or, Do have any ways of loading local shapefile and display to GIS Screen? I already tested by esricontlib but that library spends a lot of time to load my shape file.

Sorry for very basic question. T.T
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
It might happen that your polygons contain a lot of points and that you might enhance the performances by generalizing the geometry.
To do that you can set the MaxAllowableOffset property of your feature layer (the value depending on your spatial reference and your polygon scale, you can try first with a big value e.g. MaxAllowableOffset="5000" and then adapt it).
0 Kudos