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.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Apr 9, 2012 at 11:28

1 Answer 1

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.

answered Apr 9, 2012 at 19:15
2
  • yep QueryTask worked fine,esriSpatialRelIntersects did the trick : Thnks a bunch Commented 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. Commented Jun 8, 2012 at 19:36

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.