Skip to content

Commit 8d1c293

Browse files
committed
Merge branch 'workflow-optimization' of github.com:geo-engine/geoengine-ui into geoengine-2-rework
2 parents d5b8c6d + d567ea5 commit 8d1c293

File tree

8 files changed

+72
-23
lines changed

8 files changed

+72
-23
lines changed

package-lock.json

Lines changed: 4 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
"@angular/core": "^20.1.3",
5757
"@angular/forms": "^20.1.3",
5858
"@angular/material": "^20.1.3",
59-
"@angular/platform-browser-dynamic": "^20.1.3",
6059
"@angular/platform-browser": "^20.1.3",
60+
"@angular/platform-browser-dynamic": "^20.1.3",
6161
"@angular/router": "^20.1.3",
6262
"@codemirror/lang-json": "~6.0.2",
6363
"@codemirror/lang-rust": "~6.0.2",
@@ -66,25 +66,25 @@
6666
"@codemirror/state": "~6.5.2",
6767
"@codemirror/view": "~6.38.1",
6868
"@egjs/hammerjs": "^2.0.17",
69-
"@geoengine/openapi-client": "git://github.com/geo-engine/openapi-client.git#backend_pixel_rewrite_v4",
69+
"@geoengine/openapi-client": "https://gitpkg.now.sh/geo-engine/openapi-client/typescript?workflow-optimization",
7070
"d3": "~7.9.0",
71-
"dagre-d3": "~0.6.4",
7271
"dagre": "~0.8.5",
72+
"dagre-d3": "~0.6.4",
7373
"flatgeobuf": "4.1.1",
7474
"immutable": "~5.1.3",
7575
"keycharm": "0.4.0",
7676
"moment": "~2.30.1",
7777
"ngx-color-picker": "~20.0.0",
7878
"ngx-mat-select-search": "~8.0.2",
79-
"ol-mapbox-style": "~13.0.1",
8079
"ol": "~10.6.1",
80+
"ol-mapbox-style": "~13.0.1",
8181
"proj4": "~2.19.10",
8282
"propagating-hammerjs": "^3.0.0",
8383
"rxjs": "^7.8.2",
8484
"uuid": "11.1.0",
85+
"vega": "~6.1.2",
8586
"vega-embed": "~7.0.2",
8687
"vega-lite": "~6.2.0",
87-
"vega": "~6.1.2",
8888
"vis-data": "8.0.1",
8989
"vis-timeline": "8.2.1",
9090
"vis-util": "6.0.0",

projects/common/src/lib/datasets/dataset.model.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ import {SourceOperatorDict} from '../operators/operator.model';
1111
import {SpatialGridDescriptor} from '../spatial-grid/spatial-grid-descriptor.model';
1212
import {SrsString} from '../spatial-references/spatial-reference.model';
1313
import {Symbology} from '../symbology/symbology.model';
14-
import {Time} from '../time/time.model';
1514
import {
1615
Dataset as DatasetDict,
1716
TypedResultDescriptor as TypedResultDescriptorDict,
1817
TypedVectorResultDescriptor as VectorResultDescriptorDict,
1918
TypedRasterResultDescriptor as RasterResultDescriptorDict,
2019
Workflow as WorkflowDict,
2120
RasterBandDescriptor as RasterBandDescriptor,
21+
TimeDescriptor,
2222
} from '@geoengine/openapi-client';
2323

2424
export type UUID = string;
@@ -89,14 +89,14 @@ export class RasterResultDescriptor extends ResultDescriptor {
8989
readonly dataType: RasterDataType;
9090
readonly bands: Array<RasterBandDescriptor>;
9191
readonly spatialGrid: SpatialGridDescriptor;
92-
readonly time?: Time;
92+
readonly time: TimeDescriptor;
9393

9494
constructor(config: RasterResultDescriptorDict) {
9595
super(config.spatialReference);
9696
this.dataType = RasterDataTypes.fromCode(config.dataType);
9797
this.bands = config.bands;
9898
this.spatialGrid = SpatialGridDescriptor.fromDict(config.spatialGrid);
99-
this.time = config.time ? Time.fromDict(config.time) : undefined;
99+
this.time = config.time;
100100
}
101101

102102
static override fromDict(dict: RasterResultDescriptorDict): RasterResultDescriptor {

projects/common/src/lib/layers/layer-metadata.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export class RasterLayerMetadata extends LayerMetadata {
122122
static override fromDict(dict: RasterResultDescriptorDict): RasterLayerMetadata {
123123
const dataType = RasterDataTypes.fromCode(dict.dataType);
124124
const bands = dict.bands;
125-
const time = dict.time ? Time.fromDict(dict.time) : undefined;
125+
const time = dict.time?.bounds ? Time.fromDict(dict.time.bounds) : undefined;
126126
const spatialGrid = SpatialGridDescriptor.fromDict(dict.spatialGrid);
127127

128128
return new RasterLayerMetadata(dataType, SpatialReference.fromSrsString(dict.spatialReference), bands, spatialGrid, time);

projects/core/src/lib/backend/backend.model.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {SpatialGridDescriptor} from '@geoengine/openapi-client';
1+
import {SpatialGridDescriptor, TimeDescriptor} from '@geoengine/openapi-client';
22

33
export type UUID = string;
44
export type TimestampString = string;
@@ -288,7 +288,7 @@ export interface PlotDataDict {
288288
export interface ResultDescriptorDict {
289289
type: 'raster' | 'vector' | 'plot';
290290
spatialReference: SrsString;
291-
time?: TimeIntervalDict;
291+
time?: TimeDescriptor;
292292
}
293293

294294
export type TypedResultDescriptorDict = VectorResultDescriptorDict | RasterResultDescriptorDict;
@@ -302,7 +302,7 @@ export interface RasterResultDescriptorDict extends ResultDescriptorDict {
302302
type: 'raster';
303303
dataType: 'U8' | 'U16' | 'U32' | 'U64' | 'I8' | 'I16' | 'I32' | 'I64' | 'F32' | 'F64';
304304
bands: RasterBandDescriptorDict[];
305-
time?: TimeIntervalDict;
305+
time: TimeDescriptor;
306306
spatialGrid: SpatialGridDescriptor;
307307
resolution?: SpatialResolution;
308308
}

projects/manager/src/app/datasets/loading-info/gdal-metadata-list/gdal-metadata-list.component.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,12 @@ export class GdalMetadataListComponent implements OnChanges {
234234
spatialReference: resultDescriptorControl.spatialReference.value,
235235
dataType: resultDescriptorControl.dataType.value,
236236
spatialGrid: spatialGridDesc.toDict(),
237+
time: {
238+
bounds: null,
239+
dimension: {
240+
type: 'irregular',
241+
},
242+
},
237243
};
238244

239245
return {

projects/manager/src/app/result-descriptors/raster-result-descriptor/raster-result-descriptor.component.html

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,32 @@
4646
</div>
4747
}
4848

49-
@if (resultDescriptor().time; as time) {
50-
<div class="flex-container">
49+
<div class="flex-container">
50+
@if (regularTimeDimension) {
51+
<mat-form-field>
52+
<mat-label>Time Dimension</mat-label>
53+
<input matInput type="text" readonly value="regular" />
54+
</mat-form-field>
55+
<mat-form-field>
56+
<mat-label>Time Origin</mat-label>
57+
<input matInput type="text" readonly [value]="regularTimeDimension.origin" />
58+
</mat-form-field>
59+
<mat-form-field>
60+
<mat-label>Time Step</mat-label>
61+
<input matInput type="text" readonly [value]="regularTimeDimension.step.step" />
62+
</mat-form-field>
63+
<mat-form-field>
64+
<mat-label>Time Granularity</mat-label>
65+
<input matInput type="text" readonly [value]="regularTimeDimension.step.granularity" />
66+
</mat-form-field>
67+
} @else {
68+
<mat-form-field>
69+
<mat-label>Time Dimension</mat-label>
70+
<input matInput type="text" readonly value="irregular" />
71+
</mat-form-field>
72+
}
73+
74+
@if (resultDescriptor().time.bounds; as time) {
5175
<mat-form-field>
5276
<mat-label>Time Start</mat-label>
5377
<input matInput type="text" readonly [value]="convertUnixToIso(time.start)" />
@@ -56,8 +80,19 @@
5680
<mat-label>Time End</mat-label>
5781
<input matInput type="text" readonly [value]="convertUnixToIso(time.end)" />
5882
</mat-form-field>
59-
</div>
60-
}
83+
} @else {
84+
<mat-form-field>
85+
<mat-label>Time Start</mat-label>
86+
<input matInput type="text" readonly value="None" />
87+
</mat-form-field>
88+
<mat-form-field>
89+
<mat-label>Time End</mat-label>
90+
<input matInput type="text" readonly value="None" />
91+
</mat-form-field>
92+
}
93+
</div>
94+
95+
<!-- TODO: time dimension -->
6196

6297
<table mat-table [dataSource]="bandDataSource">
6398
<ng-container matColumnDef="index">

projects/manager/src/app/result-descriptors/raster-result-descriptor/raster-result-descriptor.component.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {Component, input} from '@angular/core';
22
import {BoundingBox2D, GeoTransform, GridBoundingBox2D} from '@geoengine/common';
3-
import {RasterBandDescriptor, TypedRasterResultDescriptor} from '@geoengine/openapi-client';
3+
import {RasterBandDescriptor, TypedRasterResultDescriptor, RegularTimeDimension} from '@geoengine/openapi-client';
44
import {FormsModule} from '@angular/forms';
55
import {MatFormField, MatLabel, MatInput} from '@angular/material/input';
66
import {
@@ -63,6 +63,16 @@ export class RasterResultDescriptorComponent {
6363
y: this.resultDescriptor().spatialGrid.spatialGrid.geoTransform.yPixelSize,
6464
};
6565
}
66+
67+
get regularTimeDimension(): RegularTimeDimension | undefined {
68+
const rd = this.resultDescriptor().time.dimension;
69+
70+
if (rd && rd.type === 'regular') {
71+
return rd;
72+
}
73+
74+
return undefined;
75+
}
6676
}
6777

6878
interface SpatialResolution {

0 commit comments

Comments
 (0)