-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Temporal controller time frame is reset when changing step size #39994
Comments
See: https://github.com/qgis/QGIS/blob/master/src/core/qgstemporalnavigationobject.h#L132 So not a 'bug' but more like a feature request :-) ? So you would want QGIS to calculate the new frames, and then choose the nearest frame (to your old position)? |
Nice, so it's a well documented bug :-)
TimeManager behavior was to keep the map start time stable and adjust the map end time according to the new settings. |
@anitagraser I think I can tackle this. One important difference (I think) between the TimeManager (TM) and current Temporal Controller (TC), is that TimeManager's state was 'loose', that is in the time-slider, you could 'set' the slider on random positions. While in TC the position is determined by the start of current timeframe. |
Thanks @rduivenvoorde! |
I'm personally +1 to @rduivenvoorde's approach. (I think if a user is wanting to view an exact time frame and then adjust the duration, they should be using the time filter mode in the widget rather than the animation mode.) |
I'm certainly biased and happy to give this approach a try 🙂 The usual use case for me is to browse through a dataset, and at one point realizing that I'd like to see a bit longer time frame. This is much more common for me than knowing an exact time from the beginning. |
Another option we could do is have little "lock" icons next to different settings in the widget. So if "frame start time" is locked then the overall animation start would be adjusted. If the animation start time is locked, then the frame time is adjusted... |
In TimeManager in my own branch, I had 2 'modes', because that is (what I think) we are talking about:
BOTH 'modes' have their merits/use-cases. I was bitten bij TimeManager's approach when using WMS-T servers, these often require these 'fixed ticks' when you browse the data (e.g 'yearly rainfall'-data has fixed timeframes (eg. always starting at the first of januari), so you are not suppossed to ask for images of rainfall from june till june... (that is probably the reason we have this model, it started of as WMS-T implementation @Samweli ?). My gutfeeling is that the 'fixed tick'/current TC mode is more restricted but a little 'easier' to implement/handle corner cases. But as shown by Anita: there are certainly use cases (especially when you have 'free vector' data to filter (so no fixed 'buckets'). |
What you describe is exactly the intention of the split between the time filter "fixed range" mode and the "animation" mode, and I completely agree that both use cases are important. What's missing is that the fixed range mode doesn't give such as nice UI for setting the visible range. What we really need here is a "double edged" slider, where both the start and end time can be freely dragged to set the start and end of the visible time slice accordingly. This would then match the behavior seen in google earth and arcmap: The only reason this hasn't been done yet is the Qt doesn't have any native widgets for a "double end slider", and we couldn't find any nice 3rd party widgets which were suitable drop-ins... |
And this situation should already be nicely handled, because the WMS-T layers have support for picking the most appropriate available image, via this option: |
… of resetting to start) Try to remember/set last timeframe (upon timestep- or timeframe-changes). Setting the stepsize to a different size, did reset the slider to start (aka timeframe 0). Same when you changed the range (data time) extent. This commit tries to set the slider to the same position as before the step change, if possible). Else it will take the position of the timeframe in which the start of the old timeframe fits. fixes #39994
… of resetting to start) Try to remember/set last timeframe (upon timestep- or timeframe-changes). Setting the stepsize to a different size, did reset the slider to start (aka timeframe 0). Same when you changed the range (data time) extent. This commit tries to set the slider to the same position as before the step change, if possible). Else it will take the position of the timeframe in which the start of the old timeframe fits. fixes qgis#39994 (cherry picked from commit 6797118)
Ouch, that is nicely hidden in the Source tab of the layer. Honestly never seen it... Is 'Time slice mode' clear what it means to others? Using http://geoservices.knmi.nl/cgi-bin/RADNL_OPER_R___25PCPRR_L3.cgi? here: To me the word 'Range' in the 'Time slice mode' drop down is confusing, I think. It is actually the 'Time Frame' we are talking about isn't it? It is if you use only the start of current frame (&TIME=2020-11-14T00:00:00Z) or only the end (&TIME=2020-11-15T00:00:00Z), of a real 'range' beging from start to end (&TIME=2020-11-14T00:00:00Z/2020-11-15T00:00:00Z). |
Exactly! That's why I opened #36552 |
@nyalldawson this 'fixed frame mode' has never been clear to me. To me it always looked as if I wanted to only see a one time 'slice' of my data? While in the TimeManager (and the usecase you describe with the 'double slider') is that you can still 'play/animate' (after you set an arbitrary start and an end frame (and thus size of timeframe). |
… of resetting to start) Try to remember/set last timeframe (upon timestep- or timeframe-changes). Setting the stepsize to a different size, did reset the slider to start (aka timeframe 0). Same when you changed the range (data time) extent. This commit tries to set the slider to the same position as before the step change, if possible). Else it will take the position of the timeframe in which the start of the old timeframe fits. fixes #39994 (cherry picked from commit 6797118)
Hi @rduivenvoorde, @anitagraser @nyalldawson
The WMS-T settings in source tab can be used with or without the Temporal Controller, moving these settings into the Temporal tab might confuse users who just want to fetch a WMS-T resource and do nothing about the Temporal Controller or the layer's temporal properties.
Yes, in the context of using these settings with the Temporal Controller, might need to find words that fit both use cases. |
In Master, changing the step size in Temporal Controller resets the current time frame. The user therefore always loses the current temporal "position" and it's hard to get back since there is no way to jump to a specific timestamp (#39107)
The text was updated successfully, but these errors were encountered: