laptop and a wrench

漏洞

When Return Distinct Values is set to True for a feature service or map service and a geometry type is specified, a query from ArcGIS REST API fails on ArcGIS Server with PostgreSQL as the underlying database.

上次发布: July 5, 2019 ArcGIS GIS Server
漏洞 ID 编号 BUG-000118572
已提交December 4, 2018
上次修改时间June 5, 2024
适用范围ArcGIS GIS Server
找到的版本10.6.1
操作系统Windows OS
操作系统版本2016 64 Bit
状态Known Limit

附加信息

This is a known limitation in ArcGIS Server. Our ArcGIS Server REST API states the following: Note: Make sure to set returnGeometry = false when returnDistinctValues = true or results will not be reliable. https://developers.arcgis.com/rest/services-reference/query-feature-service-layer-.htm

解决办法

  1. Run a query with only Return IDs Only set to True, along with an Input Geometry specified.
  2. Take note of the ObjectIDs that are returned and then run another query.
  3. Place the returned ObjectIDs into a second query with the following parameters:
    1. Remove the input geometry.
    2. Return Distinct Values = True.
    3. Return IDs Only = False.
  4. The query should complete successfully.

重现步骤

漏洞 ID: BUG-000118572

软件:

  • ArcGIS GIS Server

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项