[QGIS-Developer] How to retrieve all "virtual fields" of a layer?
Etienne Trimaille
etienne.trimaille at gmail.com
Wed May 31 18:23:54 PDT 2017
Hi,
Both layer.fields() or layer.pendingFields() work for me. I got my virtual
field.
2017-06-01 3:34 GMT+08:00 Stefan Keller <sfkeller at gmail.com>:
> Hi,
>
> In a Python plugin I want to retrieve information about all
> attributes/fields of a layer
> In the cookbook [1] it's described how to retrieve thems
> for field in layer.pendingFields():
> print field.name(), field.typeName()
>
> => But how do I get all "virtual fields" programmatically?
>
> :Stefan
>
> [1] http://docs.qgis.org/testing/en/docs/pyqgis_developer_
> cookbook/vector.html#retrieving-information-about-attributes
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170601/1792963a/attachment.html>
More information about the QGIS-Developer
mailing list