[OSGeo Africa] Python script

Admire Nyakudya addloe at gmail.com
Sun Jul 31 23:07:40 PDT 2016

Hi Martin

On 31 Jul 2016 23:10, <martinmchari at gmail.com> wrote:
> Hi
> Am looking for a Python script for adding a new scores field to an
attribute table and assigning scores to rows in fields in an attribute

What have you tried?. If you need help on the list we expect you to have
done some ground work and highlight areas where people could improve your
code so that it could be efficient.

> For example in a table with fields A, B, C, D. If maximum number in a row
is in field B then assign score of 2. If it is in  field A score is 1, if
field C score assign score of 3 in scores field.‎

I suggest you look at some pyqgis documentation.

Also look at http://gis.stackexchange.com for similar questions and adapt
the answer accordingly.

> Kind regards
> Martin ‎
> _______________________________________________
> Africa mailing list
> Africa at lists.osgeo.org
> You can UNSUBSCRIBE at http://lists.osgeo.org/mailman/listinfo/africa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/africa/attachments/20160801/eb679d26/attachment.html>

More information about the Africa mailing list