Skip to content

Commit be815ca

Browse files
authored
Merge pull request #5067 from dfe-analytical-services/EES-5170-1
EES-5170: Add missing boundary level details to glossary section, advise of file size limit on file upload
2 parents 7fdbcb8 + ff86a58 commit be815ca

File tree

2 files changed

+25
-10
lines changed

2 files changed

+25
-10
lines changed

src/explore-education-statistics-admin/src/pages/bau/BoundaryDataUploadPage.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default function BoundaryDataUploadPage() {
5050
return Yup.object({
5151
boundaryLevel: Yup.string().required('Select a boundary level type'),
5252
boundaryLevelLabel: Yup.string().required('Enter a boundary level name'),
53-
boundaryDataFile: Yup.file().required('Select a boundary file'),
53+
boundaryDataFile: Yup.file().required('Select a boundary file').maxSize(134217728, 'Boundary file must be under 128mb in size'),
5454
boundaryLevelPublishedDate: Yup.date().required(
5555
'Enter a boundary file publication date',
5656
),
@@ -119,7 +119,7 @@ export default function BoundaryDataUploadPage() {
119119
id="boundaryDataFile"
120120
name="boundaryDataFile"
121121
label="Upload new boundary data file"
122-
hint="Must be a GeoJSON file type"
122+
hint="Must be a GeoJSON file type, and no larger than 128mb"
123123
/>
124124
</FormFieldset>
125125

src/explore-education-statistics-common/src/utils/boundaryTypesMap.ts

+23-8
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,40 @@ const boundaryTypesMap: Dictionary<{
44
label: string;
55
description: string;
66
}> = {
7-
BFC: {
8-
label: 'BFC',
9-
description:
10-
'Full resolution - clipped to the coastline (Mean High Water mark)',
11-
},
127
BFE: {
138
label: 'BFE',
149
description:
15-
'Full resolution - extent of the realm (usually this is the Mean Low Water mark but, in some cases, boundaries extend beyond this to include offshore islands)',
10+
'Full Extent - full resolution boundaries go to the Extent of the Realm (Low Water Mark) and are the most detailed of the boundaries',
11+
},
12+
BFC: {
13+
label: 'BFC',
14+
description:
15+
'Full Clipped - full resolution boundaries that are clipped to the coastline (Mean High Water mark)',
1616
},
1717
BGC: {
1818
label: 'BGC',
1919
description:
20-
'Generalised (20m) - clipped to the coastline (Mean High Water mark)',
20+
'Generalised Clipped - generalised to 20m and clipped to the coastline (Mean High Water mark) and more generalised than the BFE boundaries',
21+
},
22+
BSC: {
23+
label: 'BSC',
24+
description:
25+
'Super Generalised Clipped - generalised to 200m and clipped to the coastline (Mean High Water mark)',
2126
},
2227
BUC: {
2328
label: 'BUC',
2429
description:
25-
'Ultra Generalised (500m) - clipped to the coastline (Mean High Water mark)',
30+
'Ultra Generalised Clipped - generalised to 500m and clipped to the coastline (Mean High Water mark)',
31+
},
32+
33+
BGE: {
34+
label: 'BGE',
35+
description:
36+
'Grid, Extent - grid formed of equally sized cells which extend beyond the coastline',
37+
},
38+
BGG: {
39+
label: 'BGG',
40+
description: 'Generalised, Grid - generalised 50m grid squares',
2641
},
2742
};
2843

0 commit comments

Comments
 (0)