2012/8/13 Javier Bustamante <javier.bustamante.d...@gmail.com> > ** > > Hi, I am new to the list. > > > > I am trying to use the "Point Sampling Tool" plugin to extract some raster > values at specified sampling points. > > > > I have installed the Point Sampling Tool plugin (0.3.3) on Q-gis 1.7.4 > under Kubuntu 11.10 (linux). > > > > We I try to use the tool > > I get the following error: > > > > An error has occured while executing Python code: > > Traceback (most recent call last): > File > "/home/busta/.qgis/python/plugins/pointsamplingtool/doPointSamplingTool.py", > line 98, in updateFieldsList > self.inData.addItem(str(self.sampItems[i][0].name()) + " : " + > str(self.sampItems[i][j][0]) + " (source point)") > UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in > position 3: ordinal not in range(128) > > Python version: > 2.7.2+ (default, Oct 4 2011, 20:29:37) > [GCC 4.6.1] > > > QGIS version: > 1.7.4-Wroclaw Wroclaw, exported > > Python path: ['/usr/share/qgis/python', '/home/busta/.qgis/python', > '/home/busta/.qgis/python/plugins', '/usr/share/qgis/python/plugins', > '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', > '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', > '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', > '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PIL', > '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', > '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode', > '/usr/share/qgis/python/plugins/fTools/tools', > '/media/Iomega_HDD/spartina_modelos/Clasificacion_ahs_casi/shp'] > > > > Can someone suggest some possible solution? > > >
Hi Javier, try with the attached patch, should solve the issue! I don't know if exist a bugtracker for pointsampling plugin, if so, it's the right place to report this bug! Also, consider upgrading QGIS!! Cheers, -SL -- Salvatore Larosa linkedIn: http://linkedin.com/in/larosasalvatore twitter: @lrssvt skype: s.larosa IRC: lrssvt on freenode
pointsamplingtool_noascii.patch
Description: Binary data
_______________________________________________ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user