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'm trying to implement an intersection with ArcGIS 9.3.1, flex and rest api.

I have two layers, I query the first one that returns a Graphic object, with this Geometry I want to query a second layer with an intersection. The problem is that the second query returns all the features even outside the intersection geometry. There's an example outside over the net? :)

share|improve this question
1  
From where are you doing this? ArcDesktop/ArcObjects/REST APIs/JSON? According to the Rest APIs the query takes a geometry, so what you are trying to do should be possible: esri.com/industries/landing-pages/geoservices/geoservices.html –  MathiasWestin Oct 1 '10 at 12:43
add comment

1 Answer

up vote 2 down vote accepted

Use the geometry from your first query as the geometry parameter in your second query. I know you said flex, but here's a JavaScript sample showing this: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/query_bypoly.html

If there's a flex sample showing how to do this, it's probably here: http://help.arcgis.com/en/webapi/flex/samples/index.html

Also, here's the REST documentation for the query endpoint: http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/query.html

share|improve this answer
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.