Skip to main content

geoengine_api_client/models/
gdal_source.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/// GdalSource : The [`GdalSource`] is a source operator that reads raster data using GDAL. The counterpart for vector data is the [`OgrSource`].  ## Errors  If the given dataset does not exist or is not readable, an error is thrown. 
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GdalSource {
17    #[serde(rename = "params")]
18    pub params: Box<models::GdalSourceParameters>,
19    #[serde(rename = "type")]
20    pub r#type: Type,
21}
22
23impl GdalSource {
24    /// The [`GdalSource`] is a source operator that reads raster data using GDAL. The counterpart for vector data is the [`OgrSource`].  ## Errors  If the given dataset does not exist or is not readable, an error is thrown. 
25    pub fn new(params: models::GdalSourceParameters, r#type: Type) -> GdalSource {
26        GdalSource {
27            params: Box::new(params),
28            r#type,
29        }
30    }
31}
32/// 
33#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
34pub enum Type {
35    #[serde(rename = "GdalSource")]
36    GdalSource,
37}
38
39impl Default for Type {
40    fn default() -> Type {
41        Self::GdalSource
42    }
43}
44