[GRASS-dev] [GRASS GIS] #2010: r.in.wms2 fails to install on 6.x

Hamish hamish_b at yahoo.com
Wed Jul 3 04:13:54 PDT 2013


I wrote:

> Also, I'm seeing a unicode error vs. layer Title string in the 6.4.3svn's
> r.in.wms1's wxGUI wrapper. It's not to do with r.in.wms2.py, so I'll 
> post that to the -dev ML.

details on..
> the WMS/WFS I'm using to test with:
>   http://wiki.openstreetmap.org/wiki/New_Zealand/Imagery

In 6.4.3svn wxGUI File -> import raster -> r.in.wms (wrapper) I'm getting the following error when the parsed list of WMS layer Titles contains a non-ascii char, in this case on of them contains a long -- hyphen.

Any ideas on a quick fix? It didn't like ", unicode = True" where I put it.
All's well in trunk.


Traceback (most recent call last):
  File "/home/hamish/src/grass/svn/grass65/dist.x86_64
-unknown-linux-gnu/etc/wxpython/modules/ogc_services.py",
line 216, in OnConnect

self.list.LoadData(layers)
  File "/home/hamish/src/grass/svn/grass65/dist.x86_64
-unknown-linux-gnu/etc/wxpython/modules/ogc_services.py",
line 273, in LoadData

self.SetItemText(lchild, title, 1)
  File "/usr/lib64/python2.6/dist-
packages/wx-2.8-gtk2-unicode/wx/gizmos.py", line 647, in
SetItemText

return _gizmos.TreeListCtrl_SetItemText(*args, **kwargs)
UnicodeDecodeError
:
'ascii' codec can't decode byte 0xe2 in position 36: ordinal
not in range(128)


thanks,
Hamish



More information about the grass-dev mailing list