Changeset 5110 for cows


Ignore:
Timestamp:
17/03/09 14:19:35 (11 years ago)
Author:
domlowe
Message:

WCS supported crss now defaults to EPSG:4326. Tests updated.

Location:
cows/trunk/cows
Files:
4 edited

Legend:

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

    r5108 r5110  
    1515if len(crsstr) > 0: 
    1616        crsstr=crsstr[:-1] #strip last space 
     17if crsstr=='':  
     18   crsstr='EPSG:4326 WGS84' #default 
    1719return crsstr 
    1820  ?> 
     
    6264        </rangeSet> 
    6365        <supportedCRSs> 
    64             <requestCRSs>WGS84</requestCRSs> 
    65             <responseCRSs>WGS84</responseCRSs> 
     66            <requestCRSs>${getCRSList(cd.boundingBoxes)}</requestCRSs> 
     67            <responseCRSs>${getCRSList(cd.boundingBoxes)}</responseCRSs> 
    6668        </supportedCRSs> 
    6769        <supportedFormats> 
  • cows/trunk/cows/pylons/wcs_controller.py

    r5029 r5110  
    203203#        super(WCSController, self).GetCapabilities() 
    204204        #TODO, the bounding box may include a Z dimension in WCS. 
    205         log.debug(requestCvg) 
     205        log.debug('DescribeCoverage request for %s'%requestCvg) 
    206206        for cvgName, coverage in self.layers.items(): 
    207207            log.debug(cvgName) 
    208             if cvgName == requestCvg:                     
     208            if cvgName == requestCvg: 
     209                log.debug('found coverage %s'%cvgName) 
    209210                # Create the enhanced Dataset summary for thic coverage 
    210211                #TODO, the bounding box may include a Z dimension in WCS.                 
  • cows/trunk/cows/test/owslibdoctests/wcs_mainoperations.txt

    r4982 r5110  
    6060    ['2793-06-01T00:00:00.0Z', '2932-06-01T00:00:00.0Z'] 
    6161    >>> cvg.supportedFormats 
    62     [] 
     62    ['cf-netcdf'] 
    6363    >>> cvg.supportedCRS 
    64     [] 
     64    ['EPSG:4326', 'WGS84'] 
    6565    >>> output=wcs.getCoverage(identifier='air_temperature',time=['2992-11-16T00:00:00.0'],bbox=(-80,30,50,60), crs='WGS84', format='cf-netcdf') 
    6666    >>> f=open('test.nc', 'wb') 
  • cows/trunk/cows/test/owslibdoctests/wcs_rotated.txt

    r5001 r5110  
    5353    >>> wcs.identification.fees 
    5454    >>> cvg.boundingBoxWGS84 
    55     (342.35000000000002, -0.11, 350.93000000000001, 11.33) 
     55    (-180.0, 90.0, 180.0, 90.0) 
    5656    >>> cvg.timelimits 
    5757    ['1983-08-01T12:00:00.0Z', '1983-08-30T12:00:00.0Z'] 
    5858    >>> cvg.supportedFormats 
    59     [] 
     59    ['cf-netcdf'] 
    6060    >>> cvg.supportedCRS 
    61     [] 
     61    ['ndg:crs:rotatedpole'] 
    6262    >>> output=wcs.getCoverage(identifier='temp',time=['1983-08-01T12:00:00.0'],bbox=(344,0,347,4), crs='ndg:crs:rotatedpole', format='cf-netcdf') 
    6363    >>> f=open('test.nc', 'wb') 
Note: See TracChangeset for help on using the changeset viewer.