Fails to query on the sublayer annotation level in a map service in ArcGIS for Server 10.4.1.
上次发布: July 20, 2016ArcGIS for Server
漏洞 ID 编号
BUG-000097806
已提交
July 15, 2016
上次修改时间
February 20, 2025
适用范围
ArcGIS for Server
找到的版本
10.4
操作系统
Windows OS
状态
Known Limit
经开发团队审核,已确定此问题与不受 Esri 控制的软件的已知限制有关。 问题的“其他信息”部分可能包含进一步说明。
附加信息
This is as designed.
Queries for annotation sublayers are not supported. The sub layers for annotation are there only to turn the visibility on or off when exporting the map.
This is also true in desktop where we don’t allow users to open the table for a anno sub layer.
If querying the f=json response for the capabilities enabled on the annotation sublayer, like the following request would:
https://server.domain/arcgis/rest/services/Maps/ANNOTATION/MapServer/1?f=pjson
You would see the capabilities like so:
Capabilities: "Map,Query"
query is only supported when the capabilities include Data. Like so:
capabilities: "Map,Query,Data"
解决办法
Query the map service's annotation layer instead of the annotation sublayer to return records.