|
|
@@ -58,6 +58,9 @@ class WCS(OWS):
|
|
|
if layer.crsOptions:
|
|
|
lyrobj.setProjection(layer.crsOptions[0])
|
|
|
extent = self.getLayerExtent(layer,layer.crsOptions[0])
|
|
|
+ elif layer.supportedCRS:
|
|
|
+ lyrobj.setProjection(layer.supportedCRS[0])
|
|
|
+ extent = self.getLayerExtent(layer,layer.supportedCRS[0])
|
|
|
else:
|
|
|
sr = osr.SpatialReference()
|
|
|
sr.ImportFromWkt(ds.GetProjection())
|
|
|
@@ -73,7 +76,8 @@ class WCS(OWS):
|
|
|
lyrobj.type = mapscript.MS_LAYER_RASTER
|
|
|
lyrobj.dump = mapscript.MS_TRUE
|
|
|
lyrobj.template = "foo"
|
|
|
- self.getTime(ds,lyrobj)
|
|
|
+ if ds:
|
|
|
+ self.getTime(ds,lyrobj)
|
|
|
cls = mapscript.classObj(lyrobj)
|
|
|
mapscript.styleObj(cls)
|
|
|
except Exception,e:
|