laptop and a wrench

Bug

ArcGIS Server REST API fails to return the correct Within spatial relationship for hosted feature layers.

ArcGIS GIS Server
Bug ID Number BUG-000175183
SubmittedMarch 20, 2025
Last ModifiedJune 19, 2025
Applies toArcGIS GIS Server
Version found11.4
Operating SystemWindows OS
Operating System Version11.0 64 bit
StatusAs Designed

Additional Information

Within returns 'true' if the first geometry is completely inside the second geometry. The Open Geospatial Consortium (OGC) complaint ST_Within predicate pattern matrix states that the interiors of both geometries must intersect and that the interior and boundary of the primary geometry (geometry a) must not intersect the exterior of the secondary (geometry b).

Workaround

Use the Overlaps spatial relationship operation instead of Within.

Steps to Reproduce

Bug ID: BUG-000175183

Software:

  • ArcGIS GIS Server

Get notified when the status of a bug changes

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