Skip to main content

geoengine_api_client/models/
interpolation.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/// Interpolation : The `Interpolation` operator increases raster resolution by interpolating values of an input raster.  If queried with a resolution that is coarser than the input resolution, interpolation is not applicable and an error is returned.  ## Inputs  The `Interpolation` operator expects exactly one _raster_ input.
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct Interpolation {
16    #[serde(rename = "params")]
17    pub params: Box<models::InterpolationParameters>,
18    #[serde(rename = "sources")]
19    pub sources: Box<models::SingleRasterSource>,
20    #[serde(rename = "type")]
21    pub r#type: Type,
22}
23
24impl Interpolation {
25    /// The `Interpolation` operator increases raster resolution by interpolating values of an input raster.  If queried with a resolution that is coarser than the input resolution, interpolation is not applicable and an error is returned.  ## Inputs  The `Interpolation` operator expects exactly one _raster_ input.
26    pub fn new(params: models::InterpolationParameters, sources: models::SingleRasterSource, r#type: Type) -> Interpolation {
27        Interpolation {
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 = "Interpolation")]
38    Interpolation,
39}
40
41impl Default for Type {
42    fn default() -> Type {
43        Self::Interpolation
44    }
45}
46