AnsweredAssumed Answered

Query Points contained within multipl polygons

Question asked by mbalwanz on Jul 18, 2013
Latest reply on Jul 23, 2013 by mbalwanz

I am trying to query all the points located within multiple polygons.  I have used the querytask many times to find features contained within a single polygon, but am having troubles accomplishing this with multiple polygons.

Basically, my app selects specific sites (points) and then applies a buffer around them.  From there I need to find all the addresses (points) located within all the buffer polygons (the number of buffer polygons varies based on the original search results).

The buffers are added to a graphics layer when drawn and then cleared out anytime there is a new search.

Can I query against the geometries of all the graphics in the buffer layer at once or do I need to loop through them running a seperate query each time and somehow combine all the results?

Thanks in advance for any help you can provide.