Ignore:
Timestamp:
04/04/08 12:21:52 (12 years ago)
Author:
domlowe
Message:

Fix to remove any Zs from time request, and fix to add CRS:84 and WGS84 as equivalent CRSs to EPSG:4326

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/branches/ows_framework-refactor/ows_common/ows_common/service/imps/wms_csmllayer.py

    r3749 r3760  
    5151        crs=feature.getNativeCRS() 
    5252        crss=[self._crscat.getCRS(crs).twoD] 
     53        if 'EPSG:4326' in crss: 
     54            crss.append('CRS:84') 
     55            crss.append('WGS84') 
    5356        return title, abstract, dimensions, units, crss 
    5457     
     
    142145            if dimval != 'time': 
    143146                dimValues[dimval]=float(dimValues[dimval]) 
     147            else: 
     148                #remove any trailing Zs from time string 
     149                if dimValues[dimval] [-1:] in ['Z', 'z']: 
     150                    dimValues[dimval]=dimValues[dimval][:-1] 
    144151        if type(self._feature) == csml.parser.GridSeriesFeature: 
    145152            randomname= csml.csmllibs.csmlextra.getRandomID() + '.nc' 
Note: See TracChangeset for help on using the changeset viewer.