Select to view content in your preferred language

Spatial Query  in different layers?

1579
1
02-13-2012 11:49 AM
by Anonymous User
Not applicable
Original User: angelmch

Hello,

I was reviewing the following example to querys spatial

http://help.arcgis.com/en/webapi/silverlight/samples/start.htm # SpatialQuery

In this example uses only one layer. It is possible to query space for different layers? (eg http://sampleserver1.arcgisonline.com/0 and http://sampleserver1.arcgisonline.com/1)

Whereas in some cases that do not have the same attributes.

Thank you very much for the help
0 Kudos
1 Reply
by Anonymous User
Not applicable
Original User: diligentpig

Queyr Task is designed for one layer only, this is true. If you want to perform querying across multiple layers at one time, you should using Identify task instead.
Note the LayerIds attribute: http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.Iden...
For more information under this tasks, you may want to reference the underlying REST API of ArcGIS Server:
Query:http://help.arcgis.com/EN/arcgisserver/10.0/apis/rest/query.html
Identify:http://help.arcgis.com/EN/arcgisserver/10.0/apis/rest/identify.html
0 Kudos