[OSGeo Africa] Python script

Jacobus Strydom jcstay123 at gmail.com
Mon Aug 1 04:01:45 PDT 2016


Hi Martin,

Do you need to do it in QGIS or ArcGIS?

*If it's in ArcGIS*, have a look at this link, I think this might help.
http://gis.stackexchange.com/questions/169770/need-to-find-max-value-among-fields-and-print-field-name

*For QGIS* I'm not 100% sure, but it will be great to see how it's done in
QGIS. So if anyone can help with a script in QGIS that will be great.

regards,



On Sun, Jul 31, 2016 at 11:10 PM, <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
> table.
> 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.‎
>
> 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/94321de7/attachment.html>


More information about the Africa mailing list