Changeset 1096
- Timestamp:
- 05/09/08 08:37:47
- Files:
-
- OWSLib/trunk/README.txt (modified) (5 diffs)
- OWSLib/trunk/tests/JPLCapabilities.xml (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
OWSLib/trunk/README.txt
r1093 r1096 1 1 OWSLib 2 2 ====== 3 Package for working with OGC web map and feature services. 3 4 Package for working with OGC map, feature, and coverage services. 4 5 5 6 OWSLib provides a common API for accessing service metadata and wrappers for 6 7 GetCapabilities, GetMap, and GetFeature requests. 7 8 8 9 9 Dependencies 10 10 ------------ 11 11 12 Before installing, see DEPENDENCIES.txt. 13 14 15 Installation 16 ------------ 17 18 $ python setup.py install 19 12 OWSLib requires elementtree (standard in 2.5 as xml.etree) or lxml. 20 13 21 14 Usage … … 26 19 >>> from owslib.wms import WebMapService 27 20 >>> wms = WebMapService('http://wms.jpl.nasa.gov/wms.cgi', version='1.1.1') 28 >>> wms. capabilities.service21 >>> wms.identification.type 29 22 'OGC:WMS' 30 >>> wms.capabilities.title 23 >>> wms.identification.version 24 '1.1.1' 25 >>> wms.identification.title 31 26 'JPL Global Imagery Service' 27 >>> wms.identification.abstract 28 'WMS Server maintained by JPL, worldwide satellite imagery.' 32 29 33 30 Available layers: 34 31 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 38 35 Details of a layer: 39 36 40 >>> wms .capabilities.getContentByName('global_mosaic').title37 >>> wms['global_mosaic'].title 41 38 'WMS Global Mosaic, pan sharpened' 42 >>> wms.capabilities.getContentByName('global_mosaic').boundingBox 43 >>> wms.capabilities.getContentByName('global_mosaic').boundingBoxWGS84 39 >>> wms['global_mosaic'].boundingBoxWGS84 44 40 (-180.0, -60.0, 180.0, 84.0) 45 >>> wms .capabilities.getContentByName('global_mosaic').crsOptions41 >>> wms['global_mosaic'].crsOptions 46 42 ['EPSG:4326', 'AUTO:42003'] 47 >>> wms .capabilities.getContentByName('global_mosaic').styles43 >>> wms['global_mosaic'].styles 48 44 {'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'}} 49 45 50 46 Available methods, their URLs, and available formats: 51 47 52 >>> [op.name for op in wms. capabilities.operations]53 ['Get Capabilities', 'GetMap']48 >>> [op.name for op in wms.operations] 49 ['GetTileService', 'GetCapabilities', 'GetMap'] 54 50 >>> wms.capabilities.getOperationByName('GetMap').methods 55 51 {'Get': {'url': 'http://wms.jpl.nasa.gov/wms.cgi?'}} … … 74 70 tests/MapServerWFSCapabilities.txt for details. 75 71 76 77 72 Known Issues 78 73 ------------ … … 80 75 OWSLib works with WMS version 1.1.1 and WFS 1.0.0 Other versions are not 81 76 supported at this time. 82 83 77 84 78 Support … … 88 82 89 83 http://lists.gispython.org/mailman/listinfo/community 84 90 85 http://trac.gispython.org/projects/PCL/wiki 91 86
