geoengine-api-client 0.9.2

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * 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};

/// Reprojection : The `Reprojection` operator reprojects data from one spatial reference system to another. It accepts exactly one input which can either be a raster or a vector data stream. The operator produces all data that, after reprojection, is contained in the query rectangle.  ## Data Type Specifics  The concrete behavior depends on the data type.  ### Vector Data  The operator reprojects all coordinates of the features individually. The result contains all features that, after reprojection, are intersected by the query rectangle.  ### Raster Data  To create tiles in the target projection, the operator loads corresponding tiles in the source projection. For each output pixel, the value of the nearest input pixel is used.  If parts of a tile are outside of the source extent after projection, the operator produces NO DATA values.  ## Inputs  The `Reprojection` operator expects exactly one _raster_ or _vector_ input.  ## Errors  The operator returns an error if the target projection is unknown or if input data cannot be reprojected.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Reprojection {
    #[serde(rename = "params")]
    pub params: Box<models::ReprojectionParameters>,
    #[serde(rename = "sources")]
    pub sources: Box<models::SingleRasterOrVectorSource>,
    #[serde(rename = "type")]
    pub r#type: Type,
}

impl Reprojection {
    /// The `Reprojection` operator reprojects data from one spatial reference system to another. It accepts exactly one input which can either be a raster or a vector data stream. The operator produces all data that, after reprojection, is contained in the query rectangle.  ## Data Type Specifics  The concrete behavior depends on the data type.  ### Vector Data  The operator reprojects all coordinates of the features individually. The result contains all features that, after reprojection, are intersected by the query rectangle.  ### Raster Data  To create tiles in the target projection, the operator loads corresponding tiles in the source projection. For each output pixel, the value of the nearest input pixel is used.  If parts of a tile are outside of the source extent after projection, the operator produces NO DATA values.  ## Inputs  The `Reprojection` operator expects exactly one _raster_ or _vector_ input.  ## Errors  The operator returns an error if the target projection is unknown or if input data cannot be reprojected.
    pub fn new(params: models::ReprojectionParameters, sources: models::SingleRasterOrVectorSource, r#type: Type) -> Reprojection {
        Reprojection {
            params: Box::new(params),
            sources: Box::new(sources),
            r#type,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "Reprojection")]
    Reprojection,
}

impl Default for Type {
    fn default() -> Type {
        Self::Reprojection
    }
}