[QGIS-trac] [Quantum GIS] #2566: Split vector layer doesn't work
with the fields containing Cyrillics
Quantum GIS
qgis at qgis.org
Sat Mar 20 08:23:37 EDT 2010
#2566: Split vector layer doesn't work with the fields containing Cyrillics
------------------------------------------------+---------------------------
Reporter: dr | Owner: borysiasty
Type: bug | Status: new
Priority: major: does not work as expected | Milestone: Version 1.5.0
Component: Python plugins and bindings | Version: HEAD
Keywords: | Platform_version:
Platform: All | Must_fix: No
Status_info: 0 |
------------------------------------------------+---------------------------
Subj. Example of layer in attachment. Choose 'NAME' field and get an
error:
{{{
An error has occured while executing Python code:
Traceback (most recent call last):
File "C:\OSGeo4W\apps\qgis-
dev\python\plugins\fTools\tools\doVectorSplit.py", line 76, in accept
self.split(inLayer, unicode(outPath), unicode(inField),
self.progressBar)
File "C:\OSGeo4W\apps\qgis-
dev\python\plugins\fTools\tools\doVectorSplit.py", line 165, in split
writer = QgsVectorFileWriter(baseName + "_" +
unicode(i.toString().trimmed()) + ".shp", self.encoding, fieldList,
vlayer.dataProvider().geometryType(), sRs)
TypeError: unsupported operand type(s) for +: 'QString' and 'unicode'
Python version:
2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)]
}}}
--
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2566>
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