-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[raster][temporal] Add a brand new temporal mode: pixel value as temporal datetime #57035
Conversation
b32b70a
to
f9d8e84
Compare
2bc0adc
to
8384007
Compare
Great feature! This does make me think that we need a "single color" raster renderer to accompany this |
@nyalldawson , good idea. A single color renderer would be helpful even in a non temporal context here (eg show me all non-nodata as blue from a detected water/flooding dataset). It'd even be useful for elevation to define an elevation range area using a single color. |
8384007
to
2ba2abe
Compare
@nyalldawson , comments addressed, thanks for the review. |
@nyalldawson , done. |
@nirvn A documentation ticket will be opened at https://github.com/qgis/QGIS-Documentation when this PR is merged. Please update the description (not the comments) with helpful description and screenshot to help the work from documentors. Thank you! |
@nirvn |
This pull request has been tagged for the changelog.
You can edit the description. Format available for credits
Thank you! |
Description
This PR implements a new temporal mode for raster layers which interprets each pixel as a datetime value. When rendering a raster layer using that temporal mode, pixels will be hidden whenever they fall outside of the temporal range attached to the render context.
In action, this is how it looks using a simple GLAD deforestation alerts geotiff:
Screencast.from.2024-04-04.09-52-39.webm
And here's how the setup UI looks like:
Interesting temporal use cases include:
r.walk
)The implementation here is taken from @nyalldawson 's elevation surface representation functionality merged earlier this year. Thanks for the inspiration!