Changeset 2690
- Timestamp:
- 03/07/07 13:23:05 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/csml_wcs.py
r2689 r2690 161 161 sel['time']=timesequence 162 162 163 lon=feature.getLongitudeAxis() 164 lat=feature.getLatitudeAxis() 165 t=feature.getTimeAxis() 166 167 if None in [lon, lat, time]: 168 #TODO need to return a suitable wcs error. 169 pass 170 171 #create selection dictionary: 172 sel={} 173 sel[lat]=(boundingbox[1], boundingbox[3]) 174 sel[lon]=(boundingbox[0], boundingbox[2]) 175 sel[t]=timesequence 176 177 #z is the 4th axis (eg height or pressure). 178 #NOTE, need to decide whether bounding box is of form: x1,y1,z1,x2,y2,z2 or x1,y1,x2,y2,z1,z2 179 #currently the latter is implemented. 180 181 if len(boundingbox) == 6: 182 for ax in feature.getAxisLabels(): 183 if ax not in [lat, lon, t]: 184 #must be Z 185 z=str(ax) 186 sel[z]=(boundingbox[4], boundingbox[5]) 187 188 189 axisNames=feature.getAxisLabels() 190 191 sel['time']=timesequence 163 192 # Extract via CSML.subsetToGridSeries() 164 193 if store:
Note: See TracChangeset
for help on using the changeset viewer.