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, 2019ArcGIS GIS Server
漏洞 ID 编号
BUG-000118572
已提交
December 4, 2018
上次修改时间
June 5, 2024
适用范围
ArcGIS GIS Server
找到的版本
10.6.1
操作系统
Windows OS
操作系统版本
2016 64 Bit
状态
Known Limit
经开发团队审核,已确定此问题与不受 Esri 控制的软件的已知限制有关。 问题的“其他信息”部分可能包含进一步说明。
附加信息
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
解决办法
Run a query with only Return IDs Only set to True, along with an Input Geometry specified.
Take note of the ObjectIDs that are returned and then run another query.
Place the returned ObjectIDs into a second query with the following parameters: