[QGIS-trac] Re: [Quantum GIS] #2496: Error trying to make distance
matrix for "ID fields" with non ascii characters
Quantum GIS
qgis at qgis.org
Sun Mar 7 16:24:41 EST 2010
#2496: Error trying to make distance matrix for "ID fields" with non ascii
characters
-----------------------------------------------------+----------------------
Reporter: gislab | Owner: cfarmer
Type: bug | Status: new
Priority: major: does not work as expected | Milestone: Version 1.5.0
Component: Python plugins and bindings | Version: HEAD
Resolution: | Keywords:
Platform_version: | Platform: All
Must_fix: Yes | Status_info: 0
-----------------------------------------------------+----------------------
Changes (by lutra):
* summary: Error trying to make distance matrix for categories with
cyrrilics => Error trying to make distance
matrix for "ID fields" with non ascii
characters
Comment:
The same happens with non ascii chars, like "ç" or "õ". The error is the
same
{{{
An error has occured while executing Python code:
Traceback (most recent call last):
File "/usr/share/qgis/python/plugins/fTools/tools/doPointDistance.py",
line 105, in accept
self.compute(point1, point2, field1, field2, outPath, matType,
nearest, self.progressBar)
File "/usr/share/qgis/python/plugins/fTools/tools/doPointDistance.py",
line 152, in compute
self.regularMatrix(writer, provider1, provider2, index1, index2,
nearest, distArea, sindex, progressBar)
File "/usr/share/qgis/python/plugins/fTools/tools/doPointDistance.py",
line 173, in regularMatrix
writer.writerow(data)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 3-4:
ordinal not in range(128)
}}}
--
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2496#comment:4>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list