I am developing a tool where when I click on a road in the map I have to list the roads intersecting the selected road using ArcGIS Server10 with silverlight API
to develop this tool I got the roadID of the selected road using IdentifyQuery Then I got the envelope of that road using QueryTask I passed that road envelope to IdentifyTask again and queried the intersecting roads
but its lists me all the roads inside the envelope but I need only intersecting roads also its very very slow :( I am stuck here.
1 Answer 1
I've never tried it, but according to the REST API documentation for Identify, instead of passing an envelope, you should be able to pass the geometry of the road with a tolerance of 0.
Another option (which I have tried) is to call the Query method and pass the road's geometry with esriSpatialRelIntersects
.
The nice thing about Identify is that it substitutes coded value domains to make the results more presentable. Query just returns codes.
-
yep QueryTask worked fine,esriSpatialRelIntersects did the trick : Thnks a bunchSantosh– Santosh2012年04月10日 13:50:04 +00:00Commented Apr 10, 2012 at 13:50
-
2@Santoh: please DO mark Kirk's post as correct to give him some credit for taking the time to answer your question.Petr Krebs– Petr Krebs2012年06月08日 19:36:53 +00:00Commented Jun 8, 2012 at 19:36
Explore related questions
See similar questions with these tags.