Select Features Within Current Extent
Is there a way to use the Select Features and the Get Extent/Set Extent activities (or any other activities) so that you can Select the features within the current extent?
0
-
Hi Gary
you pretty much answered your own question.
- Use GetMapExtent to get an Envelope ie rectangular extent.
- Use QueryTask with the Geometry set to the Envelope from step 1.
Of course for Step 2 you will need to supply the Query Service Url etc and potentially repeat ideally in parallel Step 2 against all of the layers that you wish to do this with.
regards
Ralph
0 -
Thanks Ralph, I used GetMapExtent to QueryTask to SelectFeatures and it did the trick. I never would have known to use QueryTask. Thanks Again.
0
Please sign in to leave a comment.
Comments
2 comments