Pages

Total Pageviews

Showing posts with label Elections. Show all posts
Showing posts with label Elections. Show all posts

Friday, 3 March 2017

Malaysian Electoral Map Series

As Malaysia gears to GE14, we will be looking what are the key factors that are impacting voters' preference for the next elections. Watch this blog space grow with new maps over the coming months.

1) Plantation Scheme Issues


How does a plantation scheme across the country can have so much bearing on the next GE 14? Felda, world renowned program to raise the income of poor rural settlers, has been beset by lower commodity prices, financial mismanagement and questionable purchases.

If you look at the map above, Felda voters are largely located at the marginal seats of the ruling government. Assuming there is one-to-one fight between government and opposition, it only takes 22 seats to change the government of the day. With the introduction of GST in 2015, the effect kicked in on Felda Settlers. A good example was the Rompin By Elections of 2015. Comparing to 2013 and 2015 results of the same seat, ruling government winning margin substantially reduced.

With the fragmentation of the opposition (PR), the possibility of multi corner fight is high. Should that happen, Felda voters will be presented with multiple choices which allows the ruling government win the seat.

2) Challenging Existing Understanding the relation of Electoral Factors





Saturday, 30 April 2016

Mapping Elections - Malaysian Style

Recently, my map mind was reminded that I need to cover a hot topic coming up in Malaysia. On May 7th, Sarawak (the Land of Hornbills) - the biggest state in Malaysia is holding a state wide elections. Unlike other states, Sarawak does not conduct the state and parliamentary elections on the same time.

Credit : Cerevisae (Wikipedia)

Interestingly, the elections in Sarawak is happening amidst two big issues rocking Malaysia:

  1. 1MDB (State Investment Firm) Scandal - global level scandal - which has destabilized the ruling (BN) federal government (of which Sarawak State government is an appendage to ruling powers in Kuala Lumpur). The leadership of Prime Minister Najib Razak has been severely attacked by within his party and the opposition for the financial mismanagement of 1MDB. A solid victory in Sarawak would bolster his position in the party and the government
  2. New test for the reborn but fractious opposition coalition for a state wide election. While it is inconceivable that opposition (previously PR, now PH) will deny the ruling state government 2/3 majority, they made great headway in 2011 elections. However, with the popularity of current Chief Minister of Sarawak and infighting in the opposition, the image presented by opposition by the voters is dented.
This post is not about political analysis but how we can use map visualizations to gauge where the voters preference lay.  Presenting to you:

  1. Sarawak 2016 Election Analysis - Toggle between three map layers to understand correlation of population density, political tendencies, seat fights and effect of 2015 redelineation on the electoral outcome. Designed by Danesh Prakash Chacko  View the Larger Map
  2. Sarawak 2nd Round of Electoral Redelineation (2015) - Switch between layers to see the correlation of ethnicity, voting preferences and impact of redelineation on the electoral outcome. This map was designed when Election Commission was still proposing the 11 new seats and changes to the borders. Designed by Danesh Prakash Chacko View the Larger Map
  3. Sarawak Electoral Redelineation 2011 and 2015  - Slide and swipe the map to see how the electoral boundaries have changed and whether the jarring gap between voters values have been addressed. Designed by Tindak Malaysia View The Map
Credits for the Information needed to build the Map : Tindak Malaysia, Borneo Post. These maps exception of 3rd map do not reflect the views of the data providers Tindak Malaysia and Borneo Post.

Please let me know what other information should I put for the map - we need to see feasibility of adding new information. Enjoy!

    

Monday, 20 July 2015

My Foray into CartoDB

 One of the significant milestones of self learning this year was developing web maps using CartoDB.

My profile for CartoDB (https://daneshchacko.cartodb.com/maps)


I first learned about CartoDB through the Spatial Vision training (during the IMIA AP 2014 Conference). In this blog post, I will explore the ups and downs of using CartoDB for web map visualization

Why CartoDB? Up to 2015, the only online GIS platform I am accustomed with is ArcGIS Online. However, I would like to brush up my skills on new areas such as CartoDB. If you look at my profile above, I have developed around 6 maps for various topics .

If you want to design simple maps without much tweaking, CartoDB is easy tool to deploy web maps. They continuously improve the options for you to have for symbology or labelling. One thing that sets apart CartoDB and ArcGIS Online (from my personal experience) is the customization of the tools available in CartoDB.

If you have good programming and web design knowledge, you can exponentially enhance the experience of CartoDB maps. Let me give you a good example. Refer to this link: Sarawak Electoral Visualization

Example 1: Electoral Visualization

I was exploring myself on how to visualize electoral issues of the delimitation exercise in Malaysia. What started out as my personal hobby project, it evolved into a fully embedded map for my NGO's Homepage (http://www.tindakmalaysia.org/)

Referring to the link (Sarawak Electoral Visualization), basic tools of CartoDB weren't of much help. As I proposed CartoDB map to my NGO, they were happy to take onboard on the idea. However, my NGO has placed some expectations on the contents to be shown. After sourcing the datasets from my NGO, I was tasked to show the interrelationship between electoral seat category, representation value and its correspondence to local boundaries.

While it sounds simple, the basic tools of CartoDB could not meet the criteria of the symbology needed (i.e. the representation value or showing the symbol of administrative boundaries). I spent a significant amount of time to research html codes and examples of CartoDB to bring the source codes needed for the  visualization.

Subsequently, with close collaboration with my NGO, I spent additional time in writing out the correct terms for the legend and other necessities for the map to be understandable. Finally, I embedded the map of my NGO's website and customize the right size for the embedding. The default embedding option of CartoDB would result of compression of items in the layout.

Example 2: Time Based Visualization

Similar to ArcGIS Online, CartoDB has ventured into time based visualization (now with new enhancement). For only point based data, Torque (and Torque with category) allows the CartoDB users to visualize time based changes (which is becoming a big trend in maps). I previously designed on ArcGIS Online (and Mango Map) a static map of all the dam locations in Malaysia. It was built on intense research every possible freely available information back in 2013.

Referring to the link (Malaysian Dams), one of the big challenges I faced initially was the original dataset did not have proper timestamp needed for CartoDB. Preferably, in your shapefile or data file, the timestamp should have proper date or date-time format. I have created this dams dataset two years ago for static map and pop-up purposes.

The second challenge was the cleaning-up of classification. It was found through CartoDB upload there were duplicate classification values (i.e. Dams/Irrigation, Dams / Irrigation). I spent some amount of time in removing the duplicates in QGIS.

Since CartoDB torque visualization works for point based data (for the moment), I chose Torque with category to visualize the construction (opening date) history of 70+ Malaysian Dams and categorized them with the purposes. This allows the user to see where the dams are being constructed and see what types of dams are being related. I customized Torque category to show cumulative changes (as dams are rarely taken down). Choosing a suitable base map was another of challenge of its own as you want your content to be the Figure.

I did spend additional time to produce a understandable symbology for the dam purposes. I will be making further changes to make it more distinguishable. The rest was history. CartoDB Torque tool worked very well and now charting history of dams.

Conclusion

CartoDB has been a great tool with steep learning curve. My advice is before you embark on CartoDB maps, do consider your level of html experience and willingness to spend time, energy and (if necessary) money to develop the map. CartoDB email support is Great! They are swiftly respond to support enquiries.

Tell me your CartoDB experience...

Monday, 7 July 2014

Coordinate Story

Coordinates are The things that distinguish a map from a normal painting or standard graphic design. For map professionals or users, there are two coordinates we need to be aware: Geographic and Projected coordinates. Geographic refers to the coordinate system on 3D Earth (i.e. Ellipsoidal and Sphere based Earth) and projected coordinates are the coordinate system for 2D flat maps.

Hence, every map-maker needs to be careful which coordinate system to be used. Sometimes, we can get away with it because the difference is obscure in the maps. However, when it comes to accuracy, getting the coordinate system right is an utmost importance.

Section 1


After long day at work and preparing for a holiday, I went back home to relax and ready up for the trip. Then, I received a telephone call, all the way from Perth. It was professional question on coordinates and it was dealing with client data. This was the real deal. (Refer to Story of Mauritius for another example of freelance work)
Source: http://www.bothsidesofthetable.com/

Problem

The company has identified roughly 200 points on a linear road stretch. It just happened that the road has 6 lanes at maximum (3 lanes heading north, 3 lanes heading south). The 200 points were captured at particular intervals where each lane has 100 points. The company want to plot 200 points to indicate the approximate location of the 3rd lane (refer to map below). Hence, the problem is identifying the coordinates of 100 points representing the 3rd lane (Left and right). I was supplied with an Excel spreadsheet containing these 200 points.

Due to nature of this project, specific details of the location of work site will not be released. 


For Illustration purposes only. The client did not request for a map
As you can see, 4 lanes of the road has been surveyed (in darker colours). 200 points to be plotted are the lighter green and red circles.  The question is how can I find the location of 200 other points (referring to L3 and R3) ?

Solution

Anything revolving on coordinates I take it with care. I spend couple of hours finding and testing methods to find the coordinates. The rule is the 3rd point is 5 metres away perpendicular (left)  to L2 and 5 metres perpendicular (right) away from R2. In the end, I found a very simple solution.

Procedure:

1) It stems from the understanding of the width of each longitude. Assuming the surveyed locations were based on purely WGS 84 and accuracy is not of utmost importance, I found a website (Length Of A Degree Of Latitude And Longitude Calculator to calculate the length of longitude at a particular latitude. For your information, there is variation of width of longitude at different latitudes. From the coordinates that I was supplied of, I keyed in the degree in this website calculator to get my answer.

2) With this understanding above, I used Excel spreadsheet to calculate the approximate locations of L3 and R3 (refer to map above). It involved simple division and subtraction/addition

3) Now, plotting in ArcMap involved a bit of research. I embedded the Excel/ CSV spreadsheet into ArcMap. Then, I right clicked on the spreadsheet, and chose 'Display XY Data'. I mapped the coordinates in spreadsheet with right equivalent of X- and Y-axes.  Refer to Importing Excel data into ArcMap for further details. The work is done.

4) For final testing, I placed Open Street Map basemap to make sure the data is plotted correctly. The ultimate verification was done through Google Earth.

5) I converted the shapefiles of these coordinates into kml (Google Earth file) and uploaded the kml file to see the alignment. Google Earth verified the 200 additional points representing the third lane (both left and right) and they were correct in their positioning. The coordinate system I used was MGA94 (UTM system for the area).

The full name of coordinate system I used would not be released due to confidentiality of the data.

The end products were the Excel spreadsheet and .kml file as a proof.

Work Time: 4 hours (from receiving the data to submission of end products)

Contact me via the blog for further specifics and assistance/consultancy works related to mapping.

Section 2

As some of you would know, I am currently involved in massive GIS collaborative project on elections (Refer to Hiatus in Blog for details). I was in the process of creating 3 shapefiles related to election boundaries: Election precincts, State Constituencies and Federal Constituencies. For the moment, I used geographic coordinate system (WGS84) to draw the boundaries of electoral precincts and federal constituencies . 

When I came to State election borders, I chose Web Mercator as the coordinate system. Unknowingly, I spent 14 hours drawing state election borders using Web Mercator while drawing them on electoral precincts (as the base map). I did a check on QGIS which coordinate system I used for State boundaries. It turned out to be severe mismatch of coordinates between State and electoral precincts borders. I attempted to reproject State borders onto WGS84 and it disappeared elsewhere in the workspace. Hence, 14 hours of my work was wasted.

Coming to this realization, I am concerned with the coordinate systems I employed for Venezuelan Map Project. It involved multiple spatial datasets from different coordinate systems. The base map for reference uses Web Mercator. Have I aligned my lakes and river unknowingly onto Web Mercator?  Since the project is suspended at the moment, I need to spend time checking on this and work out a solution for this.

In short, as a map professional, I need to do careful planning in terms of coordinate system. Hours of work could go to waste if this planning is not done well.

Friday, 14 March 2014

Hiatus in the Blog


Courtesy: http://zenrevolution.files.wordpress.com/2012/07/silence.jpg

Wondering why the silence in my Blog? Yes, I would be taking break at the moment in updating the blog. I have lined two part series articles on Naming issues. So, what I have been up to

Venezuela Atlas Project

Draft of my Venezuelan A1 Size Map
If you scroll in the blog archive, I did mention about my big Venezuelan Map Project (http://daneshatlas.blogspot.com.au/2013/08/creating-a1-size-map-of-venezuela.html). I was assembling the datasets and started working on cleaning and updating them from June to October. Then, I suspended the project for three months for another project (mentioned below). On 1st February 2014, I officially resumed the project. The whole of February was devoted to complete the first round of dataset cleansing of every state in Venezuela (primarily road checking). On 1st March, the BIG MOMENT came! For the first time in my life, I am print out A1 size map (I was imagining the size while going to the print shop). With the draft map, I have begun the scrutiny of the map and scouting every possible error. This month would be devoted to add the cities and their population data across Venezuela. For other months, I haven't planned out the project scope. I hoping to conclude the project tentatively on 30th June 2014. Time is short

Tindak Malaysia Delimitation Project

My proposed Kedah map demonstrated in the Tindak Malaysia Forum
Part of the reason Venezuelan Atlas project was suspended is because I was involved in the Delimitation Project. Refer to http://daneshatlas.blogspot.com.au/2013/09/mapping-and-elections-part-2.html for details. I was involved in the project from July 2013 to February 2014 (where the forum is the culmination of Tindak Malaysia's Delimitation project). This NGO based in Malaysia created a network of volunteers of map-makers (hardly anyone came from cartography/geospatial background). After experimenting different softwares, we made a shift to non-GIS based softwares to speed-up the completion of national election mapping project. This project aims to redistrict the mal-apportioned electoral boundaries in Malaysia fairly. As the pressure grew to finish the project, me, being the lone GIS user was rushing through (in the wee hours of the morning) to complete Kedah map (the state I was allocated with). Two proposed maps were produced, matched the publication specifications and finally submitted in early February. Forum was held on 15-16th February, since then our maps (including mine) would have been viewed or questioned by many people at the forum or outside.

The purpose of these maps is to challenge potential Malaysian Election Commission (EC) Maps. It was rumoured that EC will start the drawing in March (no further updates since then). Meantime, this NGO and other election related in NGOs in Malaysia have been engaging the public to get involved in electoral redelineation project. Tindak Malaysia's approach conducted without on ground voter consultation. However, if EC were to do their maps soon, this NGO's maps could be used by the public to object them.

I am still involved with them and still advising them on GIS matters.

Basically, these two projects made my blog very quiet. So don't panic about the blog being abandoned. I hope I can release new articles towards the end of the month.

Wednesday, 25 September 2013

Mapping and Elections: Part 2

Mapping in Addressing Election Issues


Voter Registration Outreach Program
Since most countries around the world practice democracy and conduct elections, the success of elections is determined by the percentage of voter participation. The fate of the country and its future depends on voters and it takes sometimes a small number votes to change history. Voter participation fluctuate on election basis and could be strengthen if the election offices extend the registration of new voters. Depending on the country, local councils or states or federal government would be responsible in reaching out to new, unregistered voter. In order to create awareness, these institutions need to find ways to market the idea of registration in effective manner and GIS proves a decisive tool in this process.

Let's take an example, a council, south of San Francisco, (San Mateo) wanted an effective way of distributing resources in reaching out under-represented ethnic minorities in the area (targeting the Latino voters). The resources would be sending personnel familiar with Latino culture and voter materials that suit the needs of the community. The major question would be WHERE to send these resources. This is where GIS (or mapping in general) plays critical role.
GIS Voter Registration Process
Application of GIS in identifying potential voter registration program
In the case of this council, they asked the service of GIS company to produce maps for this program The company intersected the datasets (refer to diagram above) in the GIS. The polygon data of the datasets were adjusted according to election boundaries and with that, the population per election district were quantified. Moreover, the maps produced showed where voter registration was low and how it correlates to the percentage of Latino community per election district.

The outcome would be reduced time, energy and financial costs in finding areas of low Latino registered voters. Secondly, the council can organize effectively to distribute culturally trained personnel and relevant language pamphlets to potential voters. Hopefully, it would have translated increased registrations.

Election Redistricting
Depending on each country, election redistricting (boundary delimitation) is done to balance the population of election districts. Any manipulation of election redistricting will result in gerrymandering and malapportionment (unequal voting distribution across election districts). Redistricting impacts the future of political process of the country and the funding allocated to the election districts. Prior to GIS, election officials would have used paper-maps and it is time cumbersome process and may result in unfavourable boundary outcomes. With the advent of GIS, census data (critical information for redistricting) can be overlayed on other election boundary data easily.

On top of that, some political institutions and selected American States have started using GIS to show transparency in election redistricting. These proposed election districts are shown online for the public to review. In the case of America, the users can propose back to election office of new election districts while able to access other documents related to election redistricting. All in all, this would allow better decisions to create fair distribution of electoral areas:

Malaysian Election Problem
In the case of Malaysia, the boundary delimitation rules stipulated in the constitution is vague. This becomes more obvious when election districts should not be redistricted in such a way that impact rural areas or reaching to voters become difficult. The ratio of the largest constituency to smallest constituency in Malaysia range from 1-4 (only 3 out 13 states had ratio between 1-2). In Projek Tindak Malaysia research, Durack, federal election (Australia) seat is 4.8 times of Malaysia and 50 times bigger than the biggest electoral district in Malaysia. Using Malaysian logic, Durack MP in theory have extreme difficulty in reaching the voters. While this is true, today's technologies will narrow the distance gap. Moreover, using Malaysian logic, Durack should be split in many districts. Basically, Malaysia has gerrymandering and malapportionment problem. Since election redistricting is geographical problem, GIS plays an important role in addressing gerrymandering in Malaysia.  GIS can:
  • Identifying areas where election districts have too many voters and too little voters.
  • From this, we can zoom to election precinct level (in Malaysia called as daerah mengundi). At this level, election precints can be adjusted to the respective electoral areas with population thresholds. The GIS is able to overlay election boundaries and census data.
However, there are some challenges if voluntary election organization had to go through in any delimitation exercise
  • Volunteers recruited have different mapping standards
  • GIS data for election districts is hard to find or might be expensive for a voluntary project
  • Malaysian Election Commission (SPR) maps have different geographical clarity and quality, thus complicating the delimitation mapping exercise
  • Choosing the right software to draw the boundaries and subsequently display them for public viewer
Election Issue Awareness
Finally, maps are used by NGO groups or organizations to highlight and pinpoint issues pertaining to elections. Maps can piece complex data stories of elections into easy but powerful tools for election monitoring. For today's post, we'll take examples from Burma (Myanmar) and Malaysia

Burmese Election Tracker Home Page





Above website documented the election violations that happened in Burma. The homepage shows a Simple Burma Map using Open Street Map as the base map. The red proportional circles highlight the number of election violations per region. From the homepage, the user can go to election violation subcategory. The circles on the map changes to reflect the spatial distribution of the violations. Having said that, clicking on the circle only provide the number of violations of the city or area. Specific incidents to election violations are only found via the text links on the website.

For Malaysia, Sarawak Report with other media groups used MapBox (online mapping tool) to produce Election & Bribe Abuse Map of Malaysia.
Election Bribe & Abuse Map (Malaysia)

This online map, compared to other to Burmese one, is better (I would say) as the user can share the link on social media, tweet and contribute reports to build the map more complete. The pop-ups have contain personal account or news report of election violation with combination of photos, the ability to comment and share the story. However, not all pinpoints are at the correct location plus some pinpoints contain news without much geographical component (i.e. cities). Moreover, the base map is bit too dark and should consider using another map instead. All in all, this online mapping tool is very useful and could be dynamic during election time

Sticking back to Malaysian election 2013 issue, BERSIH 2.0 (Coalition of Free and Fair Elections)- broad based NGO fighting for election improvements- posted on its Facebook page of a simple map on how Election Commission (SPR) arbitrarily divided voters in different constituencies.
Kampung Abdullah Voter Registration Pattern (courtesy of Bersih 2.0)
Referring to this village, Kg Abdullah in Selangor (opened in 1940s) was arbitrarily divided into two constituencies. Referring to map above in detail, you can observe the division hardly make sense. During the People's tribunal on elections recently, this map was shown to demonstrate how families were 'divided' up when it came to voting in which constituency (in this case P140 and P141). The witness, Mr Ong Guan Sin said:

"The map shows how our village, Kg Abdullah, established more than six decades ago in the late 1940s, being divided arbitrarily by the Election Commission in 2003. We plotted each of the voters according to their registered address and the map is the result: each red dot is a voter of P140 Segamat, and each blue dot is a voter of P141 Sekijang.
......We have known for a while that some of the voters were transferred out from the original P140 Segamat constituency to the newly created P141 Sekijang. But little did we know that it was so arbitrary, so 'unnatural' that the division bears absolutely no consistent patterns or principles of any sort. Many households ended up with "divided family" - some family members vote in P140 while the rest vote in P141. "

The map alone itself received 117 likes and was shared 169 times.

In short, the above examples illustrate how maps are effective communicator of election discrepancies and elections. Maps are just mere tools for the wider change. With more and more free online mapping tools (such as free base maps of Google or software like MapBox) available, activists and NGO are being more literate in using maps to communicate their ideas.

Sources:

Tuesday, 10 September 2013

Mapping and Elections: Part 1

Recently, Australia concluded its general election. Likewise for any other country, any election is a turning point in country history and electorate is bombarded with analysis and statistics. In terms of analysis and statistics, we are presented through commentators exchange, numbers popping up on the television, table of results on papers and finally,MAPS. The most obvious use of maps for election purpose is to show the final/exit results of the elections. For the case of Malaysia : STAR (the main English daily) partnered with ESRI to create an interactive online GIS platform in displaying the results: http://elections.thestar.com.my/get13.aspx

Sample Section of STAR Interactive Election Map of Malaysia 2013
For the case of Australia, http://www.abc.net.au/news/federal-election-2013/map/ show greater insight on predictions, change of seats and the linkages to greater analytical tools.
Sample Section of ABC Interactive Election Map of Australia 2013

It's plus side, through full results link (refer above), ABC has visualized the changes in boundary demarcation for some electorates (i.e. Melbourne).

However, this post would not be focusing on the obvious application of mapping in elections. We'll be examining Mapping in Election Strategy and Mapping in Addressing Election Issues

Mapping in Election Strategy

          Australian Labor Party using Maps to 'scare' the voters on geographical
basis  if opposition takes control
The above map illustrate a simple, yet powerful mapping technique employed by election strategist to capture attention of potential voters. It hardly require much geographical data (but need more attribute data) to identify the geographical distribution of Liberal National Party Cuts. Through this approach, voters will know up and close of the cuts and how it will impact them directly (refer below). This in turn influence the voters mind (but for this election, GIS didn't give much needed boost for dying Labor Party)
 Examining Liberals's Planned Cuts and Labor's Planned Policies for
Melbourne (3000)
From this tool, we can conclude GIS or mapping in general is quietly being used by election strategists. Since most of world's data has a geographical component, in terms of elections, this would mean understanding geographical distribution of voters and their characteristics. Here are some data would be used by election strategists:

  1. A base map (let say a Google map or traditional GIS map)
  2. Census boundaries for the area
  3. Voter characteristic (e.g. gender, income, age)
  4. Political or economic maps (if needed)
 What the GIS does with these datasets above is it can integrate these geographic information and analyze voters' patterns and behavior. A lot of these datesets above could be sourced in government databases (depending on country's spatial policy) which in turn can be tapped by existing or upcoming politicians. On top of that, election campaigners source other data about the voters and issues through phone calls, sms and emails. In GIS, all these are mapped out and spatial distribution of behavior is displayed in good maps.
Election Strategy
How GIS might be used for election strategy
The above diagram shows the summary of application of GIS in election strategy. In terms of planning, GIS is wonderful resource where to distribute energy, time, money and volunteers to hit the voters. Using the map, politicians know where the target audience are. On top of that, when volunteers hit the streets, with the GPS on mobile devices, campaign managers can track the progress and see what other areas to progress further. If time is on the side of politicians, campaign strategists can use GIS to do predictions and use these data for coming elections.

In Summary, I have discussed two areas where GIS is used for election strategy. One is used to create scare campaign of the opponents and another on how to reach to the voters. Most of us just do not know whether this spatial technology gets applied in elections. The second part of the discussion would be on mapping/GIS and Addressing Election Issues.

Sources