Hello every superiors:
Now I have a question ,thanks you for lost several minutes.
Q: I draw many polygons, when I draw another polygon i don't want this polygon not intersect with others, so I should to query the intersect polygons with this polygon ,i use the code:
var query = new esri.tasks.Query();
query.outSpatialReference = map.spatialReference;
query.spatialRelationship = esri.tasks.Query.SPATIAL_REL_INTERSECTS;
query.geometry = queryGeometry;
query.returnGeometry = true;
query.outFields = ["*"];
var queryTask = new esri.tasks.QueryTask(url);
queryTask.execute(query)
but this code not only find the interset polygons but the adjacent polygons(the polygon‘s border line is one with this polygon),like pic1
A and B use the common border,I don’t Want this (B)be searched ; pic2 B is intersect wich A, this should be searched and the code can searched it。
How can I only seach the intersect polygons with it not adjacent ,thanks very much.
pic1:
pic2: