laptop and a wrench

漏洞

Fail to load a secured Web Map Tile Service (WMTS) into ArcMap using ArcObjects SDK with a token attached to the PropertySetClass property.

ArcObjects SDK
漏洞 ID 编号 BUG-000161044
已提交August 30, 2023
上次修改时间January 29, 2025
适用范围ArcObjects SDK
找到的版本10.8
操作系统N/A
操作系统版本N/A
状态Non-Reproducible

附加信息

This issue was not reproducible in-house and will not be addressed at this time. If the issue persists, contact Esri Support Services.

解决办法

Use this Java code snippet that shows how to send custom parameters to a WMTS service:

IMapDocument mapDocument = new MapDocument(); mapDocument.open("c:\\temp\\test1.mxd", ""); IMap map = mapDocument.getMap(0); WMTSConnectionName wmtsConnectionName = new WMTSConnectionName(); String url = "https://SERVICE_URL?CUSTOM_KEY=CUSTOM_VALUE"; //Add all custom parameters here as queryString String layerName = "layerName"; IPropertySet propSetCustomParameters = (IPropertySet) new PropertySet(); //Add all custom parameters here propSetCustomParameters.setProperty("CUSTOM_KEY", "CUSTOM_VALUE"); IPropertySet propSet = wmtsConnectionName.getConnectionProperties(); propSet.setProperty("URL", url); propSet.setProperty("LAYERNAME", layerName); propSet.setProperty("CAPABILITIES_PARAMETERS", propSetCustomParameters); wmtsConnectionName.setConnectionProperties(propSet); WMTSLayerFactory wmtsLayerFactory = new WMTSLayerFactory(); IEnumLayer wmtsLayers = wmtsLayerFactory.create(wmtsConnectionName); ILayer wmtsLayer = wmtsLayers.next(); map.addLayer(wmtsLayer); mapDocument.save(true, true); mapDocument.close();

重现步骤

漏洞 ID: BUG-000161044

软件:

  • ArcObjects SDK

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项