I want to query data that is not in a specified polygon in ArcGIS Server Rest API. How can I achieve this like below image?


  • 1
    I think this could be done using Spatial relationship : "Relation". You then need to provide the relationParam string using Shape Comparison Language. – nef001 Apr 26 '17 at 12:40
  • Thanks @nef001 Is there any kind of working example or references that show the concepts? – Ahmad Payan Apr 26 '17 at 14:39
  • Reference here: resources.esri.com/help/9.3/ArcGISDesktop/dotnet/… – nef001 Apr 26 '17 at 15:16
  • This might work for NOT contains: '* * T * * T T T *' – nef001 Apr 26 '17 at 15:20

You could use Relation function in ArcGIS Server REST API

In order to query data that is not in a specified geometry in ArcGIS Server REST API, you should choose Relation in Spatial Relationship options and consider the following Relation parameter by means of not contains in you're spatial query:

Relation: FFTFFT***

Like this image:

ArcGIS Relation function

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.