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
42
43
44
/*
* Geo Engine API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.9.0
* Contact: dev@geoengine.de
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RasterVectorJoinParameters {
/// The aggregation function to use for features covering multiple pixels.
#[serde(rename = "featureAggregation")]
pub feature_aggregation: models::FeatureAggregationMethod,
/// Whether to ignore no data values in the aggregation. Defaults to `false`.
#[serde(rename = "featureAggregationIgnoreNoData", skip_serializing_if = "Option::is_none")]
pub feature_aggregation_ignore_no_data: Option<bool>,
/// Specify how the new column names are derived from the raster band names. The `ColumnNames` type is used to specify how the new column names are derived from the raster band names. - **default**: Appends \" (n)\" to the band name with the smallest `n` that avoids a conflict. - **suffix**: Specifies a suffix for each input, to be appended to the band names. - **rename**: A list of names for each new column.
#[serde(rename = "names")]
pub names: Box<models::ColumnNames>,
/// The aggregation function to use for features covering multiple (raster) time steps.
#[serde(rename = "temporalAggregation")]
pub temporal_aggregation: models::TemporalAggregationMethod,
/// Whether to ignore no data values in the aggregation. Defaults to `false`.
#[serde(rename = "temporalAggregationIgnoreNoData", skip_serializing_if = "Option::is_none")]
pub temporal_aggregation_ignore_no_data: Option<bool>,
}
impl RasterVectorJoinParameters {
pub fn new(feature_aggregation: models::FeatureAggregationMethod, names: models::ColumnNames, temporal_aggregation: models::TemporalAggregationMethod) -> RasterVectorJoinParameters {
RasterVectorJoinParameters {
feature_aggregation,
feature_aggregation_ignore_no_data: None,
names: Box::new(names),
temporal_aggregation,
temporal_aggregation_ignore_no_data: None,
}
}
}