laptop and a wrench

Erro

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
Número de ID do Erro BUG-000161044
EnviadoAugust 30, 2023
Última ModificaçãoJanuary 29, 2025
Aplica-se àArcObjects SDK
Versão encontrada10.8
Sistema OperacionalN/A
Versão do Sistema OperacionalN/A
StatusNon-Reproducible

Informações Adicionais

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

Solução Provisória

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();

Etapas para Reproduzir

ID do Erro: BUG-000161044

Software:

  • ArcObjects SDK

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download