Add governed SPW bathymetry analysis
This commit is contained in:
+16
-6
@@ -212,7 +212,10 @@ function App(): JSX.Element {
|
||||
const thematicRasters = datasets.filter(
|
||||
(dataset) => dataset.dataset_type === 'raster' && dataset.source_name === 'department_omgeving_thematic_raster' && dataset.status === 'ready',
|
||||
)
|
||||
return [...vectors, ...terrain, ...floodHazards, ...thematicRasters]
|
||||
const bathymetryRasters = datasets.filter(
|
||||
(dataset) => dataset.dataset_type === 'raster' && dataset.source_name === 'spw_bathymetry' && dataset.status === 'ready',
|
||||
)
|
||||
return [...vectors, ...terrain, ...floodHazards, ...thematicRasters, ...bathymetryRasters]
|
||||
},
|
||||
[datasets],
|
||||
)
|
||||
@@ -694,12 +697,17 @@ function App(): JSX.Element {
|
||||
? FLANDERS_WORKSPACE_LABEL
|
||||
: selectedProject?.name ?? 'Geen werkruimte'
|
||||
const areaContextLabel = selectedArea?.name ?? (areas.length > 0 ? 'Kies een gebied' : 'Geen gebied')
|
||||
const bathymetryContextActive = Boolean(
|
||||
const bathymetryProfileContextActive = Boolean(
|
||||
activeWorkspace === 'map'
|
||||
&& selectedDataset?.source_name === 'vmm_vha_bathymetry_profiles',
|
||||
)
|
||||
const bathymetryRasterContextActive = Boolean(
|
||||
activeWorkspace === 'map'
|
||||
&& selectedDataset?.source_name === 'spw_bathymetry',
|
||||
)
|
||||
const bathymetryContextActive = bathymetryProfileContextActive || bathymetryRasterContextActive
|
||||
const regionalBathymetryContextActive = Boolean(
|
||||
bathymetryContextActive
|
||||
bathymetryProfileContextActive
|
||||
&& selectedDataset?.source_metadata?.regional_partitions_complete === true
|
||||
&& selectedArea
|
||||
&& !/^Gemeente\s/i.test(selectedArea.name),
|
||||
@@ -744,9 +752,11 @@ function App(): JSX.Element {
|
||||
const layerContextLabel = activeWorkspace === 'map' && mapContextLayerLabel
|
||||
? mapContextLayerLabel
|
||||
: bathymetryContextActive
|
||||
? regionalBathymetryContextActive
|
||||
? `${bathymetryProfileCount.toLocaleString('nl-BE')} profielen · ${regionalBathymetryPartitions.length} gemeenten`
|
||||
: `${bathymetryProfileCount.toLocaleString('nl-BE')} profielen`
|
||||
? bathymetryRasterContextActive
|
||||
? `${Number(selectedDataset?.source_metadata?.analysis_resolution_m ?? 0.5).toLocaleString('nl-BE')} m raster · mDNG · ${String(selectedDataset?.source_metadata?.survey_period ?? '2019-2022')}`
|
||||
: regionalBathymetryContextActive
|
||||
? `${bathymetryProfileCount.toLocaleString('nl-BE')} profielen · ${regionalBathymetryPartitions.length} gemeenten`
|
||||
: `${bathymetryProfileCount.toLocaleString('nl-BE')} profielen`
|
||||
: mapFeatureCollection
|
||||
? `${mapFeatureCount.toLocaleString('nl-BE')} objecten`
|
||||
: workspaceDataLoading
|
||||
|
||||
Reference in New Issue
Block a user