Bug
| Bug-ID-Nummer | BUG-000161044 |
|---|---|
| Eingereicht | August 30, 2023 |
| Zuletzt geändert | January 29, 2025 |
| Gilt für | ArcObjects SDK |
| Gefunden in Version | 10.8 |
| Betriebssystem | N/A |
| Betriebssystemversion | N/A |
| Status | Non-Reproducible |
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();
Bug-ID: BUG-000161044
Software:
Unterstützung durch ArcGIS-Experten anfordern
Esri Support App herunterladen