Skip to main content

geoengine_api_client/models/
reprojection_parameters.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/// ReprojectionParameters : Parameters for the `Reprojection` operator.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ReprojectionParameters {
17    /// Controls how raster output bounds are derived.  The default `projectionBounds` usually keeps a projection-aligned target grid, while `dataBounds` derives it directly from source data bounds.
18    #[serde(rename = "deriveOutSpec", skip_serializing_if = "Option::is_none")]
19    pub derive_out_spec: Option<models::DeriveOutRasterSpecsSource>,
20    /// Target spatial reference system.
21    #[serde(rename = "targetSpatialReference")]
22    pub target_spatial_reference: String,
23}
24
25impl ReprojectionParameters {
26    /// Parameters for the `Reprojection` operator.
27    pub fn new(target_spatial_reference: String) -> ReprojectionParameters {
28        ReprojectionParameters {
29            derive_out_spec: None,
30            target_spatial_reference,
31        }
32    }
33}
34