Finding Multiple Features with different Searchtexts with FindTask

2110
1
02-14-2011 11:46 PM
UlfGrimhardt
New Contributor
Hi

I have got a Silverlight App that displays hundrets of different Point-Features in my map.
The Attributes of the Points just consist of Name and Coordinates.
Because of the fact that with ArcGIS Server 9 i cant access "normal" tables that are part of my MXD (Am i right that this is featured in ArcGIS Server 10?), i created a SQL Server Database with different tabels. In This table i have a lot of Attributes for the different Points in my Point-Feature. So for each Point there are n-Entrys in the SQL Table.

My Problem is now, that i need to highlight the Features in my map that have specific attribute values in the SQL Server Table. So in the SQL Server table there are for example Height-Attributes. Now i would like to highlight every point with a Hight greater then 20meters.

I have no Idea how i can realise this effective. The only way i thought about is a Find-Task in my Silverlight App. So first i filter the Data in the SQL Table for every entry greater 20meters. Then i extract the Point-Name of those Entrys.
After that i can do a Find-Task for every Entry. Problem is, that i only can enter one specific SearchText for the Find-Task. So i have to execute the Find-Task for EVERY (maybe 200) Point specifically, but that takes to much time.

Any Ideas? Hope you understand the whole Problem,...i reallly need help!
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
You can use FeatureLayer with filtering (update Where clause) as in this sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureLayerFiltering. You can also use ClassBreaksRenderer as in this sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureLayerRendering. You can write your own renderer too, you just need to implement IRenderer, specifically GetSymbol() method. http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.IRenderer....

More on Symbols and Renderers:
http://help.arcgis.com/en/webapi/silverlight/help/index.html#/Working_with_Symbols_and_Renderers/016...

And yes you are correct, support for Table is new in ArcGIS Server 10 as described here: http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/layer.html
0 Kudos