source: TI02-CSML/trunk/services/3rdParty/OWSLib-0.2.0/owslib/interfaces.py @ 2194

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI02-CSML/trunk/services/3rdParty/OWSLib-0.2.0/owslib/interfaces.py@2194
Revision 2194, 3.8 KB checked in by lawrence, 13 years ago (diff)

Adding various specs and 3rd party code of interest for the CSML
services development.

Line 
1# Do not import zope.interfaces
2
3class IWebMapService:
4    """Abstraction for an OGC Web Map Service (WMS).
5
6    Properties
7    ----------
8    url : string
9        Online resource URL.
10    version : string
11        WMS protocol version.
12    capabilities : object
13        Describes the capabilities metadata of the WMS.
14    """
15
16    def getcapabilities():
17        """Make a request to the WMS, returns an XML document wrapped in a
18        Python file object."""
19
20    def getmap(**kw):
21        """Make a request to the WMS, returns an image wrapped in a Python
22        file object."""
23
24    def getfeatureinfo(**kw):
25        """Make a request to the WMS, returns data."""
26
27
28class IWebFeatureService:
29    """Abstraction for an OGC Web Feature Service (WFS).
30
31    Properties
32    ----------
33    url : string
34        Online resource URL.
35    version : string
36        WFS protocol version.
37    capabilities : object
38        Describes the capabilities metadata of the WFS.
39    """
40
41    def getcapabilities():
42        """Make a request to the WFS, returns an XML document wrapped in a
43        Python file object."""
44
45    def getfeature(**kw):
46        """Make a request to the WFS, returns an image wrapped in a Python
47        file object."""
48
49    def describefeaturetype(**kw):
50        """Make a request to the WFS, returns data."""
51
52
53class IServiceIdentificationMetadata:
54    """OO-interface to WMS metadata.
55
56    Properties
57    ----------
58    service : string
59        "WMS", "WFS".
60    version : string
61        Version of service protocol.
62    title : string
63        Human-targeted title of service.
64    abstract : string
65        Text describing the service.
66    keywords : list
67        List of strings.
68    rights : list
69        Explanation of rights associated with service.
70    """
71   
72class IServiceProviderMetadata:
73    """OO-interface to WMS metadata.
74
75    Properties
76    ----------
77    provider : string
78        Organization name.
79    url : string
80        URL for provider web site.
81    contact : string
82        How to contact the service provider.
83    """
84
85class IServiceOperationsMetadata:
86    """OO-interface to WMS metadata.
87
88    Properties
89    ----------
90    operations : list
91        List of operation descriptors.
92    exceptions : list
93        List of exception formats.
94    """
95   
96class IOperationMetadata:
97    """OO-interface to WMS metadata.
98
99    Properties
100    ----------
101    name : string
102        "GetCapabilities", for example.
103    formatOptions : list
104        List of content types.
105    methods : dict
106        Array of method descriptors, keyed to HTTP verbs.
107    """
108
109class IContactMetadata:
110    """OO-interface to OWS metadata.
111
112    Properties
113    ----------
114    name : string
115    organization : string
116    address : string
117    city : string
118    region : string
119    postcode : string
120    country : string
121    email : string
122    """
123
124class IMethodMetadata:
125    """OO-interface to WMS metadata.
126
127    Properties
128    ----------
129    url : string
130        Method URL.
131   
132    TODO: constraint
133    """
134
135class IServiceContentsMetadata:
136    """OO-interface to WMS metadata.
137
138    Properties
139    ----------
140    contents : list
141        List of content descriptors.
142    """
143
144class IContentMetadata:
145    """OO-interface to WMS metadata.
146
147    Properties
148    ----------
149    id : string
150        Unique identifier.
151    title : string
152        Human-targeted title.
153    boundingBox : 5-tuple
154        Four bounding values and a coordinate reference system identifier.
155    boundingBoxWGS84 : 4-tuple
156        Four bounding values in WGS coordinates.
157    crsOptions : list
158        List of available coordinate/spatial reference systems.
159    styles : list
160        List of style dicts.
161    """
162
163class IServiceMetadata(IServiceIdentificationMetadata, IServiceProvideMetadata,
164                       IServiceOperationsMetadata, IServiceContentsMetadata):
165    """OWS Metadata.
166    """
167
168
Note: See TracBrowser for help on using the repository browser.