1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* Geo Engine API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* Contact: dev@geoengine.de
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// TemporalRasterAggregationParameters : Parameters for the `TemporalRasterAggregation` operator.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TemporalRasterAggregationParameters {
/// Aggregation method for values within each time window. Encountering NO DATA makes the aggregation result NO DATA unless `ignoreNoData` is `true` for the selected aggregation variant.
#[serde(rename = "aggregation")]
pub aggregation: Box<models::Aggregation>,
/// Optional output raster data type.
#[serde(rename = "outputType", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub output_type: Option<Option<models::RasterDataType>>,
/// Window size and granularity for the output time series.
#[serde(rename = "window")]
pub window: Box<models::TimeStep>,
/// Optional reference timestamp used as the anchor for window boundaries. If omitted, windows are anchored at `1970-01-01T00:00:00Z`.
#[serde(rename = "windowReference", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub window_reference: Option<Option<i64>>,
}
impl TemporalRasterAggregationParameters {
/// Parameters for the `TemporalRasterAggregation` operator.
pub fn new(aggregation: models::Aggregation, window: models::TimeStep) -> TemporalRasterAggregationParameters {
TemporalRasterAggregationParameters {
aggregation: Box::new(aggregation),
output_type: None,
window: Box::new(window),
window_reference: None,
}
}
}