-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathincognita-config.toml
212 lines (165 loc) · 7.95 KB
/
incognita-config.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
[census_extract]
original = "data/Scout Census Data/Census 2021-01 Extract (1).csv"
merged = "data/Scout Census Data/Census 2021-01 Extract (1) with May 2020 fields.feather"
[ons_pd]
full = "data/ONSPD_MAY_2020_UK/Data/ONSPD_MAY_2020_UK.csv"
reduced = "data/ONSPD_MAY_2020_UK/Data/ONSPD_MAY_2020_UK - reduced.feather"
minified = "data/ONSPD_MAY_2020_UK/Data/ONSPD_MAY_2020_UK - minified.feather"
#reduced_nystest = "data/ons_pd_with_nys2.csv"
[folders]
# Folder within the ONS Postcode Directory archive holding names and codes files
ons_pd_names_codes = "data/ONSPD_MAY_2020_UK/Documents/"
# Folder for national statistical data (age profiles etc)
national_statistical = "data/National Statistical data/"
# Folder with all shapefiles
boundaries = "data/Boundary shape files/"
# Folder for generated files
output = "Output/"
[ons2020."Local Authority"]
# https://geoportal.statistics.gov.uk/datasets/local-authority-districts-december-2020-uk-buc
key = "oslaua" # Local Authority Districts
codes.path = "LA_UA names and codes UK as at 04_20.csv"
codes.key = "LAD20CD"
codes.key_type = "string"
codes.name = "LAD20NM"
shapefile.path = "Local_Authority_Districts_(December_2020)_UK_BUC/Local_Authority_Districts_(December_2020)_UK_BUC.shp"
shapefile.key = "LAD20CD"
shapefile.name = "LAD20NM"
age_profile.path = "lad_by_age.csv"
age_profile.key = "Code"
api.url = "https://services1.arcgis.com/ESMARspQHYMw9BZ9/arcgis/rest/services/Local_Authority_Districts_December_2020_UK_BUC/FeatureServer/0/query?"
api.query_params = '{"outFields": "LAD20CD,LAD20NM"}'
api.codes_col = "LAD20CD"
api.names_col = "LAD20NM"
[ons2020."County (LA)"]
# https://geoportal.statistics.gov.uk/datasets/counties-and-unitary-authorities-december-2020-uk-buc
key = "oslaua" # Counties
codes.path = "LA_UA names and codes UK as at 04_20.csv"
codes.key = "LAD20CD"
codes.key_type = "string"
codes.name = "LAD20NM"
shapefile.path = "Counties_and_Unitary_Authorities_(December_2020)_UK_BUC/Counties_and_Unitary_Authorities_(December_2020)_UK_BUC.shp"
shapefile.key = "CTYUA20CD"
shapefile.name = "CTYUA20NM"
api.url = "https://services1.arcgis.com/ESMARspQHYMw9BZ9/arcgis/rest/services/Counties_and_Unitary_Authorities_December_2020_UK_BUC_V2/FeatureServer/0/query?"
api.query_params = '{"outFields": "CTYUA20CD,CTYUA20NM"}'
api.codes_col = "CTYUA20CD"
api.names_col = "CTYUA20NM"
[ons2020."Ward"]
# https://geoportal.statistics.gov.uk/datasets/wards-december-2020-uk-bsc-v2
key = "osward" # Council Wards
codes.path = "Ward names and codes UK as at 04_20.csv"
codes.key = "WD20CD"
codes.key_type = "string"
codes.name = "WD20NM"
shapefile.path = "Wards_(December_2020)_UK_BSC_V2/Wards_(December_2020)_UK_BSC_V2.shp"
shapefile.key = "WD20CD"
shapefile.name = "WD20NM"
age_profile.path = "osward_by_age_mid_2018_population_may_2019_wards.csv"
age_profile.key = "Ward Code"
api.url = "https://services1.arcgis.com/ESMARspQHYMw9BZ9/arcgis/rest/services/Wards_December_2020_UK_BSC_V3/FeatureServer/0/query?"
api.query_params = '{"outFields": "WD20CD,WD20NM"}'
api.codes_col = "WD20CD"
api.names_col = "WD20NM"
[ons2020."Constituency"]
# https://geoportal.statistics.gov.uk/datasets/westminster-parliamentary-constituencies-december-2019-boundaries-uk-buc
key = "pcon" # Parliamentary Constituencies
codes.path = "Westminster Parliamentary Constituency names and codes UK as at 12_14.csv"
codes.key = "PCON14CD"
codes.key_type = "string"
codes.name = "PCON14NM"
shapefile.path = "Westminster_Parliamentary_Constituencies_(December_2019)_Boundaries_UK_BUC/Westminster_Parliamentary_Constituencies_(December_2019)_Boundaries_UK_BUC.shp"
shapefile.key = "pcon19cd"
shapefile.name = "pcon19nm"
age_profile.path = "pcon_by_age.csv"
age_profile.key = "PCON11CD"
api.url = "https://ons-inspire.esriuk.com/arcgis/rest/services/Electoral_Boundaries/Westminster_Parliamentary_Constituencies_December_2019_Boundaries_UK_BUC/MapServer/0/query?"
api.query_params = '{"outFields": "pcon19cd,pcon19nm"}'
api.codes_col = "pcon19cd"
api.names_col = "pcon19nm"
[ons2020."LSOA"]
# https://geoportal.statistics.gov.uk/datasets/lower-layer-super-output-areas-december-2011-boundaries-super-generalised-clipped-bsc-ew-v3
key = "lsoa11" # Lower Level Super Output Areas
codes.path = "LSOA (2011) names and codes UK as at 12_12.csv"
codes.key = "LSOA11CD"
codes.key_type = "string"
codes.name = "LSOA11NM"
shapefile.path = "Lower_Layer_Super_Output_Areas_December_2011_Boundaries_EW_BSC/Lower_Layer_Super_Output_Areas_December_2011_Boundaries_EW_BSC.shp"
shapefile.key = "LSOA11CD"
shapefile.name = "LSOA11NM"
api.url = "https://services1.arcgis.com/ESMARspQHYMw9BZ9/arcgis/rest/services/Lower_Layer_Super_Output_Areas_DEC_2011_EW_BSC_V3/FeatureServer/0/query?"
api.query_params = '{"outFields": "LSOA11CD,LSOA11NM"}'
api.codes_col = "LSOA11CD"
api.names_col = "LSOA11NM"
[ons2020."MSOA"]
# https://geoportal.statistics.gov.uk/datasets/middle-layer-super-output-areas-december-2011-boundaries-generalised-clipped-bgc-ew-v3
key = "msoa11" # Middle Layer Super Output Areas
codes.path = "MSOA (2011) names and codes UK as at 12_12.csv"
codes.key = "MSOA11CD"
codes.key_type = "string"
codes.name = "MSOA11NM"
shapefile.path = "Middle_Layer_Super_Output_Areas_December_2011_Full_Clipped_Boundaries_in_England_and_Wales/Middle_Layer_Super_Output_Areas_December_2011_Full_Clipped_Boundaries_in_England_and_Wales.shp"
shapefile.key = "msoa11cd"
api.url = "https://services1.arcgis.com/ESMARspQHYMw9BZ9/arcgis/rest/services/Middle_Layer_Super_Output_Areas_DEC_2011_EW_BGC_V3/FeatureServer/0/query?"
api.query_params = '{"outFields": "MSOA11CD,MSOA11NM"}'
api.codes_col = "MSOA11CD"
api.names_col = "MSOA11NM"
[ons2020."Intermediate Zone"]
# https://spatialdata.gov.scot/geonetwork/srv/eng/catalog.search#/metadata/389787c0-697d-4824-9ca9-9ce8cb79d6f5
key = "msoa11" # Intermediate Zones (codepages identical to MSOA but different shapefiles)
codes.path = "MSOA (2011) names and codes UK as at 12_12.csv"
codes.key = "MSOA11CD"
codes.key_type = "string"
codes.name = "MSOA11NM"
shapefile.path = "SG_IntermediateZoneBdry_2011/SG_IntermediateZone_Bdry_2011.shp"
shapefile.key = "InterZone"
api.url = "https://maps.gov.scot/server/rest/services/ScotGov/StatisticalUnits/MapServer/6/query?"
api.query_params = '{"outFields": "InterZone,Name"}'
api.codes_col = "InterZone"
api.names_col = "Name"
#[ons2020."Data Zone"]
## https://spatialdata.gov.scot/geonetwork/srv/eng/catalog.search#/metadata/7d3e8709-98fa-4d71-867c-d5c8293823f2
#
#api.url = "https://maps.gov.scot/server/rest/services/ScotGov/StatisticalUnits/MapServer/2/query?"
#api.query_params = '{"outFields": "DataZone,Name"}'
#api.codes_col = "DataZone"
#api.names_col = "Name"
[custom_boundaries."Scout District"]
key = "D_ID"
codes.path = "data/Scout Census Data/district_id_mapping.csv"
codes.key = "D_ID"
codes.key_type = "Int32"
codes.name = "D_name"
shapefile.path = "districts-borders-uk.geojson"
shapefile.key = "id"
shapefile.name = "name"
[custom_boundaries."IMD Decile"]
key = "imd_decile"
codes.path = "data/Scout Census Data/imd_names_and_codes.csv"
codes.key = "IMD Decile"
codes.key_type = "Int32"
codes.name = "Name"
[custom_boundaries."District (NYS)"]
key = "nys_districts"
codes.path = "data/Scout Census Data/North_Yorkshire_Districts.csv"
codes.key = "ID"
codes.key_type = "string"
codes.name = "District"
shapefile.path = "North_Yorkshire_Districts/North_Yorkshire_Districts.shp"
shapefile.key = "id"
shapefile.name = "district"
age_profile.path = "age_by_lsoa_mid_2017_total.csv"
age_profile.key = "Area Codes"
age_profile.pivot_key = "lsoa11"
[custom_boundaries."County"]
key = "ctyua19cd"
codes.path = "Scout Census Data/Counties_and_Unitary_Authorities__December_2019__Boundaries_UK.csv"
codes.key = "ctyua19cd"
codes.key_type = "string"
codes.name = "ctyua19nm"
shapefile.path = "Counties_UAs_Dec_2019_BUC_and_GADM36_crown_dependencies/Counties_UAs_Dec_2019_BUC_and_GADM36_crown_dependencies.shp"
shapefile.key = "ctyua19cd"
shapefile.name = "ctyua19nm"
age_profile.path = "age_by_lsoa_mid_2017_total.csv"
age_profile.key = "Area Codes"
age_profile.pivot_key = "lsoa11"