Is there a way to add a wms layer or background image ("Big Blue Marble") via the scripting API?
Thanks,
Joleen
Background Image
Re: Background Image
Hi Joleen -
I looked this over with a programmer, and there doesn't appear to be a good way of doing this currently. One thing that you can do is run the following in the Jython Shell:
getStaticMcv().doMakeBackgroundImage()
This will add the background image to the active display with the default layer of 'Blue Marble - Static'. However, from here, there doesn't appear to be a way of changing which type of background image layer is being displayed.
I wrote up McIDAS-V Inquiry 2157 to cover adding these new functions.
Another option for now would be using a bundle. For example, if you know that you want to use the 'Lights - Static' basemap, you can display this through the GUI and save it off as a bundle. Then, in a script or through the Jython Shell, you can load the bundle via the openBundle function.
Thanks -
Bob Carp
I looked this over with a programmer, and there doesn't appear to be a good way of doing this currently. One thing that you can do is run the following in the Jython Shell:
getStaticMcv().doMakeBackgroundImage()
This will add the background image to the active display with the default layer of 'Blue Marble - Static'. However, from here, there doesn't appear to be a way of changing which type of background image layer is being displayed.
I wrote up McIDAS-V Inquiry 2157 to cover adding these new functions.
Another option for now would be using a bundle. For example, if you know that you want to use the 'Lights - Static' basemap, you can display this through the GUI and save it off as a bundle. Then, in a script or through the Jython Shell, you can load the bundle via the openBundle function.
Thanks -
Bob Carp
Re: Background Image
Okay, thanks. This is a good start.
Joleen
Joleen