[Qgis-developer] Getting access to atlas record
Nathan Woodrow
madmanwoo at gmail.com
Thu Jun 19 21:34:44 PDT 2014
Hey Nyall,
I would like to revisit this with you at some stage and maybe explore the
expression context stuff. Having one global variable for all this isn't
going to scale if we ever allow bulk atlas export.
- Nathan
On Fri, Jun 20, 2014 at 1:34 PM, Nyall Dawson <nyall.dawson at gmail.com>
wrote:
> On 19/06/2014 11:56 pm, "Andreas Neumann" <a.neumann at 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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140620/37d46f41/attachment.html>
More information about the Qgis-developer
mailing list