@@ -4295,7 +4295,7 @@ def arcgisimage(self,server='http://server.arcgisonline.com/ArcGIS',\
4295
4295
4296
4296
def wmsimage (self ,server ,\
4297
4297
xpixels = 400 ,ypixels = None ,\
4298
- format = 'png' ,verbose = False ,** kwargs ):
4298
+ format = 'png' ,alpha = None , verbose = False ,** kwargs ):
4299
4299
"""
4300
4300
Retrieve an image using from a WMS server using the
4301
4301
Open Geospatial Consortium (OGC) standard interface
@@ -4319,6 +4319,7 @@ def wmsimage(self,server,\
4319
4319
from xpixels and the aspect ratio of the
4320
4320
map projection region.
4321
4321
format desired image format (default 'png')
4322
+ alpha The alpha blending value, between 0 (transparent) and 1 (opaque)
4322
4323
verbose if True, print WMS server info (default
4323
4324
False).
4324
4325
\**kwargs extra keyword arguments passed on to
@@ -4380,7 +4381,7 @@ def wmsimage(self,server,\
4380
4381
# return AxesImage instance.
4381
4382
# this works for png and jpeg.
4382
4383
return self .imshow (imread (io .BytesIO (img .read ()),
4383
- format = format ),origin = 'upper' )
4384
+ format = format ),origin = 'upper' , alpha = alpha )
4384
4385
# this works for png, but not jpeg
4385
4386
#return self.imshow(imread(urllib2.urlopen(img.url),format=format),origin='upper')
4386
4387
0 commit comments