Changeset 2962


Ignore:
Timestamp:
22/10/07 11:56:01 (12 years ago)
Author:
domlowe
Message:

some fixes to wcs 1.0.0 capabilities

Location:
TI05-delivery/ows_framework/trunk/ows_server/ows_server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/csml_wcs1_0_0.py

    r2951 r2962  
    172172    @parameter('Service', possibleValues=['WCS'], required=True) 
    173173    @parameter('Version', possibleValues=['1.0.0']) 
    174     @parameter('Section', possibleValues=['Service', 'Capability', 'ContentMetadata']) 
     174    @parameter('Section', possibleValues=['/','/Service', '/Capability', '/ContentMetadata']) 
    175175    def GetCapabilities(self, uri, service=None, version=None, section=None): 
    176176        """ 
     
    210210    @parameter('Version', possibleValues=['1.0.0']) 
    211211    @parameter('Coverage', required=True) 
    212     @parameter('Format', possibleValues=['text/xml'], required=True)  #IS THIS MANDATORY 
     212    @parameter('Format', possibleValues=['text/xml'])  #IS THIS MANDATORY 
    213213    def DescribeCoverage(self, uri, version, service, coverage, format='text/xml'): 
    214214        """ 
     
    244244    @parameter('Version', possibleValues=['1.0.0'], required=True) 
    245245    @parameter('Coverage', required=True) 
     246    @parameter('CRS', required=True) 
     247    @parameter('Response_CRS') 
    246248    @parameter('BBox', required=True, validator=V.bbox_2or3d) 
    247249    @parameter('Time',required=True, validator=V.iso8601_time) 
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/wcs1_0_0_Capabilities.kid

    r2950 r2962  
    6464    <keywords> 
    6565        <keyword>NONE</keyword> 
    66     </keywords> 
    67     <SupportedCRS py:for="crs in ds.supportedCRSs"  
    68                 py:content="crs"/>     
    69     <SupportedFormat py:for="format in ds.formats"  
    70                 py:content="format"/>     
     66    </keywords>   
    7167  </CoverageOfferingBrief> 
    7268 
     
    7975  servSection, capSection, cmSection=True, True, True 
    8076 
    81   if sm.sectionrequested == 'Service': 
     77  if sm.sectionrequested == '/Service': 
    8278      capSection=False 
    8379      cmSection=False 
    84   elif sm.sectionrequested == 'Capability': 
     80  elif sm.sectionrequested == '/Capability': 
    8581      servSection=False 
    8682      cmSection=False 
    87   elif sm.sectionrequested == 'ContentMetadata': 
     83  elif sm.sectionrequested == '/ContentMetadata': 
    8884      servSection=False 
    8985      capSection=False 
Note: See TracChangeset for help on using the changeset viewer.