source: cows/trunk/cows/pylons/templates/wcs_describecoverage_1_0_0.xml @ 4740

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/cows/trunk/cows/pylons/templates/wcs_describecoverage_1_0_0.xml@4740
Revision 4740, 2.3 KB checked in by domlowe, 12 years ago (diff)

More conversion to genshi templates for wcs.

Line 
1<?xml version="1.0"?>
2<!DOCTYPE WMT_MS_Capabilities SYSTEM
3 "http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd">
4
5<?python
6
7from cows.pylons.genshi_util import RenameElementFilter
8from genshi import QName
9import webhelpers as h
10
11?>
12
13<CoverageDescription xmlns:py="http://genshi.edgewall.org/" xmlns:gml="http://www.opengis.net/gml" xmlns:ows="http://www.opengis.net/ows" version="1.0.0">
14        <CoverageOffering py:for="cd in c.descriptions">       
15                <description py:if="cd.abstracts is not None" py:content="cd.abstracts"/>           
16        <name py:content="cd.identifier"/>       
17        <label py:if="cd.titles is not None" py:content="cd.titles"/>       
18        <Keywords py:if = "cd.keywords is not None" >
19            <Keyword py:for="key in cd.keywords" py:content="key" />       
20        </Keywords>
21        <lonLatEnvelope py:for="bb in cd.boundingBoxes">
22                    <gml:pos>${bb.lowerCorner[0]}  ${bb.lowerCorner[1]}</gml:pos>
23                    <gml:pos>${bb.upperCorner[0]}  ${bb.upperCorner[1]}</gml:pos>
24        </lonLatEnvelope>
25        <domainSet>
26            <spatialDomain>
27                <!--! TO DO - nD crs -->
28                <gml:Envelope py:for="bb in cd.boundingBoxes" srsName="${bb.crs}">
29                    <gml:pos>${bb.lowerCorner[0]}  ${bb.lowerCorner[1]}</gml:pos>
30                    <gml:pos>${bb.upperCorner[0]}  ${bb.upperCorner[1]}</gml:pos>
31                </gml:Envelope>
32            </spatialDomain>
33            <temporalDomain>
34                <timePeriod>
35                    <beginPosition>${cd.timeLimits[0]}</beginPosition>
36                    <endPosition>${cd.timeLimits[1]}</endPosition>
37                </timePeriod>
38            </temporalDomain>
39        </domainSet>
40        <rangeSet>
41            <RangeSet>
42                <name>rangeset name</name>
43                <label>rangeset label</label>               
44            </RangeSet>
45        </rangeSet>
46        <supportedCRSs>
47             <requestCRSs>${cd.crs}</requestCRSs>
48            <responseCRSs>${cd.crs}</responseCRSs>
49        </supportedCRSs>
50        <supportedFormats>
51            <formats>cf-netcdf</formats>
52        </supportedFormats>
53        <supportedInterpolations>
54            <interpolationMethod>none</interpolationMethod>
55        </supportedInterpolations>
56    </CoverageOffering>         
57</CoverageDescription>
Note: See TracBrowser for help on using the repository browser.