View Full Version : Real world election maps with Inkscape

04-22-2009, 01:07 PM
Hello everyone,
I've been making some maps for various wikipedia articles concerning Canadian electoral districts and so on with Inkscape. I take a map of the area and trace out each riding with a polygon, then colour the polygon whatever colour. A bunch of them are shown here (http://commons.wikimedia.org/wiki/Category:SVG_maps_of_Alberta_provincial_electoral_ districts). I was hoping to be able to use inkscape scripts to automate this process more. Basically, I'd like the script to go through each polygon in the map and set it to the "active" colour, then save a copy of that map under a relevant name, then reset and do it for the next riding.
Ultimately, I'd like to be able to use such a script to colour in the map according to election results or other data (population etc), and be able to do it with large maps such as this one (File:Canada Fed election 2008 Ridings.svg).
Does anyone know where I could begin? I don't have any scripting experience...

Steel General
04-22-2009, 02:32 PM
First off... Welcome Aboard!

Not an Inkscape user, so can't help you with your question. Seems like a neat idea tho...

04-23-2009, 04:40 PM
My inkscape scripting skills are weak :(

You write inkscape extensions using python, so what you are asking for is very technically possible. You should post a request on the inkscape developer mailing list (https://lists.sourceforge.net/lists/listinfo/inkscape-devel), or in the inkscape forum (http://www.inkscapeforum.com/).

-Rob A>

04-30-2009, 06:30 PM
Thanks guys.