source: TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/csml_api.py @ 2507

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/csml_api.py@2507
Revision 2507, 604 bytes checked in by spascoe, 12 years ago (diff)

Operations metadata inserted correctly for CSML WMS.

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"""
6Basic CSML controller.
7
8@author: Stephen Pascoe
9"""
10
11from ows_server.lib.base import *
12import os
13from ows_server.lib.csml_util import get_csml_doc
14
15
16
17class CsmlApiController(BaseController):
18    def index(self, file):
19        d = get_csml_doc(file)
20        return Response('Dataset: %s\nFeatures: %s' % (file,
21                        ' '.join(d.getFeatureList())))
22
Note: See TracBrowser for help on using the repository browser.