- Timestamp:
- 16/02/09 15:09:25 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cows/trunk/cows/test/owslibdoctests/wms_mainoperations.txt
r4858 r4982 7 7 8 8 >>> from owslib.wms import WebMapService 9 >>> wms=WebMapService('http://localhost:5000/famous _control_month/csml_WMS', version='1.1.1')9 >>> wms=WebMapService('http://localhost:5000/famous/wms', version='1.1.1') 10 10 >>> wms.url 11 'http://localhost:5000/famous _control_month/csml_WMS'11 'http://localhost:5000/famous/wms' 12 12 >>> wms.version 13 13 '1.1.1' … … 24 24 'British Atmospheric Data Centre' 25 25 >>> wms.provider.url 26 'http://localhost:5000/famous _control_month/csml_WMS?'26 'http://localhost:5000/famous/wms?' 27 27 >>> wms.provider.contact.email 28 28 'D.Lowe@rl.ac.uk' … … 41 41 >>> wms.provider.contact.country 42 42 'UK' 43 >>> for item in wms.items(): print item[0]; break 44 toa_incoming_shortwave_flux 45 >>> layer=wms['surface_temperature'] 43 >>> for item in wms.items(): print item[0] 44 None 45 sea_ice_thickness 46 air_temperature 47 sea_water_salinity 48 cloud_area_fraction 49 >>> layer=wms['sea_water_salinity'] 46 50 >>> layer.title 47 's urface_temperature'51 'sea_water_salinity' 48 52 >>> layer.keywords 49 53 [] … … 51 55 (-180.0, -90.0, 180.0, 90.0, 'EPSG:4326') 52 56 >>> layer.timepositions[0] 53 '279 2-12-16T00:00:00.0'57 '2793-06-01T00:00:00.0' 54 58 >>> wms.getOperationByName('GetMap').formatOptions 55 59 ['image/gif', 'image/png', 'image/jpg', 'image/tiff'] 56 >>> output=wms.getmap(layers=['s urface_temperature'],time='2992-11-16T00:00:00.0',bbox=(-150,-80,150,80), srs='EPSG:4326', format='image/png',size=(300, 250))60 >>> output=wms.getmap(layers=['sea_water_salinity'],time='2982-11-16T00:00:00.0',bbox=(-150,-80,150,80), srs='EPSG:4326', format='image/png',size=(300, 250)) 57 61 >>> f=open('testimage.png', 'wb') 58 62 >>> f.write(output.read())
Note: See TracChangeset
for help on using the changeset viewer.