[Qgis-user] Point sampling tool

Salvatore Larosa lrssvtml at gmail.com
Mon Aug 13 01:30:47 PDT 2012


2012/8/13 Javier Bustamante <javier.bustamante.diaz at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20120813/acdc695d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pointsamplingtool_noascii.patch
Type: application/octet-stream
Size: 1634 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20120813/acdc695d/attachment.obj>


More information about the Qgis-user mailing list