Changeset 5916 for cows


Ignore:
Timestamp:
30/10/09 15:24:44 (10 years ago)
Author:
domlowe
Message:

Modifying wcs and wfs layermappers to provide dataset name

Location:
cows/trunk/cows/service/imps/csmlbackend
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cows/trunk/cows/service/imps/csmlbackend/wcs_csmllayer.py

    r5820 r5916  
    105105          
    106106        ds = self.connector.getCsmlDoc(fileoruri) 
     107        try: 
     108            self.datasetName=ds.name.CONTENT 
     109        except AttributeError: 
     110            self.datasetName = 'CSML WCS Service' 
    107111        layermap={} 
    108112        self._crscat=csml.csmllibs.csmlcrs.CRSCatalogue() 
  • cows/trunk/cows/service/imps/csmlbackend/wfs_csmllayer.py

    r5532 r5916  
    5454          
    5555        ds = self.connector.getCsmlDoc(fileoruri) 
     56        try: 
     57            self.datasetName=ds.name.CONTENT 
     58        except AttributeError: 
     59            self.datasetName = 'CSML WFS Service' 
    5660         
    5761        #The WFS differs from WMS & WCS in that the contents layer is a list of  
Note: See TracChangeset for help on using the changeset viewer.