@@ -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,8 @@ 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,
4323
+ between 0 (transparent) and 1 (opaque) (default None)
4322
4324
verbose if True, print WMS server info (default
4323
4325
False).
4324
4326
\**kwargs extra keyword arguments passed on to
@@ -4380,7 +4382,7 @@ def wmsimage(self,server,\
4380
4382
# return AxesImage instance.
4381
4383
# this works for png and jpeg.
4382
4384
return self .imshow (imread (io .BytesIO (img .read ()),
4383
- format = format ),origin = 'upper' )
4385
+ format = format ),origin = 'upper' , alpha = alpha )
4384
4386
# this works for png, but not jpeg
4385
4387
#return self.imshow(imread(urllib2.urlopen(img.url),format=format),origin='upper')
4386
4388
0 commit comments