3

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.

2

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 bunch – Santosh Apr 10 '12 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 Jun 8 '12 at 19:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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