This article provides a sample script that helps in finding if any Map chart visualization is configured to use WMS Layers
Introduction
This article provides a sample script that helps in finding if any Map chart visualization is configured to use WMS Layers
Code Sample
# Copyright © 2019. TIBCO Software Inc. Licensed under TIBCO BSD-style license. from Spotfire.Dxp.Application.Visuals import * from Spotfire.Dxp.Application.Visuals.Maps import * wmsLayerType= "Spotfire.Dxp.Application.Visuals.Maps.WmsLayer" for page in Document.Pages: for vis in page.Visuals: if vis.TypeId==VisualTypeIdentifiers.MapChart2: for layer in vis.As[MapChart]().Layers: if layer.GetType().FullName==wmsLayerType: print layer.Title+"n"+layer.ServiceBaseUri.ToString()
References
License: TIBCO BSD-Style License
Back to IronPython Scripting in TIBCO Spotfire Examples: ironpython-scripting-in-spotfire
Recommended Comments
There are no comments to display.