Select to view content in your preferred language

Passing set of geometries to a single Querytask object

609
1
04-06-2011 12:48 PM
nidhiarora
Deactivated User
I have a set of geometries and need to overlay them on a point layer to determine points falling under the set of geometries.
I use the Union function of  Geometry service to combine the geometries and pass the unioned geometry to the Querytask object of point layer.
The union works fine for small subset of geometries , but when large set of geometries are passed to Geometry service , the  process takes a lot of time , often resulting in scripting error message ??????.Script is causing IE to slow down.??? .

Is there any alternative of passing a set of geometries (Array or List ) to a single  Querytask object?  I tried passing the extent of set of geometries to querytask , but extent picks up lot of additional points.

Regards,
Nidhi Arora.
Tags (2)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus
Nidhi,

   In my Enhanced Search Widget I loop through all the geometries and combine them into one before I send them to the query task (i.e. polygons I create a new polygon geometry and add all the rings from the other polygons to this new polygon geometry and that way I can send just one polygon to the query task).
0 Kudos