Changeset 4858 for cows


Ignore:
Timestamp:
21/01/09 12:54:20 (11 years ago)
Author:
domlowe
Message:

wms doctest working

File:
1 edited

Legend:

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

    r4857 r4858  
    1212    >>> wms.version 
    1313    '1.1.1' 
    14     >>> wms.identification.service 
     14    >>> wms.identification.type 
    1515    'OGC:WMS' 
    1616    >>> wms.identification.version 
     
    2121    >>> wms.identification.keywords 
    2222    [] 
    23     >>> wms.identification.fees 
    24     >>> wms.identification.accessConstraints 
    2523    >>> wms.provider.name 
    2624    'British Atmospheric Data Centre' 
     
    5048    >>> layer.keywords 
    5149    [] 
    52     >>> wms.identification.accessConstraints 
    53     >>> wms.identification.fees 
    54     >>> layer.boundingBoxWGS84 
    55     (-180.0, -90.0, 180.0, 90.0) 
    56     >>> layer.timelimits 
    57     ['2792-12-16T00:00:00.0Z', '2992-11-16T00:00:00.0Z'] 
    58     >>> layer.supportedFormats 
    59     [] 
    60     >>> layer.supportedCRS 
    61     [] 
    62     >>> output=wms.getmap(layers=['surface_temperature'],time='2992-11-16T00:00:00.0',bbox=(-80,30,50,60), srs='EPSG:4326', format='image/png',size=(300, 250))   
     50    >>> layer.boundingBox 
     51    (-180.0, -90.0, 180.0, 90.0, 'EPSG:4326') 
     52    >>> layer.timepositions[0] 
     53    '2792-12-16T00:00:00.0' 
     54    >>> wms.getOperationByName('GetMap').formatOptions 
     55    ['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))   
    6357    >>> f=open('testimage.png', 'wb') 
    6458    >>> f.write(output.read()) 
Note: See TracChangeset for help on using the changeset viewer.