[GRASS-dev] Re: [GRASS GIS] #1488: v.in.dxf wrapper not working
GRASS GIS
trac at osgeo.org
Sun Nov 13 17:37:36 EST 2011
#1488: v.in.dxf wrapper not working
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: v.in.dxf | Platform: Unspecified
Cpu: Unspecified |
-------------------------+--------------------------------------------------
Comment(by cmbarton):
Well, changing GetValidLayerName sort of works in that it does display all
the dxf layers now. But it throws another layer in yet another place
{{{
Traceback (most recent call last):
File "/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/etc
/python/wx/lib/filebrowsebutton.py", line 140, in OnChanged
self.changeCallback(evt)
File "/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/etc
/gui/wxpython/gui_modules/gdialogs.py", line 1965, in
OnSetDsn
self.list.LoadData(data)
File "/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/etc
/gui/wxpython/gui_modules/gdialogs.py", line 2014, in
LoadData
self.SetStringItem(index, i, "%s" % str(item[i]))
UnicodeEncodeError
:
'ascii' codec can't encode character u'\ufffd' in position
0: ordinal not in range(128)
}}}
I fear that this could go on and on, and then pop up somewhere else. Is
there a cost that actually matters to either using 'ignore' in
DecodeString and EncodeString or using .replace(u'\ufffd',u'?') in both
cases?
Michael
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1488#comment:14>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list