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

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

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

revision 2158 by joey, Sun Apr 11 17:38:10 2004 UTC revision 2171 by joey, Tue Apr 13 17:31:01 2004 UTC
# Line 131  class WMSLayer(BaseLayer): Line 131  class WMSLayer(BaseLayer):
131              self.error_msg = _('EPSG projection code %s not found!\n'\              self.error_msg = _('EPSG projection code %s not found!\n'\
132                                 'Setting projection to "None".\n'\                                 'Setting projection to "None".\n'\
133                                 'Please set an appropriate projection yourself.'\                                 'Please set an appropriate projection yourself.'\
134                                 % epsg_id)                                 % top_srs)
135    
136          # pre-determine the used format          # pre-determine the used format
137          self.wmsformat, self.format = \          self.wmsformat, self.format = \
# Line 201  class WMSLayer(BaseLayer): Line 201  class WMSLayer(BaseLayer):
201          image/wbmp or WBMP which refers to WAP bitmap format and is          image/wbmp or WBMP which refers to WAP bitmap format and is
202          not supported by the included render engine.          not supported by the included render engine.
203          """          """
204          prio = ['png', 'jpeg', 'jpg', 'tif', 'gif', 'bmp']          prio = ['jpeg', 'bmp']
205          for p in prio:          for p in prio:
206              for f in formats:              for f in formats:
207                  if f.lower().find(p) > -1:                  if f.lower().find(p) > -1:

Legend:
Removed from v.2158  
changed lines
  Added in v.2171

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26