BUG

SPATIALQUERY results are incorrect when used with an ArcMap Service

Last Published: April 25, 2020

Description

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

Cause

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

For example:

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

Workaround

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

    Article ID:000006832

    Software:
    • Legacy Products

    Get help from ArcGIS experts

    Contact technical support

    Download the Esri Support App

    Go to download options

    Discover more on this topic