Skip to main content

geoengine_api_client/models/
reprojection.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/// 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.
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct Reprojection {
16    #[serde(rename = "params")]
17    pub params: Box<models::ReprojectionParameters>,
18    #[serde(rename = "sources")]
19    pub sources: Box<models::SingleRasterOrVectorSource>,
20    #[serde(rename = "type")]
21    pub r#type: Type,
22}
23
24impl Reprojection {
25    /// 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.
26    pub fn new(params: models::ReprojectionParameters, sources: models::SingleRasterOrVectorSource, r#type: Type) -> Reprojection {
27        Reprojection {
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 = "Reprojection")]
38    Reprojection,
39}
40
41impl Default for Type {
42    fn default() -> Type {
43        Self::Reprojection
44    }
45}
46