Inconsistency in Canada Provincial Electoral District IDs

20 views
Skip to first unread message

dmcg...@azavea.com

unread,
Aug 18, 2014, 3:18:56 PM8/18/14
to open-ci...@googlegroups.com
Hey all,

We're working on incorporating the OCD IDs into the Cicero API response and I've noticed an inconsistency in the IDs for British Columbia, compared to other provincial electoral districts. While most of the provincial electoral districts are indicated with a numerical value if available, which makes sense, that doesn't seem to be available for every province. In British Columbia, for example, electoral district identifiers are a three letter abbreviation of some sorts: https://github.com/opencivicdata/ocd-division-ids/blob/master/identifiers/country-ca/province-bc-electoral_districts.csv. However, in Saskatchewan, the entire electoral district name is the identifier. Is there a reason for this? I understand using the electoral district name if number is not available, but it seems to me the naming convention should be consistent.

Thanks,
Daniel

James McKinney

unread,
Aug 18, 2014, 3:50:40 PM8/18/14
to open-ci...@googlegroups.com
In Canada, we select IDs that (1) are publicly available (even if not easily discoverable) and (2) are least likely to change over time. Using names for identifiers is generally a bad idea in Canada since electoral district names are changed all the time. Just this year, Parliament changed about 10% of federal electoral district names. Note that in Canada, you can change a district’s name (and even its boundary) without formally abolishing the district - so the ID should be something that persists through name changes.

In BC, they don’t use numbers, but they do use three-letter codes. See here: http://www.elections.bc.ca/index.php/maps/electoral-maps/geographic-information-system-spatial-data-files-2012/ Their geospatial files do not contain any numerical codes, just the three letters.

Saskatchewan actually does have numeric codes, but they only appear in one dataset, which was previously annoying to work with. I’ll update the identifiers to use those numeric codes, as they are more future-proof.

As for other provinces, Quebec has non-consecutive numeric identifiers, which is strange, but they use those identifiers in lots of places, so we trust them. Manitoba and Newfoundland and Labrador simply don’t have any publicly available identifiers, so we use the names.

There is, sadly, no consistency across provinces, and our data reflects that. We aren’t in a position to impose consistency on the provinces.

Cheers,

James

dmcg...@azavea.com

unread,
Aug 22, 2014, 2:43:56 PM8/22/14
to open-ci...@googlegroups.com
James,

Thanks very much for the information about Canada. I'll check the BC GIS file to get the three letters.

Best,
Daniel
Reply all
Reply to author
Forward
0 new messages