Ignore:
Timestamp:
21/11/08 14:22:57 (13 years ago)
Author:
domlowe
Message:

Fixes to enable Point and GridSeries? subsetting in WFS.

File:
1 edited

Legend:

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

    r4417 r4481  
    33<?python  
    44from genshi import XML 
     5         
     6def wrapXML(content): 
     7        #if the string content looks like it contains XML element nodes, then wrap it using the genshi XML function 
     8        #else just return the string 
     9        if content[:1]=='<': 
     10            return XML(content) 
     11        else: 
     12            return content 
     13 
     14         
    515?> 
    616 
     
    1323                  numberReturned="${len(c.resultset)}">  
    1424        <wfs:member py:for="feature in c.resultset" 
    15              py:content="XML(feature)"/> 
     25             py:content="wrapXML(feature)"/> 
    1626</wfs:ValueCollection> 
    1727                   
Note: See TracChangeset for help on using the changeset viewer.