Skip to content

Commit

Permalink
ca_qc_disstricts: Update borough names for Sherbrooke
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jun 7, 2024
1 parent 4d3b5ab commit bbf92f7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
16 changes: 11 additions & 5 deletions boundaries/ca_qc_districts/definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ def district_namer(f):
2.40: 'Pin-Solitaire',
3.10: 'Uplands',
3.20: 'Fairview',
3.30: 'Lennoxville',
4.10: 'Université',
4.20: 'Ascot',
4.30: 'Lac-des-Nations',
Expand Down Expand Up @@ -390,7 +391,12 @@ def borough_namer(f):

# Sherbrooke
if code == 43027:
return 'Arrondissement %s' % int(f.get('NO_ARON'))
return {
1: 'Brompton–Rock Forest–Saint-Élie–Deauville',
2: 'Fleurimont',
3: 'Lennoxville',
4: 'Nations',
}[int(f.get('NO_ARON'))]

# Montréal
elif code == 66023:
Expand Down Expand Up @@ -515,10 +521,10 @@ def district_ider(f):
'name': 'Sherbrooke',
'geographic_code': 43027,
'boroughs': {
'ocd-division/country:ca/csd:2443027/borough:1': 'Arrondissement 1',
'ocd-division/country:ca/csd:2443027/borough:2': 'Arrondissement 2',
'ocd-division/country:ca/csd:2443027/borough:3': 'Arrondissement 3',
'ocd-division/country:ca/csd:2443027/borough:4': 'Arrondissement 4',
'ocd-division/country:ca/csd:2443027/borough:1': 'Brompton–Rock Forest–Saint-Élie–Deauville',
'ocd-division/country:ca/csd:2443027/borough:2': 'Fleurimont',
'ocd-division/country:ca/csd:2443027/borough:3': 'Lennoxville',
'ocd-division/country:ca/csd:2443027/borough:4': 'Nations',
},
},
]
Expand Down
8 changes: 4 additions & 4 deletions country-ca.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2550,10 +2550,10 @@ ocd-division/country:ca/csd:2442110/district:4,District 4,,,,,,,,,,,,,,
ocd-division/country:ca/csd:2442110/district:5,District 5,,,,,,,,,,,,,,
ocd-division/country:ca/csd:2442110/district:6,District 6,,,,,,,,,,,,,,
ocd-division/country:ca/csd:2443027,Sherbrooke,,,,,V,Y,Sherbrooke,,Ville de Sherbrooke,,24,,,
ocd-division/country:ca/csd:2443027/borough:1,Arrondissement 1,,,,,,,,,,,,,,
ocd-division/country:ca/csd:2443027/borough:2,Arrondissement 2,,,,,,,,,,,,,,
ocd-division/country:ca/csd:2443027/borough:3,Arrondissement 3,,,,,,,,,,,,,,
ocd-division/country:ca/csd:2443027/borough:4,Arrondissement 4,,,,,,,,,,,,,,
ocd-division/country:ca/csd:2443027/borough:1,Brompton–Rock Forest–Saint-Élie–Deauville,,,,,,,,,,,,,,
ocd-division/country:ca/csd:2443027/borough:2,Fleurimont,,,,,,,,,,,,,,
ocd-division/country:ca/csd:2443027/borough:3,Lennoxville,,,,,,,,,,,,,,
ocd-division/country:ca/csd:2443027/borough:4,Nations,,,,,,,,,,,,,,
ocd-division/country:ca/csd:2443027/district:1.1,Lac Magog,,,,,,,,,,,,,,
ocd-division/country:ca/csd:2443027/district:1.2,Rock Forest,,,,,,,,,,,,,,
ocd-division/country:ca/csd:2443027/district:1.3,Saint-Élie,,,,,,,,,,,,,,
Expand Down

0 comments on commit bbf92f7

Please sign in to comment.