Changeset 4300 for cows/trunk


Ignore:
Timestamp:
07/10/08 16:06:34 (11 years ago)
Author:
domlowe
Message:

wfs_featurecollection template working except for bounding box

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cows/trunk/cows/pylons/templates/wfs_featurecollection.xml

    r4298 r4300  
    11<?xml version="1.0"?> 
    22 
     3<?python  
     4from genshi import XML 
     5?> 
     6 
     7<!--! TODO: BoundingBox needed. This should be calculated at the same time as the resultset--> 
    38 
    49<wfs:FeatureCollection xmlns:py="http://genshi.edgewall.org/" 
    510                  xmlns:wfs="http://www.opengis.net/wfs" 
    6                   xmlns:xlink="http://www.w3.org/1999/xlink" 
    7                   xmlns:ows="http://www.opengis.net/ows" 
    8                   xmlns:gml="http://www.opengis.net/gml" 
    9                   xmlns:csml="http://ndg.nerc.ac.uk/csml"> 
    10 <!-- TODO: Note, csml namespace should be declared on the fly-->                 
    11 <!-- TODO: Resultset needs iterating over and converting to GML-->                       
    12         <gml:FeatureMember py:content="c.resultset"/> 
     11                  xmlns:gml="http://www.opengis.net/gml">        
     12        <gml:FeatureMember py:for="feature in c.resultset" 
     13             py:content="XML(feature.toGML())"/> 
    1314</wfs:FeatureCollection> 
    1415                   
Note: See TracChangeset for help on using the changeset viewer.