[QGIS-trac] [Quantum GIS] #2496: Error trying to make distance
matrix for categories with cyrrilics
Quantum GIS
qgis at qgis.org
Sat Mar 6 19:17:51 EST 2010
#2496: Error trying to make distance matrix for categories with cyrrilics
------------------------------------------------+---------------------------
Reporter: gislab | Owner: nobody
Type: bug | Status: new
Priority: major: does not work as expected | Milestone: Version 1.5.0
Component: Vectors | Version: HEAD
Keywords: | Platform_version:
Platform: Windows | Must_fix: No
Status_info: 0 |
------------------------------------------------+---------------------------
1. Make point layer from admin.shp with Mean Coordinates tool
2. Using created point layer and poi-osm, try to use Distance Matrix tool
using CATEGORY as a target field.
I'm getting this error, probably because CATEGORY contains values in
cyrrilics.
See shape-files attached.
{{{
An error has occured while executing Python code:
Traceback (most recent call last):
File "c:\OSGeo4w\apps\qgis-
dev\python\plugins\fTools\tools\doPointDistance.py", line 105, in accept
self.compute(point1, point2, field1, field2, outPath, matType,
nearest, self.progressBar)
File "c:\OSGeo4w\apps\qgis-
dev\python\plugins\fTools\tools\doPointDistance.py", line 150, in compute
self.linearMatrix(writer, provider1, provider2, index1, index2,
nearest, distArea, matType, sindex, progressBar)
File "c:\OSGeo4w\apps\qgis-
dev\python\plugins\fTools\tools\doPointDistance.py", line 204, in
linearMatrix
if matType == "Linear": writer.writerow([unicode(inID),
unicode(outID), float(dist)])
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3:
ordinal not in range(128)
}}}
--
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2496>
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