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 * The version of the OpenAPI document: 0.9.0
7 * Contact: dev@geoengine.de
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// 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.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Interpolation {
17 #[serde(rename = "params")]
18 pub params: Box<models::InterpolationParameters>,
19 #[serde(rename = "sources")]
20 pub sources: Box<models::SingleRasterSource>,
21 #[serde(rename = "type")]
22 pub r#type: Type,
23}
24
25impl Interpolation {
26 /// 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.
27 pub fn new(params: models::InterpolationParameters, sources: models::SingleRasterSource, r#type: Type) -> Interpolation {
28 Interpolation {
29 params: Box::new(params),
30 sources: Box::new(sources),
31 r#type,
32 }
33 }
34}
35///
36#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
37pub enum Type {
38 #[serde(rename = "Interpolation")]
39 Interpolation,
40}
41
42impl Default for Type {
43 fn default() -> Type {
44 Self::Interpolation
45 }
46}
47