Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time
Finally, I'm open-sourcing my Canadian elections scripts! I first wrote them in 2009, months following my involvement with CBC/Radio-Canada on the television coverage of the 40th general election in Fall 2008.

The project uses geographic data in Shapefile format from GeoGratis ( I used postgis utility shp2pgsql to convert them for my database.

I mainly use libkml (, which has since 2010 been included in Ubuntu, my platform of choice for development. is the main file to generate KML files and was rewritten in summer 2011. is a library of common functions.

I provide the data too, even if you can get it elsewhere, except for the converted Shapefiles (too big for GitHub). There are SQL dumps (schema only) that create the tables needed. I formatted the results data too, which may be time-consuming otherwise.

You must also create a new column for the geometries called "the_geom_nowater" that is created by intersecting a cartographic version of the federal electoral districts (try googling it, it's on some govt website).

kmlbig.txt are IDs of ridings that must be generated with the water, because the watershores would make the files too big. kmlnormal.txt are the rest.

My personal blog contains information about the project:

My portfolio:

I now reside in Hong Kong, where I work on data journalism projects relating to Chinese social media, at the Journalism and Media Studies Centre, University of Hong Kong:

(And I'm a masters student in Interaction Design at the School of Design, HK Polytechnic University! One of our projects:

E-mail me for professional advice:


My Canadian elections data visualisation project






No releases published


No packages published