Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

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.

share|improve this answer
yep QueryTask worked fine,esriSpatialRelIntersects did the trick : Thnks a bunch – Santosh Apr 10 '12 at 13:50
@Santoh: please DO mark Kirk's post as correct to give him some credit for taking the time to answer your question. – Petr Krebs Jun 8 '12 at 19:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.