We introduce new data resources to enable spatial and nonspatial research on Canadian elections, electoral history and political geography. These include a comprehensive set of distinct identification codes for every federal electoral district in Canada from 1867 to the present, a complete set of digital boundary files for these electoral districts, historical census data aggregated to federal electoral districts, and tools to connect our district identification codes to federal election results. After describing the construction and content of these new resources, we provide an example of their use in a comparative-historical analysis of district compactness in Canada and the United States. We find that, in contrast to the United States, postwar institutional changes to district boundary-drawing processes had little effect on district compactness in Canada.