|
|
@@ -28,6 +28,10 @@ class WCS(OWS):
|
|
|
self.version = self.capabilities.version
|
|
|
|
|
|
mapobj = self.getMapObj(mapfilename)
|
|
|
+
|
|
|
+ # mapobjects exists, do not do any new layers
|
|
|
+ if mapobj.numlayers:
|
|
|
+ return mapobj
|
|
|
|
|
|
#
|
|
|
# for each layer from the WCS Capabilities file, transform it to
|
|
|
@@ -57,7 +61,6 @@ class WCS(OWS):
|
|
|
lyrobj.setMetaData("wms_srs",self.config.get("MapServer","srs"))
|
|
|
extent = None
|
|
|
# processing
|
|
|
- import sys
|
|
|
if layer.crsOptions:
|
|
|
lyrobj.setProjection(layer.crsOptions[0].getcode())
|
|
|
extent = self.getLayerExtent(layer,layer.crsOptions[0])
|