Skip to main content

geoengine_api_client/models/
temporal_raster_aggregation.rs

1/*
2 * Geo Engine API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * Contact: dev@geoengine.de
7 * Generated by: https://openapi-generator.tech
8 */
9
10use crate::models;
11use serde::{Deserialize, Serialize};
12
13/// TemporalRasterAggregation : The `TemporalRasterAggregation` operator aggregates a raster time series into uniform time windows. The output starts with the first window that contains the query start and contains all windows that overlap the query interval.  Pixel values are computed by aggregating all input rasters that contribute to the current window.  ## Inputs  The `TemporalRasterAggregation` operator expects exactly one _raster_ input.  ## Errors  If the aggregation method is `first`, `last`, or `mean` and the input raster has no NO DATA value, an error is returned.
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct TemporalRasterAggregation {
16    #[serde(rename = "params")]
17    pub params: Box<models::TemporalRasterAggregationParameters>,
18    #[serde(rename = "sources")]
19    pub sources: Box<models::SingleRasterSource>,
20    #[serde(rename = "type")]
21    pub r#type: Type,
22}
23
24impl TemporalRasterAggregation {
25    /// The `TemporalRasterAggregation` operator aggregates a raster time series into uniform time windows. The output starts with the first window that contains the query start and contains all windows that overlap the query interval.  Pixel values are computed by aggregating all input rasters that contribute to the current window.  ## Inputs  The `TemporalRasterAggregation` operator expects exactly one _raster_ input.  ## Errors  If the aggregation method is `first`, `last`, or `mean` and the input raster has no NO DATA value, an error is returned.
26    pub fn new(params: models::TemporalRasterAggregationParameters, sources: models::SingleRasterSource, r#type: Type) -> TemporalRasterAggregation {
27        TemporalRasterAggregation {
28            params: Box::new(params),
29            sources: Box::new(sources),
30            r#type,
31        }
32    }
33}
34/// 
35#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
36pub enum Type {
37    #[serde(rename = "TemporalRasterAggregation")]
38    TemporalRasterAggregation,
39}
40
41impl Default for Type {
42    fn default() -> Type {
43        Self::TemporalRasterAggregation
44    }
45}
46