Performing a query from the REST endpoint using a polygon as an input geometry produces unexpected query results when specifying values for the 'Result Offset' and/or 'Result Record Count' parameters.
Last Published: December 15, 2016ArcGIS for Server
Bug ID Number
October 12, 2015
May 31, 2023
ArcGIS for Server
After review by the development team, it has been determined that this issue is related to a known limitation with the software that lies outside of Esri's control. The issue's Additional Information section may contain further explanation.
Pagination with spatial filter requires two steps - first it gets features whose extents are intersected by the extent of the search geometry - that happens at the database level along with the pagination -- as a result it returns some candidate-features with false positive. In the 2nd steps, it weeds out all candidate features with false positive; therefore the number of features in the result may not match the recordCount; you should allow check exceedTransferlimit flag in the result to find out whether more features available or not.