[Qgis-user] TimeManager question

Neumann, Andreas a.neumann at carto.net
Thu Nov 19 00:05:46 PST 2015


 

> What about : 
> 
> Coalesce (animation_datetime(), now()) 
> 
> Does that work?

So I tested COALESCE(animation_datetime(), now()) - and it doesn't work
for two reasons: 

- for layers that are not under time manager control,
animation_datetime() doesn't return NULL, but returns as invalid
expression ;-( 

- Similar, if a layer is under time manager control - if one stops time
manager - animation_datetime() is not set to NULL, but still holds some
time value 

--------------- 

So to fix this - we would have to: 

- always return a valid expression for animation_datetime() - even for
layers not under TimeManager control. It should return NULL in this case


- return NULL for animation_datetime() when TimeManager is not active -
also for layers under TimeManager control. 

Andreas 
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20151119/a60b2520/attachment.html>


More information about the Qgis-user mailing list