source: TI05-delivery/ows_framework/branches/ows_framework-refactor/ows_common/ows_common/model/service_identification.py @ 3561

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/ows_framework/branches/ows_framework-refactor/ows_common/ows_common/model/service_identification.py@3561
Revision 3561, 1.3 KB checked in by spascoe, 13 years ago (diff)

Several bugs that were making the Capabilities document invalid.

The DDP test WMS server is now viewable through Cadcorp's Map Browser.

Line 
1# Copyright (C) 2007 STFC & NERC (Science and Technology Facilities Council).
2# This software may be distributed under the terms of the
3# Q Public License, version 1.0 or later.
4# http://ndg.nerc.ac.uk/public_docs/QPublic_license.txt
5"""
6Classes modelling the OWS Service Identification package v1.1.0.
7
8@author: Stephen Pascoe
9"""
10
11from ows_common.model.data_identification import Description
12
13class ServiceIdentification(Description):
14    """
15    @ivar serviceType
16    @type serviceType: ows.iso19115_subset.Code
17    @ivar serviceTypeVersions: The supported service versions
18    @type serviceTypeVersions: iterable of str
19    @ivar profiles
20    @type profiles: iterable of str
21    @ivar fees: defaults to 'none'
22    @type fees: str
23    @ivar accessConstraints: defaults to 'none'
24    @type accessConstraints: str
25
26    """
27    def __init__(self, serviceType, serviceTypeVersions=[],
28                 profiles=[], fees="none", accessConstraints="none", **kwargs):
29        """
30        All parameters set default attributes of the instance.
31
32        """
33        super(self.__class__, self).__init__(**kwargs)
34
35        self.serviceType = serviceType
36        self.serviceTypeVersions = serviceTypeVersions
37        self.profiles = profiles
38        self.fees = fees
39        self.accessConstraints = accessConstraints
40
Note: See TracBrowser for help on using the repository browser.