Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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 Please guide

Please guide

share|improve this question
add comment

1 Answer

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
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
add comment

Your Answer

 
discard

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.