<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Volunteered Geographic Information &#187; london datastore</title>
	<atom:link href="http://danieljlewis.org/tag/london-datastore/feed/" rel="self" type="application/rss+xml" />
	<link>http://danieljlewis.org</link>
	<description>A Geography/GIS blog by Daniel J Lewis</description>
	<lastBuildDate>Tue, 20 Dec 2011 17:15:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha-20124</generator>
		<item>
		<title>London 2001 Cartogram Visualisation in Processing</title>
		<link>http://danieljlewis.org/2010/02/26/200/</link>
		<comments>http://danieljlewis.org/2010/02/26/200/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 18:10:13 +0000</pubDate>
		<dc:creator>Daniel Lewis</dc:creator>
				<category><![CDATA[Representation]]></category>
		<category><![CDATA[2001 population]]></category>
		<category><![CDATA[cartogram]]></category>
		<category><![CDATA[london datastore]]></category>
		<category><![CDATA[processing]]></category>
		<category><![CDATA[tweening]]></category>

		<guid isPermaLink="false">http://danieljlewis.org/2010/02/26/200/</guid>
		<description><![CDATA[Recently I&#8217;ve been messing around with processing as a way of visualising cartograms dynamically. The link below is a fairly striped down &#8216;sketch&#8217; that shows the geographic representation of London Boroughs morphing to a cartogram representation. Thus cartogram describes a situation in which each London Borough&#8217;s area is represented not by its physical land area, [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fdanieljlewis.org%2F2010%2F02%2F26%2F200%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdanieljlewis.org%2F2010%2F02%2F26%2F200%2F&amp;source=gisdjl&amp;style=normal&amp;service=bit.ly&amp;service_api=gisdjl%3AR_cbf864f1d7672c90a5d0e63770588605&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Recently I&#8217;ve been messing around with <a title="Processing" href="http://processing.org/" target="_blank">processing</a> as a way of visualising cartograms dynamically. The link below is a fairly striped down &#8216;sketch&#8217; that shows the geographic representation of London Boroughs morphing to a cartogram representation. Thus cartogram describes a situation in which each London Borough&#8217;s area is represented not by its physical land area, but by its relative 2001 population size.</p>
<div id="attachment_236" class="wp-caption aligncenter" style="width: 525px"><a href="http://splintmap.geog.ucl.ac.uk/~dan/2001carto/"><img class="size-full wp-image-236" title="cartoPicture" src="http://danieljlewis.org/files/2010/02/cartoPicture.png" alt="" width="515" height="466" /></a><p class="wp-caption-text">Cartogram for London 2001 Census Population</p></div>
<p style="text-align: left">If you click the above image you will be linked to a page which contains the Processing Java applet. The only interaction I&#8217;ve employed is the mouseclick, which resets the animation, allowing you to watch it morph again and again, and really get a sense of how many people are crammed into inner London. (NB You will need Java installed).</p>
<p>Actually making this animation was surprisingly simple. The Cartogram is pre-rendered using the ArcGIS cartogram extension, and the coordinates for the cartogram and the original London Shapefile are exported and read into Processing as an array. The array is visualised using Processing&#8217;s built in &#8216;Shape&#8217; class, so you simply position your list of vertices between a &#8216;beginShape()&#8217; and &#8216;endShape()&#8217; tag and Processing draws the rest for you. Naturally, some manipulation is required &#8211; the British National Grid (BNG) coordinates need to be converted to screen coordinates, to do this I&#8217;ve used Processing&#8217;s built in &#8216;map()&#8217; function.</p>
<p>The &#8216;morphing&#8217; process that takes place is actually called &#8216;tweening&#8217;, which stands for &#8216;inbetweening&#8217; &#8211; essentially this means rendering a smooth transition between known points. In order to effect this I used the &#8216;<a title="Megamu ShapeTween" href="http://www.megamu.com/processing/shapetween/" target="_blank">megamu.shapetween</a>&#8216; library for processing which is very good, their website is worth checking if only for the <a title="Penner Chapter 7 - Tweening" href="http://www.robertpenner.com/easing/penner_chapter7_tweening.pdf" target="_blank">ancillary resources</a> they have included. Integrating this library is very simple, as is the entirety of the code, if you click on the image and then on the source code link you&#8217;ll be able to view it.</p>
<p>I&#8217;m hoping to be able to integrate more of the population data into the visualisation and make a dynamic visualisation across a number of years. The data is freely available from the<a title="London Data Store" href="http://data.london.gov.uk/" target="_blank"> london.data.gov</a> site, the geographical data is not unfortunately and is a simplified version of the boundaries available from <a title="UKBorders" href="http://www.edina.ac.uk/ukborders" target="_blank">UKborders</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://danieljlewis.org/2010/02/26/200/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

