Changeset 1101

Show
Ignore:
Timestamp:
05/09/08 09:00:02
Author:
seang
Message:

Add code blocks back to readme

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • OWSLib/trunk/README.txt

    r1096 r1101  
    66OWSLib provides a common API for accessing service metadata and wrappers for 
    77GetCapabilities, GetMap, and GetFeature requests. 
     8 
     9The OWSLib version 0.3 API is incompatible with version 0.2.1. 
    810 
    911Dependencies 
     
    1517----- 
    1618 
    17 Find out what a WMS has to offer. Service metadata: 
     19Find out what a WMS has to offer. Service metadata:: 
    1820 
    1921    >>> from owslib.wms import WebMapService 
     
    2830    'WMS Server maintained by JPL, worldwide satellite imagery.' 
    2931 
    30 Available layers: 
     32Available layers:: 
    3133 
    3234    >>> list(wms.contents) 
    3335    ['us_landsat_wgs84', 'modis', 'global_mosaic_base', 'huemapped_srtm', 'srtm_mag', 'daily_terra', 'us_ned', 'us_elevation', 'global_mosaic', 'daily_terra_ndvi', 'daily_aqua_ndvi', 'daily_aqua_721', 'daily_planet', 'BMNG', 'srtmplus', 'us_colordem', None, 'daily_aqua', 'worldwind_dem', 'daily_terra_721'] 
    3436     
    35 Details of a layer: 
     37Details of a layer:: 
    3638 
    3739    >>> wms['global_mosaic'].title 
     
    4446    {'pseudo_bright': {'title': 'Pseudo-color image (Uses IR and Visual bands, 542 mapping), gamma 1.5'}, 'pseudo': {'title': '(default) Pseudo-color image, pan sharpened (Uses IR and Visual bands, 542 mapping), gamma 1.5'}, 'visual': {'title': 'Real-color image, pan sharpened (Uses the visual bands, 321 mapping), gamma 1.5'}, 'pseudo_low': {'title': 'Pseudo-color image, pan sharpened (Uses IR and Visual bands, 542 mapping)'}, 'visual_low': {'title': 'Real-color image, pan sharpened (Uses the visual bands, 321 mapping)'}, 'visual_bright': {'title': 'Real-color image (Uses the visual bands, 321 mapping), gamma 1.5'}} 
    4547 
    46 Available methods, their URLs, and available formats: 
     48Available methods, their URLs, and available formats:: 
    4749 
    4850    >>> [op.name for op in wms.operations] 
     
    5355    ['image/jpeg', 'image/png', 'image/geotiff', 'image/tiff'] 
    5456 
    55 That's everything needed to make a request for imagery: 
     57That's everything needed to make a request for imagery:: 
    5658 
    5759    >>> img = wms.getmap(   layers=['global_mosaic'],