SPATIALQUERY results are incorrect when used with an ArcMap Service

Last Published: April 25, 2020


Performing a SPATIALQUERY against an ArcMap service returns incorrect, or unexpected results. More, or less, features are being returned.


ArcMap Server may return unexpected results when 'envelope_intersection' is used within the SPATIALFILTER tag of a SPATIALQUERY request.

For example:

<SPATIALFILTER relation="envelope_intersection">
<ENVELOPE maxy="30" maxx="30" miny="0" minx="0" />


When working the ArcMap Services, area_intersection should be used instead of envelope_intersection.

    Article ID:000006832

    • Legacy Products

    Receive notifications and find solutions for new or common issues

    Get summarized answers and video solutions from our new AI chatbot.

    Download the Esri Support App

    Discover more on this topic

    Get help from ArcGIS experts

    Contact technical support

    Download the Esri Support App

    Go to download options