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 * Contact: dev@geoengine.de
7 * Generated by: https://openapi-generator.tech
8 */
9
10use crate::models;
11use serde::{Deserialize, Serialize};
12
13/// ReprojectionParameters : Parameters for the `Reprojection` operator.
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ReprojectionParameters {
16 /// 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.
17 #[serde(rename = "deriveOutSpec", skip_serializing_if = "Option::is_none")]
18 pub derive_out_spec: Option<models::DeriveOutRasterSpecsSource>,
19 /// Target spatial reference system.
20 #[serde(rename = "targetSpatialReference")]
21 pub target_spatial_reference: String,
22}
23
24impl ReprojectionParameters {
25 /// Parameters for the `Reprojection` operator.
26 pub fn new(target_spatial_reference: String) -> ReprojectionParameters {
27 ReprojectionParameters {
28 derive_out_spec: None,
29 target_spatial_reference,
30 }
31 }
32}
33