|
From: klo uo <kl...@gm...> - 2012-10-11 04:01:15
|
On Thu, Oct 11, 2012 at 4:40 AM, klo uo wrote:
> Not sure, but as in example posted, 'img' is HTTPmessage pointing to
> server, and I can't see how we can deduce georeference as 'wms' object is
> named arbitrary, it could have been named to anything:
>
What am I talking about? We can deduce from 'img.url' itself:
========================================
In [23]: import urlparse
In [24]: urlparse.parse_qs(img.url)
Out[24]:
{'COLORSCALERANGE': ['271.2,308'],
'CRS': ['EPSG:4326'],
'STYLES': ['boxfill/rainbow'],
'VERSION': ['1.3.0'],
'bbox': ['-118,22,-108,32'],
'bgcolor': ['0xFFFFFF'],
'exceptions': ['application/vnd.ogc.se_xml'],
'format': ['image/png'],
'height': ['250'],
'
http://motherlode.ucar.edu:8080/thredds/wms/fmrc/NCEP/NAM/CONUS_12km/NCEP-NAM-CONUS_12km-noaaport_best.ncd?layers':
['Temperature_height_above_ground'],
'request': ['GetMap'],
'srs': ['None'],
'transparent': ['TRUE'],
'version': ['1.1.1'],
'width': ['250']}
========================================
So we have all information about the the service in a nice dictionary,
reading it's url
|