A blog about things that interest me, politics, news, media, architecture, development, environment, local history, secularism, web, dublin ireland, tara

Contact me at expectationlost@gmail.com
Showing posts with label constituencies. Show all posts
Showing posts with label constituencies. Show all posts

Tuesday, 1 February 2011

Dail Constituency Boundaries for Election 2011

Anyone coming to my blog looking for Dail constituencies, I don't have em.

The official Constituency Commission has images and detailed reports on the boundaries and changes.

Go here for the 2012 boundaries in google-kml http://www.tallyroom.com.au/maps (free if credited to Ben Raue ) or here for more detailed ones with Electoral (sub) Divisions http://icampaigned.com/blog/dail-constituency-maps/ (not free) or go Ordnance Survey Ireland for commercial use files.



Shapefiles from the CSO

Thursday, 16 September 2010

Irish openheatmaps

There many ways to make thematic maps openheatmap just made it even easier, as Pete Warden says he wants to make the "YouTube for maps", its been available since July.

I prodded him into adding up Irish geo-political boundaries Choropleth maps templates.

I searched for Irish boundaries and thanks to by Ben Raue for the KML 2007 constituencies, Councils from the CSO (councils to be added to openheatmap soon) and Counties (KML).

Its a JQuery plugin using either Flash or HTML5’s Canvas overlayed on openstreetmap. Its open source and free to copy and run the most of the setup off your own site.

For Ireland use these as the name columns...

ire_constituency (2010 redrawn constituencies)
ire_constituency_2007
ire_constituency_2007_code
ire_constituency_code
ire_county
ire_county_code

Councils to come...

and then the value column.
or tab_FF, tab_FG etc. for the each map tab.

You can use .csv,(comma separated files), saved from your spreadsheet program or load them from a public a Google Docs spreadsheet.

Upload your map, it will make your aware of any problems, and once you have those fixed, you can preview the map and changed the colours and range settings for you data and then share the link to the map or copy the embed code for your own site.

Pete Warden has made a helpful video to explain it all. The full detailed documentation is here with the source at github/openheatmap

I saw this UK election results tabbed maps example and I used Openheatmap to make an Irish version.

I used the 2007 Election results summary (pdf). You'll find more election results to try at environ.ie Typically for the Irish government it comes in messed up tables in pdf instead of a spreadsheet file. Google Doc version

Time by heat maps has been available from the site, by adding a time column, and you can use an address column to automatically place addresses on heatmap, these have been available for a while but its hard to find good data to use for Ireland, geocoding still presumes addresses are in American so I suggest using Batchgeo, which you can restrict results to Ireland and review and correct and hand place some of the erroneous results. Most info is done by constituency, county or council so this should make it easier to to find data to apply. Animated time by heat map example

Lisbon Openheatmap
Lisbon results google doc
Lisbon II 2009 results

Saturday, 27 February 2010

Irish Dail TDs, members of Ireland's parliament information exhibited, mapped, charted, listed and editable.

This screen shot shows how I have used Simile Exhibit Widget to display Ireland's 166 Dáil TD's, members of Ireland's parliament, information exhibited, mapped, charted, listed and editable.Using information I gathered on this google spreadsheet and having geo-coded their constituency_offices_address' and used that constituency spreadsheet as basis to show information about them on a map of Ireland on top of polygons of Dáil constituencies.

Made with Exhibit from MIT which...

Exhibit enables you to create html pages with dynamic exhibits of data collections without resorting to complex database and server-side technologies. The collections can be searched and browsed using faceted browsing. Assorted views are provided including Timelines, tiles, maps, and more.

I have been very impressed with MIT exhibit, there is a whole suite of systems for displaying large amounts of data simply and lightly. Though its a fair few years old and isn't being updated any more I wasn't sure whether it was worth pursuing and using to create my Irish Politics displays but I haven't seem anything as impressive and easy to adapt for a copy and paste coder like me. Looking around for visualisations, faceted search (which is usually associated with semantic web) and mapping systems, I haven't seen any better. The original creator of Exhibit David Huynh has gone on to work on freebase which hopes to automatically gather and similarly display data,(mainly from wikipedia). Try Dipty for timelines by themselves also. It helps to be able to run it off MIT servers, running it all of your system takes a little bit of changing of calls within the scripts.

Still to do
I need to reduce the heaviness of the page, by removing script from the main html page and putting it in includes, and seeing how to reduce calls by putting the whole system on my host rather then calling to the MIT.

Corrections, for instance do you know where in the town the constituency office is?, go to maps.google.com centre over it then take the latitude and longitude from the link, double check by pasting those coorindates back into the google maps search and then change in the TD spreadsheet and leave a comment on the cell too.

Im looking for medium detail file of polygon data of Dáil Constituencies. In KML or geojson format. I have just gotten an Irish counties KML and traced the maps available with the difference between the counties and constituencies. The .json files is only 1.5mb with each of the 42 constituencies polygon being around a 1000 coordinates, but this is too much and causes a slow script warning in IE.

You can use exhibit with in a semantic mediawiki install, or simpler table wibbit version. You can embed exhibit and timelines in wordpress using Datapress or Drupal once you converted some data to static json file. .json file example with Babel.

The best part of Exhibit is using faceted sidebar menus to display lots of categories of data and combinations of data. And being able to call that from google spreadsheets which you can leave open for editing and correction.

You can pick out any element or facet of the info from the list on the left, click on map or sliders, deselect it by un-checking on the sidebar list or use your browser's back button. You click on any icon to get an info bubble on that TD. You can zoom into the map by clicking on the constituencies map on the right or turn off the constituency polygons below, you can click any of the panels at the top to show, charts and voting maps, look at list of information on the TDs or see all the data on them.

I have made panels showing

Irish TDs • Dublin • Percent Vote • Expenses vs. Votes • Parties • FF TDs • FG TDs • Labour TDs • GP TDs • SF TDs • Ind TDs • Constituencies • Votes • expenses • Donations • Donors • Elections • Travel Details • TD Details • Contact • Position • All Data
which you can combine with the sliders
Terms - Age - Distance from Dail - Percent Vote - Gender

can you think of any more ways to display the data?

Exhibit
MIT Exhibit
I modified the Presidents Births and Death example of which you can see it's simple JSON file. You can use MIT's Babel to convert your data to JSON or XML (create live XML with editgrid.com) or any exhibit friendly form.

I rearranged my information into this google doc file with {labels} so that the Exhibit script can read it as JSON. How to make an exhibit from data fed directly from a Google Spreadsheet You copy code from the examples and Exhibit wiki and add panels that are coded like this

 ex:role="exhibit-view"   id="map1"  ex:collectionID="bothcollection2"  
   ex:viewClass="Exhibit.MapView"
   ex:label="Irish TDs"
   ex:eventlabel=".td"
   ex:size="large"
   ex:zoom="7"
   ex:mapHeight="600"
   ex:center="53.45,-8.0"
   ex:overviewControl="true"
   ex:showSummary="true"
   ex:latlng=".latlng"
   ex:polygon=".constpoly"
   ex:pin="false"
   ex:borderOpacity="1.0"
   ex:borderWidth="1"
   ex:borderColor="purple"
   ex:opacity="0.0"
   ex:showToolbox="false"
   ex:icon=".imageURL"
    
   
...calling the named columns from the google spreadsheets.

Description of how I made the government travel exhibit.

I have used more of the Exhibit extensions, with more maps, bar charts, scatter plots, polygons, and more sliders, gradients and icons,.. copying these example exhibits

and after a lot of searching through the simile mailing list.

Information
I have geo-coded the constituency_offices_address' of the 166 TDs and used that as basis to show information about them on map of Ireland with polygons of constituencies.

Polygons
Adding polygons was major extension from my previous exhibit you can use this version exhibit babel to help you convert kml and other formats to geojson. I adapted the creator David Huynh's election 2008 example and polylines example.
The coder behind werelate.org has created some extensions exhibit pedi maps to make connection icons on the map.

Timelines
I've created a time line of when the currents TDs were first elected. The time line extension is part of its own Simile timeline system which can get more info on how to use on its wiki. Although its not easy to show the times TDs didn't get elected and then returned a following election. (to stop and start the timeline on the same line with the same person). So for the moment it does not show that and goes straight first election to most recent.

Collections and Types
I had to change to having multiple collections in this exhibit to call the types and collections 166 TDS in one spreadsheet and 42 constituency polygons and associated info in another spreadsheet. Thankfully David Huynh provided the code to call from one the other or both collections in the mailing list. I'm not sure if can write code to add a third one (partys).

The Data
Google doc JSON TD editable spreadsheet.
Google doc JSON Constituency editable spreadsheet.
Google doc JSON Party editable spreadsheet.

Sources Constituency Profiles
TDs info from Oireachtas.ie
Wikipedia
electionsireland
Oireacthas.ie 2007 Results
SIPO
The Story

20 TDs example of information

Information categories most of which you can select in any combination.

json categoryexplanation
{label}don't edit
{td}don't edit
{person}person
{type}type
{constituencyofficeaddress}constituency office address
{street}street
{city}city
{county}county
{co}county code
{party}party
{tdconstituency}td constituency
{donations}donations
{seat}seat
{electorate}electorate
{validvote}validvote
{firstprefvotes}firstprefvotes
{percentcalcvote}percentcalcvote
{percentvote}percentvote
{partyvote}partyvote
{expenses}expenses
{party}party
{donorlatlng}donorlatlng
{labourlatlng}if you replace latlng replace this
{fflatlng}if you replace latlng replace this
{fglatlng}if you replace latlng replace this
{gplatlng}if you replace latlng replace this
{sflatlng}if you replace latlng replace this
{indlatlng}if you replace latlng replace this
{distance}distance
{lat}if you replace latlng replace this
{lng}if you replace latlng replace this
{latlng}constituency office coorindate approx
{LHlatlng}Leinster House latlng
{distanceC}distance from leinster house
{constlatlng}center of constituency
{zoom}zoom to constituency
{nicestartdate}nicestartdate first elected
{start}start first elected
{election}year election
{latestStart}latestStart
{earliestEnd}earliestEnd
{now}now
{terms}terms
{yearsofservice}yearsofservice
{event}event
{constphone}constphone
{end}end
{imageURL}imageURL
{partywebsite}party website
{email}email
{website}personal website
{electiontype}election type
{istd}istd
{wikiurl}wikiurl
{age}age
{gender}gender
{gov}gov
{position}position
{spokepersonissue}spokepers on issue
{committee}committee

Constituencies

json categoryexplanation
{id}don't edit
{label}don't edit
{type}don't edit
{seats}seats
{population2006}population2006
{electorate}electorate
{validvote}validvote
{partyvote}partyvote
{opac}opac
{labour-vote}labour-vote
{ff-vote}ff-vote
{fg-vote}fg-vote
{sf-vote}sf-vote
{gp-vote}gp-vote
{pd-vote}pd-vote
{ind-vote}ind-vote
{tdsofc}tds of consituency
{constlat}constlat
{constlng}constlng
{constlatlng}constlatlng
{area}area
{ctagrade}ctagrade
{ctaaallowance}ctaaallowance
{zoom}zoom
{election}election
{wikiURL}wikiURL
{lastelectiontype}lastelectiontype
{constituency2}constituency2
{constituencyprofile}constituencyprofile
{vote-for}vote-for
{vote-forts}vote-forts

Parties
Number of TDs
Vote percentage by party
party vote
party
swing
logoURL
tds of party
party url
partywikiURL

To do Make a CSS highlighting image map
Automatically geocode the donors for each TD
Search doesn't work
make it easier to edit, ie. add wiki backend

Monday, 11 May 2009

Irish European Election Constituencies Map

European Elections Constituency commission report on European Elections Constituencies (2007-9, PDF).

Google Earth Kmz version
Google map browser version

Version with Candidates Names Placed
Google Earth
GM Browser

Not perfect but use and see what you can do with it. You can use a program like Ge-Graph to add 3d graphs or colour gradients with stats etc.

Irelands Elected MEPs

East
Liam Aylward MEP (FF)
Mairéad McGuinness MEP (FG)
Nessa Childers (LAB)

NorthWest
Jim Higgins MEP (FG)
Marian Harkin MEP (IND)
Pat 'The Cope' Gallagher (FF)

South
Senator Alan Kelly (LAB)
Seán Kelly (FG)
Brian Crowley MEP (FF)

Dublin
Gay Mitchell MEP (FG)
Joe Higgins (SP)
Proinsias De Rossa MEP (Lab)

Full Candidate list

Dublin (10 candidates: 2 FF, 1 FG, 1 LAB, 1 GP, 1 SF, 1 SP, 1 LIB, 2 IND)

Cllr Eibhlin Byrne (FF)
Senator Deirdre De Burca (GP)
Proinsias De Rossa MEP (Lab)
Joe Higgins (SP)
Mary Lou McDonald MEP (SF)
Patricia McKenna (IND)
Gay Mitchell MEP (FG)
Eoin Ryan MEP (FF)
Caroline Simmons (LIB)
Emmanuel Sweeney (IND)

East (11 candidates: 2 FF, 2 FG, 2 SF, 1 LAB, 1 LIB, 3 IND)

Liam Aylward MEP (FF)
Thomas Byrne TD (FF)
Nessa Childers (LAB)
Kathleen Funchion (SF)
Paddy Garvey (IND)
Micheál E Grealy (IND)
Mairéad McGuinness MEP (FG)
Raymond O'Malley (LIB)
Senator John Paul Phelan (FG)
Tomás Sharkey (SF)
Jim Tallon (IND)

North West (13 candidates: 2 FF, 2 FG, 1 LAB, 1 SF, 1 LIB, 6 IND)

Pat 'The Cope' Gallagher (FF)
Paschal Mooney (FF)
Jim Higgins MEP (FG)
Senator Joe O'Reilly (FG)
Susan O'Keefe (LAB)
Declan Ganley (LIB)
Marian Harkin MEP (IND)
Cllr Pádraig Mac Lochlainn (SF)
Fiachra Ó Luain (IND)
Michael McNamara (IND)
Noel McCullough (IND)
Thomas King (IND)
John Francis Higgins (IND)

South (10 Candidates - 2 FF, 2 FG, 1 LAB, 1 GP, 1 SF, 3 IND)

Brian Crowley MEP (FF)
Ned O'Keeffe TD (FF)
Colm Burke MEP (FG)
Seán Kelly (FG)
Senator Alan Kelly (LAB)
Senator Dan Boyle (GP)
Cllr Toiréasa Ferris (SF)
Maurice Sexton (IND)
Kathy Sinnott MEP (IND)
Alexander Stafford (IND)

Irish Times candidate details
RTE candidate details
General EU links
electionsireland.org
politics.ie
europeanelections
micanddiate profiles
euobserver.com
euprofiler.eu
candidatewatch.ie
www.votematch.eu

Thursday, 12 June 2008

Lisbon referendum results 3d map

Trying to see if its worth putting this in 3d and how best to visualize the votes. At the moment it hard to see the difference in yes and no. ETA June 13th. I've gotten the results for Lisbon treaty and added them to many eyes that I described in my previous post. Lisbon Treaty 2008 Visualisations

With the help of sgrillo's GE-Graph

The google earth in browser API is quite heavy so lets try another new thing from google, static maps. With the help of Peel me a grape coder blog

Nahh that work either starting map as ordinary sat view with earth browser option.

Updated with Lisbon 2008 referendum results: NO % constituency.

If you don't see any 3d maps you need a quick download and read of requirements of the google earth in browser plug-inDirect download

Updated with Lisbon 2008 referendum results: Yes % by constituency.

Results from Referendum Commission.
electionsireland.org

Compare with displays of results by rte.ie
ireland.com.

What I like about google maps is that you can it use to produce 2d maps of good quality and variation too. No need to redo in flash.