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.
Hi,
I've hit a snag with the union JavaScript code above. The code breaks with the following cases:
If I have a polygon with a hole in it, but that hole is occupied by 2 more polygons that exactly fit the space, each taking up about half the hole space, together they fill the hole. Put another way imagine a polygon with a square hole in it, and that hole is filled by 2 rectangular polygons. i.e. trying to union 3 polygons to create one seamless/holeless shape.
If I have a polygon with 2 holes in it, and each hole is filled with a perfectly fitting polygon. i.e. trying to union 3 polygons to create one seamless/holeless shape.
Has anyone come up with some JS code to handle this please?
Thanks.