[Qgis-user] Processing: why tools.vector.values is meant to work only for numeric fields?

G. Allegri giohappy at gmail.com
Thu Oct 31 03:11:45 PDT 2013


I've ntoiced that the utility method "values(layer,*fields)" returns only
numeric values, while in case a string is found it returns None. It happens
because a float cast is used [1]
Is it a requriements for other parts of the Processing pframework? In case
it should be documented, because the docs [2] don't tell about this
restriction.

giovanni

[1]
https://github.com/qgis/QGIS/blob/master/python/plugins/processing/tools/vector.py#L137
[2]
http://www.qgis.org/en/docs/user_manual/processing/console.html#additional-functions-for-handling-data

-- 
Giovanni Allegri
http://about.me/giovanniallegri
blog: http://blog.spaziogis.it
GEO+ geomatica in Italia http://bit.ly/GEOplus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20131031/debf03a1/attachment.html>


More information about the Qgis-user mailing list