I have a feature layer with polygons. And I create a spatial query task to query the polygon which contains the point clicked by the user on the map (similar as identify). In this case, I can specify the spatial relation as SPATIAL_REL_INTERSECTS.
Now instead of querying the polygon contains the clicked point, I want to query all the rest polygons(the polygons do not contains the point). I think I might need to use Shape Comparison Language to specify a new type of spatial relation, just a point to polygon relation opposite to SPATIAL_REL_INTERSECTS. I know I should start with SPATIAL_REL_RELATION, but I have no idea the following steps.
Anyone can help me? Or is there any other possible solutions to that problem? Thanks in advance.