Changeset 507

Show
Ignore:
Timestamp:
10/17/06 10:49:04
Author:
seang
Message:

Flesh out ows metadata interfaces

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • OWSLib/trunk/owslib/interfaces.py

    r506 r507  
    1010    version : string 
    1111        WMS protocol version. 
    12     capabilities : object 
    13         Describes the capabilities of the WMS. 
     12    metadata : object 
     13        Describes the metadata (formerly called capabilities) of the WMS. 
    1414    """ 
    1515 
     
    2424 
    2525 
     26class IServiceIdentificationMetadata: 
     27    """OO-interface to WMS metadata. 
     28 
     29    Properties 
     30    ---------- 
     31    service : string 
     32        "WMS", "WFS". 
     33    version : string 
     34        Version of service protocol. 
     35    title : string 
     36        Human-targeted title of service. 
     37    abstract : string 
     38        Text describing the service. 
     39    keywords : list 
     40        List of strings. 
     41    rights : list 
     42        Explanation of rights associated with service. 
     43    """ 
     44     
     45class IServiceProviderMetadata: 
     46    """OO-interface to WMS metadata. 
     47 
     48    Properties 
     49    ---------- 
     50    provider : string 
     51        Organization name. 
     52    url : string 
     53        URL for provider web site. 
     54    contact : string 
     55        How to contact the service provider. 
     56    """ 
     57 
     58class IServiceOperationsMetadata: 
     59    """OO-interface to WMS metadata. 
     60 
     61    Properties 
     62    ---------- 
     63    operations : list 
     64        List of operation descriptors. 
     65    """ 
     66     
     67class IOperationsMetadata: 
     68    """OO-interface to WMS metadata. 
     69 
     70    Properties 
     71    ---------- 
     72    name : string 
     73        "GetCapabilities", for example. 
     74    methods : dict 
     75        Array of method descriptors, keyed to HTTP verbs. 
     76    """ 
     77 
     78class IMethodMetadata: 
     79    """OO-interface to WMS metadata. 
     80 
     81    Properties 
     82    ---------- 
     83    url : string 
     84        Method URL. 
     85     
     86    TODO: constraint 
     87    """ 
     88 
     89class IContentsMetadata: 
     90    """OO-interface to WMS metadata. 
     91 
     92    Properties 
     93    ---------- 
     94    contents : list 
     95        List of content descriptors. 
     96    """ 
     97 
     98class IContentMetadata: 
     99    """OO-interface to WMS metadata. 
     100 
     101    Properties 
     102    ---------- 
     103    id : string 
     104        Unique identifier. 
     105    title : string 
     106        Human-targeted title. 
     107    boundingBox : 5-tuple 
     108        Four bounding values and a coordinate reference system identifier. 
     109    boundingBoxWGS84 : 4-tuple 
     110        Four bounding values in WGS coordinates. 
     111    formatOptions : list 
     112        List of available formats, each a string. 
     113    crsOptions : list 
     114        List of available coordinate/spatial reference systems. 
     115    """ 
     116