source: cows/trunk/cows/pylons/templates/wfs_featurecollection.xml @ 4422

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/cows/trunk/cows/pylons/templates/wfs_featurecollection.xml@4422
Revision 4422, 605 bytes checked in by domlowe, 11 years ago (diff)

Extended framework to allow for wfs:AdditionalObjects - which can be used for csml storage descriptors.

Line 
1<?xml version="1.0"?>
2
3<?python
4from genshi import XML
5?>
6
7<!--! TODO: BoundingBox needed. This should be calculated at the same time as the resultset-->
8
9<wfs:FeatureCollection xmlns:py="http://genshi.edgewall.org/"
10                  xmlns:wfs="http://www.opengis.net/wfs"
11                  xmlns:gml="http://www.opengis.net/gml"
12                  xmlns:csml="http://ndg.nerc.ac.uk/csml">     
13        <wfs:member py:for="feature in c.resultset"
14             py:content="XML(feature.toGML())"/>
15        <wfs:AdditionalObjects>
16                <wfs:member py:for="addobj in c.additionalobjects"
17                        py:content="XML(addobj)"/>
18        </wfs:AdditionalObjects>
19</wfs:FeatureCollection>
20                 
21                 
Note: See TracBrowser for help on using the repository browser.