[Qgis-user] TimeManager question

Nyall Dawson nyall.dawson at gmail.com
Wed Nov 18 10:42:50 PST 2015


On 19 Nov 2015 1:50 AM, "Neumann, Andreas" <a.neumann at carto.net> wrote:
>
> Hi,
>
> I have a project where I display events:
>
> * past events that are less than a week ago are displayed in light purple
>
> * current events are displayed in red
>
> * upcoming events within the next two weeks are displayed in orange
>
> I use now() within my rules.
>
> ----------------
>
> Now my time-manger question:
>
> I thought I could simulate a view of the "past" or "future" with the
TimeManager plugin. But this doesn't work, because now() is still now() is
not replaced by animation_datetime() - which would serve my purpose.
>
> Is there a way to find out when time manager is active and when not - and
then I could build two different rules:
>
> - one normal rule with now() - only used when time manager is not active
>
> - one rule with animation_datetime() - only used when time manager is
active

What about :

  Coalesce (animation_datetime(), now())

Does that work?

Nyall

>
>
>
> Thanks,
>
> Andreas
>
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20151119/85624cc4/attachment.html>


More information about the Qgis-user mailing list