Changeset 4805


Ignore:
Timestamp:
14/01/09 12:29:02 (11 years ago)
Author:
domlowe
Message:

allow wcs to take time range or single time

Location:
cows/trunk/cows/pylons
Files:
2 edited

Legend:

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

    r4751 r4805  
    6161  <Service py:with="sm=c.capabilities; si=c.capabilities.serviceIdentification">   
    6262    <description py:if="len(si.abstracts)>0" py:content="si.abstracts[0]"/> 
    63         <name>OGC:WMS</name> 
     63        <name>OGC:WCS</name> 
    6464    <label py:content="si.titles[0]"/> 
    6565    <keywords py:if="len(si.keywords) is not 0"> 
  • cows/trunk/cows/pylons/wcs_controller.py

    r4774 r4805  
    167167            raise InvalidParameterValue('Layer %s does not support SRS %s' % (layerName, srs)) 
    168168        times= self.getOwsParam('time') 
     169         
     170        #process times parameter so it is either a single string (one time) or a tuple (range):         
     171        if len(times.split(',')) >1: 
     172            times=tuple(times.split(',')) 
    169173         
    170174        kwargs={} 
Note: See TracChangeset for help on using the changeset viewer.