<div dir="ltr">Thanks Victor,<div>this utils methods are useful indeed. Everyone one of us rewrites them more or less in each plugin he writes :)</div><div><br></div><div>all the best,</div><div>giovanni</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2013/10/31 Victor Olaya <span dir="ltr"><<a href="mailto:volayaf@gmail.com" target="_blank">volayaf@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks for the suggestion, Giovanni<br>
<br>
Not sure now about that, i should change the Processing modules that<br>
use that function, but I guess it can probably be changed.<br>
<br>
My plans (once i have a bit more of spare time) are to document all<br>
those utilities in detail, add new ones and move them to core (like<br>
the current qgis.utils module), so they can be used by other plugins<br>
without refering to Processing. Also, I would like to move the<br>
documentation from the processing manual to the cookbook, having a<br>
chapter dedicated to all those common methods that can be useful for<br>
plugin developers.<br>
<br>
As I said, I do not have much time now, but I hope to have some more<br>
spare time soon<br>
<br>
Thanks!<br>
<br>
2013/10/31 G. Allegri <<a href="mailto:giohappy@gmail.com">giohappy@gmail.com</a>>:<br>
> I've ntoiced that the utility method "values(layer,*fields)" returns only<br>
> numeric values, while in case a string is found it returns None. It happens<br>
> because a float cast is used [1]<br>
> Is it a requriements for other parts of the Processing pframework? In case<br>
> it should be documented, because the docs [2] don't tell about this<br>
> restriction.<br>
><br>
> giovanni<br>
><br>
> [1]<br>
> <a href="https://github.com/qgis/QGIS/blob/master/python/plugins/processing/tools/vector.py#L137" target="_blank">https://github.com/qgis/QGIS/blob/master/python/plugins/processing/tools/vector.py#L137</a><br>
> [2]<br>
> <a href="http://www.qgis.org/en/docs/user_manual/processing/console.html#additional-functions-for-handling-data" target="_blank">http://www.qgis.org/en/docs/user_manual/processing/console.html#additional-functions-for-handling-data</a><br>

<span class="HOEnZb"><font color="#888888">><br>
> --<br>
> Giovanni Allegri<br>
> <a href="http://about.me/giovanniallegri" target="_blank">http://about.me/giovanniallegri</a><br>
> blog: <a href="http://blog.spaziogis.it" target="_blank">http://blog.spaziogis.it</a><br>
> GEO+ geomatica in Italia <a href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a><br>
><br>
> _______________________________________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Giovanni Allegri<br><a href="http://about.me/giovanniallegri" target="_blank">http://about.me/giovanniallegri</a><br>blog: <a href="http://blog.spaziogis.it" target="_blank">http://blog.spaziogis.it</a><br>
GEO+ geomatica in Italia <a href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a>
</div>