Select to view content in your preferred language

FeatureLayer missing features at full extent.

3014
5
04-04-2011 04:49 PM
GregoryDillon
Occasional Contributor
I have an dynamic layer in an msd.  Its the only layer in the msd.   When the map first comes up at Full Extent only some of the features display.  As so:

<esri:FeatureLayer ID="MaxAdvSearchFeature" Url="http://someserver/ArcGIS/rest/services/WUAGISMaxAdvSearch/MapServer/0"  />

If I change it to a ArcGISDynamicMapServiceLayer if works.   As so:

<esri:ArcGISDynamicMapServiceLayer ID="MaxAdvSearch" Url="http://someserver/ArcGIS/rest/services/WUAGISMaxAdvSearch/MapServer"  />

Whats wrong?   I need a feature class because I need the "Where" method.

9.3.1 SDE

Desktop, ArcGIS Server GIS - Web Application, ArcGIS Server - GIS Services are all on 10 sp 1
0 Kudos
5 Replies
DominiqueBroux
Esri Frequent Contributor

When the map first comes up at Full Extent only some of the features display

Do you mean that the full extent is not the right one (i.e. there are features outside of the full extent) or that some features are not visible despite they are supposed to be in the current extent?

I need a feature class because I need the "Where" method.

If your map service is not cached, you might also use a map service layer definition to filter the objects (just another option, faeture layer shoud work as well).
0 Kudos
GregoryDillon
Occasional Contributor
Do you mean that the full extent is not the right one (i.e. there are features outside of the full extent) or that some features are not visible despite they are supposed to be in the current extent?


If your map service is not cached, you might also use a map service layer definition to filter the objects (just another option, faeture layer shoud work as well).


Yes the full extent is right either way (using a feature class or dynamic).    Its just missing alot of features when I use the featurelayer.   My map is not cache.   Its almost as if its capping the features at a set number.    I would not think is would be looking at the maxrecordcount in cfg file.

How do you set the layer definition on the ArcGISDynamicMapServiceLayer?   What method?   Do you have an simple code example?
0 Kudos
DominiqueBroux
Esri Frequent Contributor
Its just missing alot of features when I use the featurelayer.

The service may have reached its limit of how many features it can return at once (the default is 500 for ArcGIS Server 9.3.1, 1000 for ArcGIS Server 10, 1000 for MapIt).
In this case, try with the OnDemand mode (see sample).

How do you set the layer definition on the ArcGISDynamicMapServiceLayer? What method? Do you have an simple code example?

I don't think there is a sample in the interactive SDK, but the documentation about the 'LayerDefinitions' should be very helpful : http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDyna...
0 Kudos
JenniferNery
Esri Regular Contributor
You are right, when using FeatureLayer Snapshot mode (default), the service may have reached its limit of how many features it can return at once. The default is 500 for ArcGIS Server 9.3.1 and 1000 for ArcGIS Server 10, but this limit is configurable using the Parameters tab of the Service Properties dialog box in ArcCatalog or Manager. This seems to be a related thread: http://forums.arcgis.com/threads/19467-Query-Task-only-returns-500-records-even-after-changing-MaxRe...

Here's an example of using LayerDefinitions: http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDyna...
0 Kudos
DominiqueBroux
Esri Frequent Contributor
Jennifer,

Looks like we are on the same wave lenght 🙂
0 Kudos