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'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
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: – MathiasWestin Oct 1 '10 at 12:43
up vote 3 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:

If there's a flex sample showing how to do this, it's probably here:

Also, here's the REST documentation for the query endpoint:

share|improve this answer

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.