[OSGeo Africa] Python script
addloe at gmail.com
Sun Jul 31 23:07:40 PDT 2016
On 31 Jul 2016 23:10, <martinmchari at gmail.com> wrote:
> 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
> 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...
More information about the Africa