On 19/06/2014 11:56 pm, "Andreas Neumann" <a.neum...@carto.net> wrote: > > Hi, > > Question: is it already possible to get access to any attribute in the > current atlas feature record? >
Hi Andreas, I've been working on this. I nearly had it ready for 2.4, but in the end I wasn't comfortable pushing it late in the development cycle. What I've done is: - Add an "$atlasfeature" variable, which returns the current atlas feature - Add a "$currentfeature" variable, which returns the current feature which is being evaluated (unfortunately $feature is already used for the current atlas feature NUMBER, which is an issue for a separate email!) - Add an "attribute( feature, column )" function, which returns the value stored in the specified column for a given feature This allows you to do an expression like: "area_code" = attribute($atlasfeature, 'area_code') Or, you can do neat things like label a column using an expression to choose the column name!.. attribute( $currentfeature, "label_column" ) Hopefully I can push this soon after master is unfrozen. Nyall _______________________________________________ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer