Select to view content in your preferred language

How to I apply a where clause and envlope to filter features on an ArcGISDynamic Laye

577
2
04-11-2011 03:02 PM
MuralidharMoka
Emerging Contributor
Hi,

if we have a feature clause (say f) and say I have an extents and  I create an envelope out of extents say (env)
Then I can do some thing like this
f.Geometry=env
f.where=SomwwhereClause
f.Update()  
and the above code filter me all feature within the extents , which meets the filter criteria's
But Say I have an ArcGISDynamicServiceLayer say (fDynamic)

now How I can I do the same,

fDynamic.Where //not possible as where prop is absent
fDynamic.Geometry//not possilbe as Geometry prop is absent

How to achive this.

Thanks
Muralidhar Moka
0 Kudos
2 Replies
MuralidharMoka
Emerging Contributor
If My question was confusing.
To make it very clear.

I have an ArcGISDynamic Layer and It has a featureLayer in it.
How do I work with that feature Layer. Say I want to apply some where clause
or I want to apply envelope on its geometry and filter features in it and display it.

Why I am asking is, I have a task where I have a ArcGISDyanamicServiceLayer which has
100 feature layers in it based on county number and every time, I will have to work on only one feature layer based on the county and also I will need to work on only some features in it filtered by some where clause.

Thanks
Muralidhar Moka
0 Kudos
DominiqueBroux
Esri Frequent Contributor
If your map service is not cached, you can filter with where clauses by using the 'LayerDefinitions'.
Here is the documentation :
http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDyna...

There is no way to filter by using a geometry though. The filtering is automatically done by the ArcGISDynamicMapSerrviceLayer by using the current extent.
0 Kudos