Changeset 1101
- Timestamp:
- 05/09/08 09:00:02
- Files:
-
- OWSLib/trunk/README.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
OWSLib/trunk/README.txt
r1096 r1101 6 6 OWSLib provides a common API for accessing service metadata and wrappers for 7 7 GetCapabilities, GetMap, and GetFeature requests. 8 9 The OWSLib version 0.3 API is incompatible with version 0.2.1. 8 10 9 11 Dependencies … … 15 17 ----- 16 18 17 Find out what a WMS has to offer. Service metadata: 19 Find out what a WMS has to offer. Service metadata:: 18 20 19 21 >>> from owslib.wms import WebMapService … … 28 30 'WMS Server maintained by JPL, worldwide satellite imagery.' 29 31 30 Available layers: 32 Available layers:: 31 33 32 34 >>> list(wms.contents) 33 35 ['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 36 35 Details of a layer: 37 Details of a layer:: 36 38 37 39 >>> wms['global_mosaic'].title … … 44 46 {'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'}} 45 47 46 Available methods, their URLs, and available formats: 48 Available methods, their URLs, and available formats:: 47 49 48 50 >>> [op.name for op in wms.operations] … … 53 55 ['image/jpeg', 'image/png', 'image/geotiff', 'image/tiff'] 54 56 55 That's everything needed to make a request for imagery: 57 That's everything needed to make a request for imagery:: 56 58 57 59 >>> img = wms.getmap( layers=['global_mosaic'],
