The TimeProjection projects vector dataset timestamps to new granularities and ranges. The output is a new vector dataset with the same geometry and attributes as the input. However, each time step is projected to a new time range. Moreover, the QueryRectangle's temporal extent is enlarged as well to include the projected time range.
TimeProjection
QueryRectangle
An example usage scenario is to transform snapshot observations into yearly time slices. For instance, animal occurrences are observed at a daily granularity. If you want to aggregate the data to a yearly granularity, you can use the TimeProjection operator. This will change the validity of each element in the dataset to the full year where it was observed. This is, for instance, useful when you want to combine it with raster time series and use different temporal semantics than the originally recorded validities.
step
TimeStep
{ "granularity": "years", "step": 1}
stepReference
TimeInstance
"2010-01-01T00:00:00Z"
The TimeProjection operator expects exactly one vector input.
vector
SingleVectorSource
If the step is negative, an error is thrown.
{ "type": "TimeProjection", "params": { "step": { "granularity": "years", "step": 1 } }, "sources": { "vector": { "type": "OgrSource", "params": { "data": { "type": "internal", "datasetId": "a626c880-1c41-489b-9e19-9596d129859c" } } } } }