[Portugal] MMQGIS - QGIS 1.8 vs QGIS2.0

Pedro pedro.ferro gmail.com
Terça-Feira, 1 de Outubro de 2013 - 08:54:23 PDT


Olá de novo...

Estou a tentar adicionar o conteúdo de um ficheiro csv (está em UTF-8) a um
ficheiro shape.

Para tal estou a utilizar o MMQGIS| Atributes join from CSV file.

No QGIS 1.8 acrescenta as colunas do ficheiro csv ao ficheiro shape, como o
esperado.
No QGIS 2.0 tenho este traceback.

/Traceback (most recent call last):
  File
"C:\Users\pedro.ferro/.qgis2/python/plugins\mmqgis\mmqgis_dialogs.py", line
273, in run
    joinattribute, outfilename, notfoundname, 1)
  File
"C:\Users\pedro.ferro/.qgis2/python/plugins\mmqgis\mmqgis_library.py", line
562, in mmqgis_attribute_join
    fieldname = unicode(header[index], 'utf-8').strip()[0:9]
UnicodeDecodeError: 'utf8' codec can't decode byte 0xba in position 16:
invalid start byte

Versão do Python:
2.7.4 (default, Apr  6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]


Versão do QGIS:
2.0.1-Dufour Dufour, 34139bc

Caminho para o Python: ['D:/OSGeo4W/apps/qgis/./python/plugins\\processing',
'C:\\Users\\pedro.ferro\\.qgis2\\python\\plugins\\GeoCoding',
'D:/OSGeo4W/apps/qgis/./python', 'C:\\Users\\pedro.ferro/.qgis2/python',
'C:\\Users\\pedro.ferro/.qgis2/python/plugins',
'D:/OSGeo4W/apps/qgis/./python/plugins', 'D:\\OSGeo4W\\bin\\python27.zip',
'D:\\OSGeo4W\\apps\\Python27\\DLLs', 'D:\\OSGeo4W\\apps\\Python27\\lib',
'D:\\OSGeo4W\\apps\\Python27\\lib\\plat-win',
'D:\\OSGeo4W\\apps\\Python27\\lib\\lib-tk', 'D:\\OSGeo4W\\bin',
'D:\\OSGeo4W\\apps\\Python27',
'D:\\OSGeo4W\\apps\\Python27\\lib\\site-packages',
'D:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\PIL',
'D:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\win32',
'D:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\win32\\lib',
'D:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\Pythonwin',
'D:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode',
'C:\\Users\\pedro.ferro\\.qgis2\\python\\plugins\\DigitizingTools\\tools',
'C:\\Users\\pedro.ferro\\.qgis2\\python\\plugins\\mmqgis/forms',
'~/.qgis/python', '.',
'D:\\OSGeo4W\\apps\\qgis\\python\\plugins\\fTools\\tools',
'C:\\Users\\pedro.ferro\\.qgis2\\python\\plugins\\mmqgis/forms']/



Estou com o win7, 64 bits e o QGIS carregado a partir do OSGeo4W

Se alguém tiver disponíbilidade envio os 2 ficheiros que estou a usar
teste_lousa.csv
<http://osgeo-org.1560.x6.nabble.com/file/n5081244/teste_lousa.csv>  
Lousa_freg_2012.rar
<http://osgeo-org.1560.x6.nabble.com/file/n5081244/Lousa_freg_2012.rar>  



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/MMQGIS-QGIS-1-8-vs-QGIS2-0-tp5081244.html
Sent from the OSGeo Portuguese Local Chapter mailing list archive at Nabble.com.


More information about the Portugal mailing list