Changeset 1096

Show
Ignore:
Timestamp:
05/09/08 08:37:47
Author:
seang
Message:

Fixed up readme and added static JPL WMS capabilities back in

Files:

Legend:

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

    r1093 r1096  
    11OWSLib 
    22====== 
    3 Package for working with OGC web map and feature services. 
     3 
     4Package for working with OGC map, feature, and coverage services. 
    45 
    56OWSLib provides a common API for accessing service metadata and wrappers for 
    67GetCapabilities, GetMap, and GetFeature requests. 
    78 
    8  
    99Dependencies 
    1010------------ 
    1111 
    12 Before installing, see DEPENDENCIES.txt. 
    13  
    14  
    15 Installation 
    16 ------------ 
    17  
    18 $ python setup.py install 
    19  
     12OWSLib requires elementtree (standard in 2.5 as xml.etree) or lxml. 
    2013 
    2114Usage 
     
    2619    >>> from owslib.wms import WebMapService 
    2720    >>> wms = WebMapService('http://wms.jpl.nasa.gov/wms.cgi', version='1.1.1') 
    28     >>> wms.capabilities.servic
     21    >>> wms.identification.typ
    2922    'OGC:WMS' 
    30     >>> wms.capabilities.title 
     23    >>> wms.identification.version 
     24    '1.1.1' 
     25    >>> wms.identification.title 
    3126    'JPL Global Imagery Service' 
     27    >>> wms.identification.abstract 
     28    'WMS Server maintained by JPL, worldwide satellite imagery.' 
    3229 
    3330Available layers: 
    3431 
    35     >>> [layer.name for layer in wms.capabilities.contents] 
    36     ['global_mosaic', 'global_mosaic_base', 'us_landsat_wgs84', 'srtm_mag', 'daily_terra_721', 'daily_aqua_721', 'daily_terra_ndvi', 'daily_aqua_ndvi', 'daily_terra', 'daily_aqua', 'BMNG', 'modis', 'huemapped_srtm', 'srtmplus', 'worldwind_dem', 'us_ned', 'us_elevation', 'us_colordem'] 
    37  
     32    >>> list(wms.contents) 
     33    ['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'] 
     34     
    3835Details of a layer: 
    3936 
    40     >>> wms.capabilities.getContentByName('global_mosaic').title 
     37    >>> wms['global_mosaic'].title 
    4138    'WMS Global Mosaic, pan sharpened' 
    42     >>> wms.capabilities.getContentByName('global_mosaic').boundingBox 
    43     >>> wms.capabilities.getContentByName('global_mosaic').boundingBoxWGS84 
     39    >>> wms['global_mosaic'].boundingBoxWGS84 
    4440    (-180.0, -60.0, 180.0, 84.0) 
    45     >>> wms.capabilities.getContentByName('global_mosaic').crsOptions 
     41    >>> wms['global_mosaic'].crsOptions 
    4642    ['EPSG:4326', 'AUTO:42003'] 
    47     >>> wms.capabilities.getContentByName('global_mosaic').styles 
     43    >>> wms['global_mosaic'].styles 
    4844    {'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'}} 
    4945 
    5046Available methods, their URLs, and available formats: 
    5147 
    52     >>> [op.name for op in wms.capabilities.operations] 
    53     ['GetCapabilities', 'GetMap'] 
     48    >>> [op.name for op in wms.operations] 
     49    ['GetTileService', 'GetCapabilities', 'GetMap'] 
    5450    >>> wms.capabilities.getOperationByName('GetMap').methods 
    5551    {'Get': {'url': 'http://wms.jpl.nasa.gov/wms.cgi?'}} 
     
    7470tests/MapServerWFSCapabilities.txt for details. 
    7571 
    76  
    7772Known Issues 
    7873------------ 
     
    8075OWSLib works with WMS version 1.1.1 and WFS 1.0.0 Other versions are not 
    8176supported at this time. 
    82  
    8377 
    8478Support 
     
    8882 
    8983http://lists.gispython.org/mailman/listinfo/community 
     84 
    9085http://trac.gispython.org/projects/PCL/wiki 
    9186