<?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; processing</title>
	<atom:link href="http://danieljlewis.org/tag/processing/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</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>London Population Cartograms in Processing</title>
		<link>http://danieljlewis.org/2010/03/16/london-population-cartograms-in-processing/</link>
		<comments>http://danieljlewis.org/2010/03/16/london-population-cartograms-in-processing/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 13:08:01 +0000</pubDate>
		<dc:creator>Daniel Lewis</dc:creator>
				<category><![CDATA[Modeling]]></category>
		<category><![CDATA[Representation]]></category>
		<category><![CDATA[cartogram]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[dynamic]]></category>
		<category><![CDATA[london]]></category>
		<category><![CDATA[population]]></category>
		<category><![CDATA[processing]]></category>
		<category><![CDATA[tweening]]></category>

		<guid isPermaLink="false">http://danieljlewis.org/?p=270</guid>
		<description><![CDATA[As I mentioned in a previous post, I was looking to link up the London Population data made easily available by the London Datastore with some sort of dynamic cartogram representation. I&#8217;ve now done that if you click on the picture below. It&#8217;s a fairly rudimentary little applet, but I think it tells an interesting [...]]]></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%2F03%2F16%2Flondon-population-cartograms-in-processing%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdanieljlewis.org%2F2010%2F03%2F16%2Flondon-population-cartograms-in-processing%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>As I mentioned in a previous post, I was looking to link up the London Population data made easily available by the <a title="London Data Store" href="http://data.london.gov.uk/" target="_blank">London Datastore</a> with some sort of dynamic cartogram representation. I&#8217;ve now done that if you click on the picture below. It&#8217;s a fairly rudimentary little applet, but I think it tells an interesting story.</p>
<p style="text-align: center"><a href="http://splintmap.geog.ucl.ac.uk/~dan/AllCartos/"><img class="aligncenter size-full wp-image-271" title="CartogramProcessing" src="http://danieljlewis.org/files/2010/03/CartogramProcessing.png" alt="" width="496" height="491" /></a></p>
<p style="text-align: left">The slider bar at the bottom allows you to move between the London Geography (the first position) and the cartogram of any year by clicking between them, the years you have chosen and the direction of transition are represented by the text on the right. You can replay any transition by clicking on London. Clicking on the play button slowly cycles through all cartograms.</p>
<p style="text-align: left">The initial state shows that from 1801 &#8211; 1851 the relative popualtion change in London was very minor, there was some expansion of the inner London boroughs, with the City getting proportionally smaller as a result, but generally London is best seen as what we now think of as the City of London. This trend increases with growing pace during the Victorian period which sees much more impressive growth of the Inner London boroughs up until WWI. From WWI until the 1939 census, the focus of London&#8217;s growth seems to shift to suburbanisation, and although fairly even at first, by 1939/1951 there is a clear preference for west London which diminishes the size of east London and shifts the position of the city to the east as a result. Perhaps this is due to the destruction of vast parts of East London during the blitz. From 1981 to 1991 it is clear the process of suburbanisation is slowing and the trend for growth in west London is diminished in favour of a small realtive growth in population in East London, and a slight general movement towards a recentralisation of population in inner London.</p>
<p style="text-align: left">I think this is an interesting application of data, although I am slightly skeptical about linking cartograms in this way. The cartograms themselves are proportional to themselves, but not proportional across the whole timescale. If this were true then London would grow from a small image, representing a small total popualtion, to a much larger one by the 20th century as it becomes a global city with a large population. However, by holding the size temporally constant, the actual compositional changes of the different London Authorities do seem to show interesting and expected patterns.</p>
<p style="text-align: left">If anyone is interested you can see the code, which is messy, by clicking source on the applet page, I haven&#8217;t really commented it, but am happy to discuss if anyone wants to.</p>
<p style="text-align: left">NB: The applet will run at a speed that depends on your CPU, essentially it is trying to juggle loads of numbers which are then displayed in the applet window, the slower the CPU the longer it takes to handle the numbers, there doesn&#8217;t seem to be a way arouind this. Sorry if it is slow.</p>
]]></content:encoded>
			<wfw:commentRss>http://danieljlewis.org/2010/03/16/london-population-cartograms-in-processing/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<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>

