[QGIS-Developer] How to get animation_datetime()

Nyall Dawson nyall.dawson at gmail.com
Tue Jul 14 01:59:22 PDT 2020


On Tue, 14 Jul 2020 at 18:44, Andreas Neumann <a.neumann at carto.net> wrote:
>
> Hi Nyall,
>
> hm - but @animation_start_time and @animation_end_time seems not to be moving along with the time slider. That remains "static" during the animation.

ARgh - sorry, it's @map_start_time and @map_end_time. The @animation
ones refer to the overall animation start and end times.

Nyall


>
> Based on your feedback I was expecting @animation_start_time and @animation_end_time to move along with the time slider - this doesn't seem the case.
>
> Anyway - with second(@frame_duration) * @frame_number
>
> and this is also a single point in time, relative to the beginning of the animation, not a "range" slice.
>
> I get what I want (the current time representation value of the time slider). I just thought there might be something "easier".
>
> I might not get the full concept of the new temporal framework - I have also to admit, that I didn't really use the TimeManager plugin a lot - maybe with this background, things would have been clearer to me.
>
> Thanks,
>
> Andreas
>
> Am 14.07.20 um 00:39 schrieb Nyall Dawson:
>
> On Tue, 14 Jul 2020 at 07:44, Andreas Neumann <a.neumann at carto.net> wrote:
>
> animation_datetime() seems to be something from the old time manager plugin.
>
> Correct -- the new temporal framework works on the concept of a map
> having a time range, not a single time instant.
>
> The equivalent variables are:
> - @animation_start_time
> - @animation_end_time
>
> Nyall
>
>
>
> Andreas
>
> Am 13.07.20 um 23:25 schrieb Bernd Vogelgesang:
>
> Still not clear. Do you mean the timer running in the lower right?
> If so, see https://www.youtube.com/watch?v=vgDg5cRwPRw starting at 54:40
> for the formula
>
>
>
> On 13.07.20 23:14, Andreas Neumann wrote:
>
> By "current time of an animation" I mean the current time represented
> in the time slider control as a function or variable.
>
> Thanks,
>
> Andreas
>
> Am 13.07.20 um 23:08 schrieb Andreas Neumann:
>
> Hi,
>
> In an animation (QGIS 3.14) - how do I get the current time of an
> animation?
>
> In https://www.youtube.com/watch?v=8R0TQlhdc1U&feature=youtu.be at
> minute 6:26, it shows a formula involving the "animation_datetime()"
> function.
>
> But my expression editor complains, that this function is not
> available.
>
> Thanks for your hints,
>
> Andreas
>
>
> _______________________________________________
> 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
>
> _______________________________________________
> 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
>
> _______________________________________________
> 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
>
> _______________________________________________
> 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


More information about the QGIS-Developer mailing list