source: TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/csml_describe_feature.kid @ 2529

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/csml_describe_feature.kid@2529
Revision 2529, 1.3 KB checked in by spascoe, 13 years ago (diff)

CSML_API service shows an example of a browsable dataset with subsetting.
The WMS will create a capabilities document with valid <Contents> taken from
the CSML doc.

Line 
1<?xml version="1.0"?>
2<html xmlns:py="http://purl.org/kid/ns#">
3  <head>
4    <title>CSML feature ${c.feature_obj.name.CONTENT} in ${c.file}</title>
5    <script type="text/javascript">
6      function submitWithSel() {
7        var form = document.forms[0];
8        var sel = form.sel.value;
9        var qs = sel.split(/\s+/).join('&amp;');
10        window.location = form.action + '?' + qs;
11        }
12    </script>
13  </head>
14  <body>
15    <h1>
16      CSML feature ${c.feature_obj.name.CONTENT} in
17      <a href="${h.url_for(file=c.file, action='index')}">${c.file}</a>
18    </h1>
19    <dl>
20      <dt>Description</dt>
21      <dd py:content="c.feature_obj.description.CONTENT"/>
22      <dt>FeatureType</dt>
23      <dd py:content="c.feature_obj.__class__.__name__"/>
24      <dt>Domain</dt>
25      <dd>
26        <dl>
27          <?python domain = c.feature_obj.getDomain() ?>
28          <py:block py:for="ord in domain" py:strip="1">
29            <dt py:content="ord"/>
30            <dd>${domain[ord][0]} -- ${domain[ord][-1]} (${len(domain[ord])} items)</dd>
31          </py:block>
32        </dl>
33      </dd>
34    </dl>
35    <h2>SubsetToGridSeries</h2>
36    <form id="ssForm" method="GET" action="${h.url_for(action='subsetToGridSeries', format=None)}">
37      <p>
38        Selector: <input type="text" name="sel"/>
39        <input type="button" value="Extract" onClick="submitWithSel()"/>
40      </p>
41    </form>
42  </body>
43</html>
Note: See TracBrowser for help on using the repository browser.