Skip to content

Commit 0219f8f

Browse files
Update geoengine-openapi-client source and refactor NDVI output band handling
1 parent d7062c3 commit 0219f8f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

backend/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/src/processes/ndvi.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -462,13 +462,13 @@ fn ndvi_source() -> RasterOperator {
462462
params: ExpressionParameters {
463463
expression: "min((A / (127.50)) - 1, 1)".into(),
464464
output_type: RasterDataType::F64,
465-
output_band: Some(Some(
465+
output_band: Some(
466466
RasterBandDescriptor {
467467
name: "NDVI".into(),
468468
measurement: Measurement::Unitless(Default::default()).into(),
469469
}
470470
.into(),
471-
)),
471+
),
472472
map_no_data: false,
473473
}
474474
.into(),
@@ -506,13 +506,13 @@ fn k_ndvi_source() -> RasterOperator {
506506
"}
507507
.into(),
508508
output_type: RasterDataType::F64,
509-
output_band: Some(Some(
509+
output_band: Some(
510510
RasterBandDescriptor {
511511
name: "kNDVI".into(),
512512
measurement: Measurement::Unitless(Default::default()).into(),
513513
}
514514
.into(),
515-
)),
515+
),
516516
map_no_data: false,
517517
}
518518
.into(),

0 commit comments

Comments
 (0)