Select to view content in your preferred language

QueryTask Issue

1372
1
11-01-2010 05:13 AM
by Anonymous User
Not applicable
Original User: tgorrie

QueryTask does not select features directly beneath the input geometry (polyline), only those that cross it. Features from both input and selection layers come from the same data source layer so they should match geometrically. I have tried all spatial relationships (touches, intersect, etc) none work. If I use the extent geometry (polygon) then the query works but I get too many other unwanted records in the result.

I have also tried the same spatial query in ArcGIS desktop and it works correctly.

Any thoughts?

Thanks.
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
Have you tried using Editor's Select command? You can set SelectionMode to Polyline.
You can refer to this sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureLayerSelection
0 Kudos