[Qgis-developer] changeAttributeValue() takes long

Raymond Nijssen r.nijssen at terglobo.nl
Mon Feb 14 05:27:29 EST 2011


Hi List,

My python plugin changes attribute values in a table using this line:

lyr.changeAttributeValue(feat.id(),fieldNum,result)

It appears to take approximately 250 ms to run single this line of code. 
That makes my plugin really slow in case I want to change a lot of 
values, which is what I want.

Does anyone know a faster way of doing this?

Thanks,
Raymond


More information about the Qgis-developer mailing list