Ignore:
Timestamp:
16/02/09 15:09:25 (12 years ago)
Author:
domlowe
Message:

tests now point at famous test subset, formatting capabilities template

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cows/trunk/cows/test/owslibdoctests/wms_mainoperations.txt

    r4858 r4982  
    77 
    88    >>> 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') 
    1010    >>> wms.url 
    11     'http://localhost:5000/famous_control_month/csml_WMS' 
     11    'http://localhost:5000/famous/wms' 
    1212    >>> wms.version 
    1313    '1.1.1' 
     
    2424    'British Atmospheric Data Centre' 
    2525    >>> wms.provider.url 
    26     'http://localhost:5000/famous_control_month/csml_WMS?' 
     26    'http://localhost:5000/famous/wms?' 
    2727    >>> wms.provider.contact.email 
    2828    'D.Lowe@rl.ac.uk' 
     
    4141    >>> wms.provider.contact.country 
    4242    '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'] 
    4650    >>> layer.title 
    47     'surface_temperature' 
     51    'sea_water_salinity' 
    4852    >>> layer.keywords 
    4953    [] 
     
    5155    (-180.0, -90.0, 180.0, 90.0, 'EPSG:4326') 
    5256    >>> layer.timepositions[0] 
    53     '2792-12-16T00:00:00.0' 
     57    '2793-06-01T00:00:00.0' 
    5458    >>> wms.getOperationByName('GetMap').formatOptions 
    5559    ['image/gif', 'image/png', 'image/jpg', 'image/tiff'] 
    56     >>> output=wms.getmap(layers=['surface_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))   
    5761    >>> f=open('testimage.png', 'wb') 
    5862    >>> f.write(output.read()) 
Note: See TracChangeset for help on using the changeset viewer.