/[thuban]/branches/WIP-pyshapelib-bramz/Extensions/wms/layer.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Extensions/wms/layer.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2178 by joey, Thu Apr 15 08:52:47 2004 UTC revision 2181 by joey, Thu Apr 15 17:28:04 2004 UTC
# Line 101  class WMSLayer(BaseLayer): Line 101  class WMSLayer(BaseLayer):
101          self.bbox = None          self.bbox = None
102          self.latlonbbox = None          self.latlonbbox = None
103          self.error_msg = None          self.error_msg = None
104          self.layer_name = None          self.wms_layers = []
105          self.capabilities = None          self.capabilities = None
106    
107          # Change the cursor to demonstrate that we're busy but working          # Change the cursor to demonstrate that we're busy but working
# Line 116  class WMSLayer(BaseLayer): Line 116  class WMSLayer(BaseLayer):
116                                 '%s') % url                                 '%s') % url
117              return              return
118          top_layer = foo[0]          top_layer = foo[0]
119          self.layer_name = top_layer          self.wms_layers = [top_layer]
120    
121          # first projection of the top layer          # first projection of the top layer
122          foo = self.capabilities.getLayerSRS(top_layer)          foo = self.capabilities.getLayerSRS(top_layer)
# Line 292  class WMSLayer(BaseLayer): Line 292  class WMSLayer(BaseLayer):
292          format -- format, one of getFormats()          format -- format, one of getFormats()
293          """          """
294          self.wmsformat = format          self.wmsformat = format
295            self.format = self.getFormat(format)
296    
297    
298        def getVisibleLayers(self):
299            """
300            Return the list of names for all visible layers
301    
302            """
303            return self.wms_layers
304    
305    
306        def setVisibleLayers(self, layers):
307            """
308            Set the list of names for all visible layers
309    
310            """
311            self.wms_layers = layers
312    
313    
314      def GetMapImg(self, width, height, bbox):      def GetMapImg(self, width, height, bbox):
# Line 317  class WMSLayer(BaseLayer): Line 334  class WMSLayer(BaseLayer):
334    
335          wms_response = wmsclient.getMap(self.url, self.wmsformat, width, height,          wms_response = wmsclient.getMap(self.url, self.wmsformat, width, height,
336                                     epsg_id, bbox_dict,                                     epsg_id, bbox_dict,
337                                     [self.layer_name], version = self.capabilities.getVersion())                                     self.wms_layers, version = self.capabilities.getVersion())
338          ThubanEndBusyCursor()          ThubanEndBusyCursor()
339          return wms_response, self.format          return wms_response, self.format

Legend:
Removed from v.2178  
changed lines
  Added in v.2181

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26