Skip to content

Commit

Permalink
chore: added imperviousness and land cover auxiliary data;
Browse files Browse the repository at this point in the history
  • Loading branch information
santilland committed Oct 18, 2024
1 parent 8d9571f commit efd6499
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 4 deletions.
30 changes: 30 additions & 0 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"@eox/itemfilter": "0.14.0",
"@eox/jsonform": "^0.7.0",
"@eox/layercontrol": "^0.17.3",
"@eox/stacinfo": "^0.3.3",
"@eox/map": "^1.8.2",
"@eox/stacinfo": "^0.3.3",
"@eox/storytelling": "^1.0.2",
"@turf/difference": "^6.5.0",
"axios": "^0.21.1",
Expand All @@ -30,6 +30,7 @@
"chartjs-chart-geo": "^2.1.0",
"chartjs-plugin-annotation": "^0.5.7",
"chartjs-plugin-datalabels": "^0.7.0",
"chartjs-plugin-regression": "^0.2.1",
"chartjs-plugin-zoom": "^0.7.7",
"colormap": "^2.3.2",
"core-js": "^3.6.4",
Expand Down
49 changes: 46 additions & 3 deletions app/src/config/gtif.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ const heatadaptCM = [
{ index: 1, rgb: [215, 25, 28] },
];

const heatadaptImperviousness = [
{ index: 0, rgb: [255, 253, 188] },
{ index: 1, rgb: [255, 180, 4] },
];

// stp = 1 / 6;
// const heatadaptReds = [
// { index: 0, rgb: [255, 245, 240] },
Expand Down Expand Up @@ -1352,6 +1357,46 @@ export const globalIndicators = [
],
},
},
{
protocol: 'cog',
id: 'LULUCF',
sources: [
{ url: 'https://eox-gtif-public.s3.eu-central-1.amazonaws.com/HeatAdapt/update/LULUCF_2018_AT_70m_3857_rendered.tif' },
],
name: 'Land Cover',
normalize: true,
visible: false,
style: {},
},
{
protocol: 'cog',
id: 'imperviousness',
sources: [
{ url: 'https://eox-gtif-public.s3.eu-central-1.amazonaws.com/HeatAdapt/update/IMD_2018_AT_70m_3857.tif' },
],
name: 'Imperviousness',
visible: false,
style: {
color: [
'case',
['==', ['band', 4], 255],
[
'match',
['band', 1],
0,
['color', 0, 0, 0, 1],
[
'interpolate',
['linear'],
['band', 1],
...getColorStops(heatadaptImperviousness, 1, 254, 32),
],
],
// out of bounds color
['color', 0, 0, 0, 0],
],
},
},
{
layerName: 'geodb_debd884d-92f9-4979-87b6-eadef1139394:GTIF_AT_Gemeinden_3857',
protocol: 'geoserverTileLayer',
Expand All @@ -1360,10 +1405,8 @@ export const globalIndicators = [
color: 'rgba(0,0,0,0)',
strokeWidth: 0.5,
},
id: 'air_quality_new_id',
id: 'gemeinde_lst',
name: 'Administrative zone (Gemeinde)',
adminZoneKey: 'id_3',
parameters: 'pm10,id_3',
selection: {
mode: 'multiple',
},
Expand Down

0 comments on commit efd6499

Please sign in to comment.