Skip to content

Commit

Permalink
Add offshore solutions to priority areas report
Browse files Browse the repository at this point in the history
  • Loading branch information
avmey committed Feb 4, 2025
1 parent 46a61b9 commit 1d17dfa
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 7 deletions.
15 changes: 15 additions & 0 deletions project/datasources.json
Original file line number Diff line number Diff line change
Expand Up @@ -1074,5 +1074,20 @@
"created": "2024-10-24T20:02:03.953Z",
"lastUpdated": "2024-10-24T20:02:03.953Z",
"src": "data/src/Analytics/SiteSuitability/wave_energy1.tif"
},
{
"src": "data/src/Analytics/PriorityModel/prioritySolutionsEEZ.fgb",
"layerName": "prioritySolutionsEEZ",
"geo_type": "vector",
"datasourceId": "prioritySolutionsEEZ",
"formats": [
"fgb"
],
"classKeys": [],
"created": "2025-02-04T18:27:41.558Z",
"lastUpdated": "2025-02-04T18:27:41.558Z",
"propertiesToKeep": [],
"explodeMulti": true,
"precalc": true
}
]
2 changes: 1 addition & 1 deletion project/metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
{
"classId": "priorityAreas",
"display": "Priority Areas",
"datasourceId": "priorityModel"
"datasourceId": "prioritySolutionsEEZ"
}
]
},
Expand Down
16 changes: 16 additions & 0 deletions project/precalc.json
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,14 @@
"groupId": null,
"value": 411369085.8030003
},
{
"geographyId": "world",
"metricId": "area",
"classId": "prioritySolutionsEEZ-total",
"sketchId": null,
"groupId": null,
"value": 96890475499.21095
},
{
"geographyId": "world",
"metricId": "area",
Expand Down Expand Up @@ -1095,6 +1103,14 @@
"groupId": null,
"value": 645
},
{
"geographyId": "world",
"metricId": "count",
"classId": "prioritySolutionsEEZ-total",
"sketchId": null,
"groupId": null,
"value": 648
},
{
"geographyId": "world",
"metricId": "count",
Expand Down
7 changes: 6 additions & 1 deletion src/components/PriorityAreas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ export const PriorityAreas: React.FunctionComponent<GeogProp> = (props) => {
</p>
<LayerToggle
layerId={metricGroup.layerId}
label={`Show Priority Areas`}
label={`Show Nearshore Priority Areas`}
/>
<VerticalSpacer />
<LayerToggle
layerId={"zUzhwXQVI"}
label={`Show Offshore Priority Areas`}
/>
<VerticalSpacer />
{isCollection ? genNetwork(data) : genSingle(data, userAttributes)}
Expand Down
5 changes: 0 additions & 5 deletions src/components/RenewableEnergy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,12 @@ import {
Collapse,
ReportError,
ResultsCard,
SketchClassTable,
useSketchProperties,
} from "@seasketch/geoprocessing/client-ui";
import {
GeogProp,
Metric,
MetricGroup,
ReportResult,
flattenBySketchAllClass,
metricsWithSketchId,
toNullSketchArray,
toPercentMetric,
} from "@seasketch/geoprocessing/client-core";
import project from "../../project/projectClient.js";
Expand Down

0 comments on commit 1d17dfa

Please sign in to comment.