/[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 2159 by joey, Sun Apr 11 17:39:30 2004 UTC revision 2172 by joey, Tue Apr 13 17:38:26 2004 UTC
# 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:
# Line 301  def wms_dialog(context): Line 301  def wms_dialog(context):
301    
302      if dialog.ShowModal() == wxID_OK:      if dialog.ShowModal() == wxID_OK:
303          url = dialog.url          url = dialog.url
304            if len(url) == 0:
305                url = None
306      else:      else:
307          url = None          url = None
308      dialog.Destroy()      dialog.Destroy()

Legend:
Removed from v.2159  
changed lines
  Added in v.2172

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26