[prev in list] [next in list] [prev in thread] [next in thread] 

List:       qgis-developer
Subject:    Re: [Qgis-developer] join attributes error
From:       Carson Farmer <carson.farmer () gmail ! com>
Date:       2009-08-25 15:01:11
Message-ID: 94b3c8440908250801y78797a2cy8671de73a4fc76d () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@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@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

[Attachment #5 (text/html)]

This looks like I missed an error check in the join attributes module.<br>However, \
it&#39;s a bit odd that it&#39;s returning a -1. Perhaps you could send me the \
original data Paolo?<br><br>Cheers,<br><br>Carson<br><br><div class="gmail_quote"> On \
Tue, Aug 25, 2009 at 3:47 PM, Paolo Cavallini <span dir="ltr">&lt;<a \
href="mailto:cavallini@faunalia.it">cavallini@faunalia.it</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, \
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hi all.<br>
While joining a df table to a point layer, I get the following error:<br>
<br>
Errore durante l&#39;esecuzione di codice Python:<br>
<br>
Traceback (most recent call last):<br>
  File &quot;/usr/share/qgis/python/plugins/fTools/tools/doJoinAttributes.py&quot;, \
line<br> 109, in accept<br>
    self.compute(inName, inField, joinName, joinField, outPath, keep, useTable,<br>
self.progressBar)<br>
  File &quot;/usr/share/qgis/python/plugins/fTools/tools/doJoinAttributes.py&quot;, \
line<br> 205, in compute<br>
    if atMap1[index1].toString().trimmed() == i[index2].toString().trimmed():<br>
KeyError: -1<br>
<br>
Original data are available if this helps to replicate the error.<br>
Thanks for any hint.<br>
All the best.<br>
<font color="#888888">--<br>
Paolo Cavallini: <a href="http://www.faunalia.it/pc" \
target="_blank">http://www.faunalia.it/pc</a><br> \
_______________________________________________<br> Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
 <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" \
target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br> \
</font></blockquote></div><br><br clear="all"><br>-- <br>Carson Farmer<br>National \
Centre for Geocomputation<br>John Hume Building,<br>National University of Ireland, \
Maynooth,<br>Maynooth,<br>Co. Kildare,<br>Ireland.<br> <a \
href="http://www.carsonfarmer.com">www.carsonfarmer.com</a><br>



_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic