Hi i want to check if 2 polygons overlap each other from any of its side
Solved! Go to Solution.
working on this link these days... please share your experience with mysql functions
database - How can I handle MySQL polygon overlap queries? - Stack Overflow
You can use the geometryEngine's intersects method to test the two polygons.
Hi Ken,
I would like to know , that if i get an array of polygons from db (assume constant) and match it with current map graphicslayer graphics geomtery, in that case how intersect will work. to match 2 arrays of geometries
The intersects method only compares one geometry with another. So you'd have to loop through your array, comparing each polygon with your graphic.
don't it make my app very slow, to retrieve all users polygons(more than 1000) from db and then check on browser side with this method. one by one.
Is their any method to check it on server side.
As i have to show also that overlaped polygon, so i think it makes my app very slow
working on this link these days... please share your experience with mysql functions
database - How can I handle MySQL polygon overlap queries? - Stack Overflow