[QGIS-Developer] Custom python expression question

Neumann, Andreas a.neumann at carto.net
Fri May 5 01:45:37 PDT 2017


If one creates a custom python expression, one gets a reference to the
"feature" and the "parent". 

Question: what is "parent" referring to? What object type is it? 

Is it somehow possible in the Python script to get a reference to the
layer the feature is part of? Would there be some example Python code
around that shows how one can get access to the layer the feature
belongs to? 

Thank you for any hints, 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170505/88a94b1b/attachment.html>

More information about the QGIS-Developer mailing list