[Qgis-developer] join attributes error

Carson Farmer carson.farmer at gmail.com
Tue Aug 25 11:01:11 EDT 2009


This looks like I missed an error check in the join attributes module.
However, it's a bit odd that it's returning a -1. Perhaps you could send me
the original data Paolo?

Cheers,

Carson

On Tue, Aug 25, 2009 at 3:47 PM, Paolo Cavallini <cavallini at faunalia.it>wrote:

> Hi all.
> While joining a df table to a point layer, I get the following error:
>
> Errore durante l'esecuzione di codice Python:
>
> Traceback (most recent call last):
>  File "/usr/share/qgis/python/plugins/fTools/tools/doJoinAttributes.py",
> line
> 109, in accept
>    self.compute(inName, inField, joinName, joinField, outPath, keep,
> useTable,
> self.progressBar)
>  File "/usr/share/qgis/python/plugins/fTools/tools/doJoinAttributes.py",
> line
> 205, in compute
>    if atMap1[index1].toString().trimmed() ==
> i[index2].toString().trimmed():
> KeyError: -1
>
> Original data are available if this helps to replicate the error.
> Thanks for any hint.
> All the best.
> --
> Paolo Cavallini: http://www.faunalia.it/pc
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>



-- 
Carson Farmer
National Centre for Geocomputation
John Hume Building,
National University of Ireland, Maynooth,
Maynooth,
Co. Kildare,
Ireland.
www.carsonfarmer.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20090825/a7b6b205/attachment.html


More information about the Qgis-developer mailing list