<?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; Maps</title>
	<atom:link href="http://danieljlewis.org/tag/maps/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>Finnish Municipalities: A case for zone design?</title>
		<link>http://danieljlewis.org/2010/11/30/finnish-municipalities-a-case-for-zone-design/</link>
		<comments>http://danieljlewis.org/2010/11/30/finnish-municipalities-a-case-for-zone-design/#comments</comments>
		<pubDate>Tue, 30 Nov 2010 20:05:39 +0000</pubDate>
		<dc:creator>Daniel Lewis</dc:creator>
				<category><![CDATA[Geography]]></category>
		<category><![CDATA[GIS]]></category>
		<category><![CDATA[Modeling]]></category>
		<category><![CDATA[algorithm]]></category>
		<category><![CDATA[finland]]></category>
		<category><![CDATA[Maps]]></category>
		<category><![CDATA[municipal]]></category>
		<category><![CDATA[pysal]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[zone design]]></category>

		<guid isPermaLink="false">http://danieljlewis.org.blogs.splintdev.geog.ucl.ac.uk/?p=438</guid>
		<description><![CDATA[In Finland, municipalities are incredibly powerful; like local authorities in the UK, municipalities are responsible for local administration, but they also levy an income tax and are responsible for providing most public services. Municipalities were founded on the assumption of equality, which forms the basis for the reform considerations currently ongoing in the Finnish government. [...]]]></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%2F11%2F30%2Ffinnish-municipalities-a-case-for-zone-design%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdanieljlewis.org%2F2010%2F11%2F30%2Ffinnish-municipalities-a-case-for-zone-design%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>In Finland, municipalities are incredibly powerful; like local authorities in the UK, municipalities are responsible for local administration, but they also levy an income tax and are responsible for providing most public services. Municipalities were founded on the assumption of equality, which forms the basis for the reform considerations currently ongoing in the Finnish government. The fact is, municipalities simply aren&#8217;t equal, they vary wildly in population size and area; numbering 342 they are of rough numerical equivalence to UK local authorities, despite Finland itself having around 1/11th of the UK&#8217;s population. The population skew is greatly emphasised by the presence of cities such as Helsinki which cross municipal boundaries, and more remote municipalities whose geographical extent was set out by horse-and-cart distance. It is therefore understandable that the Finnish government would be interested in the possibility of mergers to reduce the number of municipalities, and create a system in which muncipalities serve a similar number, or at least a threshold, population. It is believed that this would make administration more efficient, as services can be centralised to a greater degree, and small municipalities which already share services can formalise this.</p>
<p>Some mergers have already taken place, and there are governmental incentives for merging. However, with the specified model that municalities should be reformed such that they have a base population of 20-30,000 people, from the Association of Finnish Local and Regional Authorities (<em>Kuntaliitto</em>), we can apply automated zone design scenarios to test the &#8216;what if&#8217; aspect of creating a new Finnish municipal system based on preserving different characteristics.</p>
<p>The zone design tool that I use to test a few basic scenarios is the regionalization library in pySAL, a spatial analysis module for Python. This implements the max-P algorithm for spatially contrained clustering subject to a similarity matrix, and a threshold value. I specified the research design so that I was testing for the optimal new aggregation of the pre-existing muncipalities and tested 3 different scenarios: 1) No similarity measure (all municipalities assumed equal, but for population) 2) Similarity based on municipal tax regime, and 3) Similarity based upon municipal tax regime and % non-finnish speakers, which accounts culturally for the Sami people of Lapland and ethnically Swedish Finns.</p>
<p>The regionalisation requires that you create a contiguity matrix for the zones, I arbitrarily chose the queen case, and added bespoke contiguity for Finnish islands based upon proximity, this is easy to do in GeoDa and it outputs a .gal file which you can read into python. Then all you really need to do is the following:</p>
<pre>import pysal
import numpy as np #required as pysal uses numpy arrays

#Read in your population and similarity data in some way,
#I tend to create a python list from a csv.

#convert the population and similarity data into
#numpy arrays, from lists called pop and sim
pop = np.asarray(pop)
sim = np.asarray(sim)

# Read in your precomputed Weights matrix
w = pysal.open("...\\QueenWeights.gal").read()

# Create an (optional) array of 1s to represent equality
# (replace sim in Maxp function call)
nosim = np.ones((342,1))

# Run solutions for maxp algorithms with specific parameters
r= pysal.Maxp(w,sim,floor = 20000,floor_variable = pop,initial=100)

# Write r.regions to outfile to get regional assignments,
#this can be joined to shp in ArcGIS.
</pre>
<p>The maxP algorithm works by first randomly creating a set of possible zoning configurations, then it chooses the current optimum and seeks to refine it using a computationally expensive zone-swapping method. Optimality in this case is defined by minimising dissimilarity whilst obeying the threshold population constraint. The <a title="pySAL Documentation" href="http://www.pysal.org/users/tutorials/region.html" target="_blank">API reference</a> for regionalisation in pysal is very good.</p>
<p>Here are some of the results I produced for this basic approach:</p>
<div id="attachment_453" class="wp-caption aligncenter" style="width: 271px"><a href="http://danieljlewis.org/files/2010/11/NoH20000.png"><img class="size-large wp-image-453 " src="http://danieljlewis.org/files/2010/11/NoH20000-725x1024.png" alt="" width="261" height="368" /></a><p class="wp-caption-text">Zone Design - Pop &gt; 20,000 with assumption of Municipal Equality</p></div>
<div id="attachment_454" class="wp-caption aligncenter" style="width: 271px"><a href="http://danieljlewis.org/files/2010/11/TaxLang20000.png"><img class="size-large wp-image-454 " src="http://danieljlewis.org/files/2010/11/TaxLang20000-725x1024.png" alt="" width="261" height="368" /></a><p class="wp-caption-text">Zone Design - Pop &gt; 20,000 with similarity of tax regime and language</p></div>
<p>Unlike some of the more advanced zone-design algorithms, pySAL doesn&#8217;t yet provide a way of preserving or optimising area shape characteristics, so you can get sliver-like polygons forming. Nonetheless it presents an interesting insight and a set of functions from which a more advanced/bespoke algorithm could be built.As it turns out the islands that I arbitrarily allocated to the  contiguity matrix are actually quite a contentious topic and given their  strategic significance to Sweden are in fact neutral territories which  would be untouched by any redesign of municipal structure.</p>
<p>As ever, local knowledge is important, and for the economists at <a title="VATT" href="http://www.vatt.fi/en/" target="_blank">VATT</a> this is a real task to undertake. They won&#8217;t be doing anything quite so crude, they do however have a curious spatial problem to deal with.</p>
]]></content:encoded>
			<wfw:commentRss>http://danieljlewis.org/2010/11/30/finnish-municipalities-a-case-for-zone-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Thematic Map in Python</title>
		<link>http://danieljlewis.org/2010/05/25/a-thematic-map-in-python/</link>
		<comments>http://danieljlewis.org/2010/05/25/a-thematic-map-in-python/#comments</comments>
		<pubDate>Tue, 25 May 2010 19:08:09 +0000</pubDate>
		<dc:creator>Daniel Lewis</dc:creator>
				<category><![CDATA[Representation]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[automated]]></category>
		<category><![CDATA[categorical]]></category>
		<category><![CDATA[Maps]]></category>
		<category><![CDATA[matplotlib]]></category>
		<category><![CDATA[OAC]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[shapefile]]></category>

		<guid isPermaLink="false">http://danieljlewis.org/?p=309</guid>
		<description><![CDATA[I though I would explore the possibility of creating thematic maps using Python, this post documents my initial attempt. The output is hence rather basic, but encouraging. The primary reason that I wanted to test the mapping potential of python is to allow for some basic automated map production in order to quickly visually assess [...]]]></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%2F05%2F25%2Fa-thematic-map-in-python%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdanieljlewis.org%2F2010%2F05%2F25%2Fa-thematic-map-in-python%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>I though I would explore the possibility of creating thematic maps using Python, this post documents my initial attempt. The output is hence rather basic, but encouraging. The primary reason that I wanted to test the mapping potential of python is to allow for some basic automated map production in order to quickly visually assess the geographical patterns contained within large data sets. This is something that I am at a loss to do in ESRI&#8217;s ArcGIS, although that might change in ArcGIS 10. For fans of R I know it can be done there, however R is too tricky for me! My colleague James Cheshire explains the method in R <a title="Making Maps in R" href="http://spatialanalysis.co.uk/2010/01/13/making-maps-with-r/" target="_blank">here.</a></p>
<p>The first hurdle in map making is getting the data in, for this I used the <a title="Shapefile Reader" href="http://indiemaps.com/blog/2008/03/easy-shapefile-loading-in-python/" target="_blank">shapefile reader</a> that <a title="Indiemaps Home" href="http://indiemaps.com/" target="_blank">Zachary Forest Johnson</a> put together for his excellent blog &#8216;<a title="Indiemaps Blog" href="http://indiemaps.com/blog">IndieMaps.com</a>&#8216;. This allowed me read in any of my masses of pre-existing Shapefile format datafiles, and indeed use the python scripting functionality in ArcGIS to perform spatial operations and then output a map quickly and without the hassle of dealing with ArcGIS layouts.</p>
<p>Once you have download the shapefile reader, it is easily implemented using:</p>
<pre>import shpUtils   #imports the shapefile reader
#Load a shapefile into an object called shpRecords
shpRecords = shpUtils.loadShapefile('\filename.shp')</pre>
<p>This is undoubtedly simple, what you then have is a (slightly) complex object which contians all of the shapefile data nested as lists and dictionaries. In order to get my head round this I spent some time investigating it, a standard shapefile that contains areal geographies (i.e. UK Output Areas) will have a similar set up to this:</p>
<ul>
<li>The first list (shpRecords[i]) records the number of complete geometries, this corresponds to the number of rows in the attribute table. Thus a single polygon has 1 row in the attribute table and 1 list (list index 0) in Python.</li>
<li>The second dictionary (shpRecords[i]['key']) records two branches, reporting either the &#8216;dbf_data&#8217; from the attribute table, or the &#8216;shp_data&#8217; from the .shp file describing the underlying geometry.</li>
<li>Choosing the &#8216;dbf_data&#8217; key (shpRecords[i]['dbf_data']) allows you to see the attributes recorded column-by-column for each row (and hence each geometry) in the attribute table. Thus shpRecords[i]['dbf_data']['name'] will return the attribute value for the field &#8216;name&#8217; for the <em>i</em>th geometry in the shapefile.</li>
<li>Choosing the &#8216;shp_data&#8217; key (shpRecords[i]['shp_data']) allows you to access the various components of the shapefile&#8217;s geometry. In the case of a polyline/polygon you get dictionary items &#8216;ymax&#8217;, &#8216;ymin&#8217;, &#8216;xmax&#8217;, &#8216;xmin&#8217;, &#8216;numpoints&#8217;, &#8216;numparts&#8217; and &#8216;parts&#8217;. Clearly the first 6 items are properties of the <em>i</em>th geometry you are querying, so it allows you to form a bounding box, get the number of vertices in the line/polygon, and draw separate lines/polygons if the shapefile is setup to have spatially discontinuous shapes for each row.</li>
<li>The thing we are most interested in is the &#8216;parts&#8217; dictionary key, as this contains all the coordinates for the particular geometry being considered, this is accessed as: shpRecords[i]['shp_data']['parts']. The next list (shpRecords[i]['shp_data']['parts'][j]) thus allows you to distinguish between parts in a multipart file. i.e. the <em>j</em>th part of the <em>i</em>th geometry.</li>
<li>Having come this far, one final dictionary allows us to see the coordinates themselves, this dictionary simply offers us &#8216;x&#8217; or &#8216;y&#8217;. Thus finding the x-coordinate of the <em>i</em>th geometry and <em>j</em>th part is accessed by: shpRecords[i]['shp_data']['parts'][j]['x'] &#8211; simple!</li>
</ul>
<p>I have been using <a title="MatPlotLib @ Sourceforge" href="http://matplotlib.sourceforge.net/" target="_blank">matplotlib</a> &#8211; a python library for scientific visualisation a lot recent, and have found it a very simple and powerful resource, so I thought I&#8217;d see if it could be made to draw a map.</p>
<p>Firstly import the pyplot element which does all the figure drawing:</p>
<pre>import matplotlib.pyplot as plt
</pre>
<p>Now lets use the &#8220;fill&#8221; component of matplotlib to draw all the geometries in a shapefile &#8211; my shapefile is Output Areas in Southwark. Firstly we need to loop through each geometry, and then draw a polygon using all the points contained within each geometry. I omitted a loop for multipart geometries as my shapefile has none, however this would be very easy if the data did have multiple parts- simply add a loop in the middle!</p>
<pre>for i in range(0,len(shpRecords)):
 # x and y are empty lists to be populated with the coords of each geometry.
 x = []
 y = []
 for j in range(0,len(shpRecords[i]['shp_data']['parts'][0]['points'])):
  # This is the number of vertices in the ith geometry.
  # The parts list is [0] as it is singlepart.

  # get x and y coordinates.
  tempx = float(shpRecords[i]['shp_data']['parts'][0]['points'][j]['x'])
  tempy = float(shpRecords[i]['shp_data']['parts'][0]['points'][j]['y'])
  x.append(tempx)
  y.append(tempy) # Populate the lists  

 # Creates a polygon in matplotlib for each geometry in the shapefile
 plt.fill(x,y)

plt.axis('equal')
# This sets the x and y axes as equal intervals.
# NB this script will only work for projected data, for geographical
# coordinate systems get ready to do some maths  

plt.show() # Draws the map!</pre>
<p>This is the simplest form of the script, it will simply draw the shapefile with each area filled a random colour. This is not that useful, but it is easy to create a thematic maps of categorical data, so let investigate a way of doing that. I&#8217;ve got data for the Output Area Classification, which is a clustering of areas by social characteristics, I know that there are 7 supergroups in the classification, named numerically, so before all the processing of the shapefile I can create a dictionary of colour choices for each group. I&#8217;m using hexadecimal colours that I got from <a title="Colour Brewer" href="http://colorbrewer2.org/" target="_blank">Cynthia Brewer&#8217;s</a> website for a &#8216;qualitative&#8217; 7 class classification. The dictionary looks like this:</p>
<pre>oacSGroups = {'1':'#A6761D','2':'#E6AB02','3':'#66A61E','4':'#E7298A',\
'5':'#7570B3','6':'#D95F02','7': '#1B9E77'}
</pre>
<p>Thus the key &#8217;1&#8242; returns the associated hex colour, this can be linked to the &#8216;dbf_data&#8217; key in the shapefile. In the plt.fill() component I simply have to specify the colour choice, thus we alter the line in the above script to read:</p>
<pre>plt.fill(x,y,fc = oacSGroups[str(int(shpRecords[i]['dbf_data']['supergroup']))]\
,ec = '0.7',lw=0.1)
</pre>
<p>&#8216;fc&#8217; is the &#8216;foreground colour&#8217; we are asking python to make the colour equal to the value in the oacSGroups dictionary where the key is the value contained in the attribute table for the <em>i</em>th row in the &#8216;supergroup&#8217; field. Thus if the <em>i</em>th row had a &#8216;supergroup&#8217; value of &#8217;7&#8242; that foreground colour would be set to &#8216;#1B9E77&#8242;. &#8216;ec&#8217; is &#8216;edge colour&#8217; and &#8216;lw&#8217; is linewidth, here I have set the values to display fine, light grey lines.</p>
<p>Finally, as basic a map as this will turn out to be, we wouldn&#8217;t be anywhere without a legend. The following a a very basic, wholy manual way to add a legend to the map:</p>
<pre>p1 = plt.Rectangle((0, 0), 1, 1, fc="#A6761D")
p2 = plt.Rectangle((0, 0), 1, 1, fc="#E6AB02")
p3 = plt.Rectangle((0, 0), 1, 1, fc="#66A61E")
p4 = plt.Rectangle((0, 0), 1, 1, fc="#E7298A")
p5 = plt.Rectangle((0, 0), 1, 1, fc="#7570B3")
p6 = plt.Rectangle((0, 0), 1, 1, fc="#D95F02")
p7 = plt.Rectangle((0, 0), 1, 1, fc="#1B9E77")

plt.legend([p1,p2,p3,p4,p5,p6,p7], ["Super Group 1","Super Group 2",\
"Super Group 3","Super Group 4","Super Group 5","Super Group 6","Super Group 7"], loc = 4)
</pre>
<p>This simply creates 7 rectangular plots which don&#8217;t appear on the plotted output, but instead are passed to the legend creator, each rectangle has the appropriate colour to match the mapped representation, and a label, shown int he legend as two ordered lists. The &#8216;loc&#8217; tag allows the setting of where the legend will appear, 4 denotes the bottom right corner. the tag &#8216;title&#8217; allows you to add a title to the legend as a string.</p>
<p style="text-align: left">An example output looks something like this:<a href="http://danieljlewis.org/files/2010/05/OACPythonMap.png"></a></p>
<p style="text-align: left"><a href="http://danieljlewis.org/files/2010/05/OACPythonMap1.png"><img class="aligncenter size-full wp-image-323" title="OACPythonMap" src="http://danieljlewis.org/files/2010/05/OACPythonMap1.png" alt="" width="564" height="650" /></a>This took a couple of seconds to produce, and accounts for 846 individual geometries, which actually have quite a number of vertices.</p>
<p style="text-align: left">I&#8217;ll update the blog should I find new methods to visualise spatial data in python.</p>
]]></content:encoded>
			<wfw:commentRss>http://danieljlewis.org/2010/05/25/a-thematic-map-in-python/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>MDS for Inner London</title>
		<link>http://danieljlewis.org/2010/05/11/mds-for-inner-london/</link>
		<comments>http://danieljlewis.org/2010/05/11/mds-for-inner-london/#comments</comments>
		<pubDate>Tue, 11 May 2010 15:07:59 +0000</pubDate>
		<dc:creator>Daniel Lewis</dc:creator>
				<category><![CDATA[Cartography]]></category>
		<category><![CDATA[Modeling]]></category>
		<category><![CDATA[Representation]]></category>
		<category><![CDATA[distance]]></category>
		<category><![CDATA[Inner]]></category>
		<category><![CDATA[london]]></category>
		<category><![CDATA[Maps]]></category>
		<category><![CDATA[MDS]]></category>

		<guid isPermaLink="false">http://danieljlewis.org/?p=299</guid>
		<description><![CDATA[As an extension of the previous post, I created MDS mappings for Inner London using the OAC variables. I am using the ONS definition of Inner London, as opposed the commonly accepted definition, thus Inner London includes Haringey, Newham and the City, but excludes Greenwich. The nature of MDS is to scale a pairwise distance [...]]]></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%2F05%2F11%2Fmds-for-inner-london%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdanieljlewis.org%2F2010%2F05%2F11%2Fmds-for-inner-london%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 an extension of the previous post, I created MDS mappings for Inner London using the OAC variables. I am using the ONS definition of Inner London, as opposed the commonly accepted definition, thus Inner London includes Haringey, Newham and the City, but excludes Greenwich.</p>
<p>The nature of MDS is to scale a pairwise distance matrix, thus the number of entries in the matrix increases as the square of the number of observations, rapidly becoming very large. There are 9759 OAs in Inner London, requiring a distance matrix of 95,238,081 cells. I would like to compute the MDS mappings for Greater London as well, however there are 24,140 OAs giving a distance matrix of 582,739,600 cells, that is over 1/2 billion (American bn) entries and cannot be dimensioned on 32-bit machine. I&#8217;ve looked into 64-bit Python, but have yet to find a solution that doesn&#8217;t completely fill my computers memory and create an enormous pagefile.</p>
<p>In the previous example I used canberra distance, but found that in the larger data space of inner London I was having issues with very small fractions skewing the outcome, so I calculated the distance matrix using Bray-Curtis distance using SciPy&#8217;s spatial.distance library. The formula for bray-curtis is as follows (you&#8217;ll note it is a data normalisation method too):</p>
<p style="text-align: left"><a href="http://danieljlewis.org/files/2010/05/braycurtis.png"><img class="aligncenter size-full wp-image-300" title="braycurtis" src="http://danieljlewis.org/files/2010/05/braycurtis.png" alt="" width="200" height="56" /></a></p>
<p style="text-align: left">where k is the particular variable relating to the pair xi and xj and dij is the resultant distance matrix.</p>
<p style="text-align: left">The mappings were, as before, produced in greyscale and RGB.</p>
<p style="text-align: center">
<div id="attachment_301" class="wp-caption aligncenter" style="width: 563px"><a href="http://danieljlewis.org/files/2010/05/InnerLondonMDSBW.jpg"><img class="size-large wp-image-301  " title="InnerLondonMDSBW" src="http://danieljlewis.org/files/2010/05/InnerLondonMDSBW-1024x718.jpg" alt="" width="553" height="388" /></a><p class="wp-caption-text">Greyscale MDS mapping of Inner London using 41 OAC Variables</p></div>
<p style="text-align: left">
<div id="attachment_304" class="wp-caption aligncenter" style="width: 563px"><a href="http://danieljlewis.org/files/2010/05/InnerLondonMDSRGB.jpg"><img class="size-large wp-image-304  " title="InnerLondonMDSRGB" src="http://danieljlewis.org/files/2010/05/InnerLondonMDSRGB-1024x723.jpg" alt="" width="553" height="391" /></a><p class="wp-caption-text">RGB colour mapping for MDS of 41 OAC Variables</p></div>
<p style="text-align: left">I feel that the representations produced are quite effetcive in demonstrating the wide mix of social environments in Inner London, the greyscale is particualrly good at picking up the acknowledged patterns of deprivation, particularly east/west  and north/south. The colour representation does this too, but with an additional layer of complexity that seems to give a more nuanced reading of socio stratification in Inner London, with specific colour groups apparently marking out notional neighbourhoods &#8211; complementing the reading of London as a &#8216;city of villages&#8217;.</p>
<p style="text-align: left">Acknowledgement</p>
<p style="text-align: left">Census data is Crown Copyright 2010 from CasWeb, boundaries are Crown Copyright 2010 from UKBorders, an Edina/JISC supplied service.</p>
]]></content:encoded>
			<wfw:commentRss>http://danieljlewis.org/2010/05/11/mds-for-inner-london/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Basic Equity Maps for Southwark</title>
		<link>http://danieljlewis.org/2009/12/08/basic-equity-maps-for-southwark/</link>
		<comments>http://danieljlewis.org/2009/12/08/basic-equity-maps-for-southwark/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 17:31:53 +0000</pubDate>
		<dc:creator>Daniel Lewis</dc:creator>
				<category><![CDATA[Health Geography]]></category>
		<category><![CDATA[Health GIS]]></category>
		<category><![CDATA[PhD Work]]></category>
		<category><![CDATA[Southwark]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[Maps]]></category>
		<category><![CDATA[spatial equity]]></category>

		<guid isPermaLink="false">http://danieljlewis.org/?p=89</guid>
		<description><![CDATA[A little while ago I created some basic measures of spatial equity for my main study site in Southwark, London. Spatial equity in this case relates to a measure of the &#8216;fairness&#8217; of spatial distribution of services. The NHS as a public institution has a requirement in its universal terms of service to provide a [...]]]></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%2F2009%2F12%2F08%2Fbasic-equity-maps-for-southwark%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdanieljlewis.org%2F2009%2F12%2F08%2Fbasic-equity-maps-for-southwark%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>A little while ago I created some basic measures of spatial equity for my main study site in Southwark, London. Spatial equity in this case relates to a measure of the &#8216;fairness&#8217; of spatial distribution of services. The NHS as a public institution has a requirement in its universal terms of service to provide a fair service to all.</p>
<p>The following maps aim to show how different areas in Southwark, in this case output areas (OAs), have different characterisitics in terms of: the level of primary care provision available, and the distance to centres of primary healthcare. Following Truelove (1993), Talen and Anselin (1998) and Ricketts et al (1994) the first 3 maps use a buffer-approach to spatial equity, whilst the final shows a gravity model approach.</p>
<p style="text-align: left">
<div id="attachment_90" class="wp-caption aligncenter" style="width: 444px"><a href="http://danieljlewis.org/files/2009/12/OA500mnoDoc.jpg"><img class="size-large wp-image-90 " title="OA500mnoDoc" src="http://danieljlewis.org/files/2009/12/OA500mnoDoc-724x1024.jpg" alt="Spatial equity measured with a 500m buffer around GPs" width="434" height="614" /></a><p class="wp-caption-text">Figure 1: Spatial equity measured with a 500m buffer around GPs</p></div>
<p style="text-align: left">This first map (figure 1) demonstrates that large parts of Southwark do not have access to healthcare services within 500 metres (euclidian distance), whereas the best served areas have access to more than one GP surgery and as many as 24 individual doctors.</p>
<p style="text-align: left">
<div id="attachment_91" class="wp-caption aligncenter" style="width: 444px"><a href="http://danieljlewis.org/files/2009/12/OA750mnoDoc.jpg"><img class="size-large wp-image-91 " title="OA750mnoDoc" src="http://danieljlewis.org/files/2009/12/OA750mnoDoc-724x1024.jpg" alt="Figure 2: Spatial equity measured with a 750m buffer around GPs" width="434" height="614" /></a><p class="wp-caption-text">Figure 2: Spatial equity measured with a 750m buffer around GPs</p></div>
<p style="text-align: left">Figure two demonstrates that with a 750m buffer most areas are served, although there are still unserved areas, particularly in the south of the borough. The most well-served areas not have access to as many as 48 doctors.</p>
<p style="text-align: center">
<div id="attachment_92" class="wp-caption aligncenter" style="width: 444px"><a href="http://danieljlewis.org/files/2009/12/OA1000mnoDoc.jpg"><img class="size-large wp-image-92 " title="OA1000mnoDoc" src="http://danieljlewis.org/files/2009/12/OA1000mnoDoc-724x1024.jpg" alt="Figure 3: Spatial equity measured with a 1000m buffer around GPs" width="434" height="614" /></a><p class="wp-caption-text">Figure 3: Spatial equity measured with a 1000m buffer around GPs</p></div>
<p style="text-align: center">A 1km buffer still shows areas of Southwark which are unserved, particularly in the south. My recent <a title="CASA Working Paper #150" href="http://danieljlewis.org/2009/12/04/casa-working-paper-150-now-available/" target="_blank">working paper </a>features a map which confirms that residents of these areas are less likely to use Southwark services than those in the more core areas in the centre of the borough.</p>
<p style="text-align: left">
<div id="attachment_95" class="wp-caption aligncenter" style="width: 444px"><a href="http://danieljlewis.org/files/2009/12/LogGravityPotential.jpg"><img class="size-large wp-image-95 " title="LogGravityPotential" src="http://danieljlewis.org/files/2009/12/LogGravityPotential-724x1024.jpg" alt="Figure 4: Spatial Equity measured by Log of the Gravity Potential" width="434" height="614" /></a><p class="wp-caption-text">Figure 4: Spatial Equity measured by Log of the Gravity Potential</p></div>
<p style="text-align: left">This final map uses a distance decay function rather than a buffer to represent spatial equity and is specified thusly (Talen and Anselin, 1998 p.600):</p>
<p style="text-align: left"><a href="http://danieljlewis.org/files/2009/12/CodeCogsEqn.png"><img class="aligncenter size-medium wp-image-96" title="CodeCogsEqn" src="http://danieljlewis.org/files/2009/12/CodeCogsEqn-300x159.png" alt="CodeCogsEqn" width="180" height="95" /></a>where Sj is the size of a facility (measured by number of doctors, operating capacity etc.) at location j and d is a distance decay factor between area i and facility j with a friction parameter alpha, here set to 2.</p>
<p style="text-align: left">The result is not hugely different to the buffered approaches, giving a similar account of affairs. It is notable that in all cases the spatial equity correlates with provision of social housing. In the UK context Southwark is a special case, being amongst the most deprived Local authorities by IMD07 rank, in which fair access to services is skewed towards the needs of the more deprived, whether or not uptake, or ability to uptake actually reflects this is another question.</p>
<p style="text-align: left"><span style="text-decoration: underline">References</span></p>
<div style="line-height: 1.1em;margin-left: 0.5in;text-indent: -0.5in">
<p style="margin: 0pt">Ricketts, T.C. et al., 1994. <span style="font-style: italic">Geographic Methods for Health Services Research: A Focus on the Rural-Urban Continuum</span>, London: University Press of America.<span class="Z3988" title="url_ver=Z39.88-2004&amp;ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=Geographic%20Methods%20for%20Health%20Services%20Research%3A%20A%20Focus%20on%20the%20Rural-Urban%20Continuum&amp;rft.place=London&amp;rft.publisher=University%20Press%20of%20America&amp;rft.aufirst=Thomas%20C.&amp;rft.aulast=Ricketts&amp;rft.au=Thomas%20C.%20Ricketts&amp;rft.au=Lucy%20A.%20Savitz&amp;rft.au=Wilbert%20M.%20Gesler&amp;rft.au=Diana%20N.%20Osborne&amp;rft.date=1994"> </span></p>
</div>
<div style="line-height: 1.1em;margin-left: 0.5in;text-indent: -0.5in">
<p style="margin: 0pt">Talen, E. &amp; Anselin, L., 1998. Assessing spatial equity: an evaluation of measures of accessibility to public playgrounds. <span style="font-style: italic">Environment and Planning A</span>, 30, 595-613.</p>
<p style="margin: 0pt">
<p style="margin: 0pt">Truelove, M., 1993. Measurement of spatial equity. <span style="font-style: italic">Environment and Planning C: Government and Policy</span>, 11, 19-34.  <span class="Z3988" title="url_ver=Z39.88-2004&amp;ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.atitle=Measurement%20of%20spatial%20equity&amp;rft.jtitle=Environment%20and%20Planning%20C%3A%20Government%20and%20Policy&amp;rft.volume=11&amp;rft.aufirst=M.&amp;rft.aulast=Truelove&amp;rft.au=M.%20Truelove&amp;rft.date=1993&amp;rft.pages=19-34"> </span></p>
<p style="margin: 0pt">
<p style="margin: 0pt"><span class="Z3988" title="url_ver=Z39.88-2004&amp;ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.atitle=Measurement%20of%20spatial%20equity&amp;rft.jtitle=Environment%20and%20Planning%20C%3A%20Government%20and%20Policy&amp;rft.volume=11&amp;rft.aufirst=M.&amp;rft.aulast=Truelove&amp;rft.au=M.%20Truelove&amp;rft.date=1993&amp;rft.pages=19-34"><span style="text-decoration: underline">Acknowledgement</span></span></p>
<p style="margin: 0pt"><span class="Z3988" title="url_ver=Z39.88-2004&amp;ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.atitle=Measurement%20of%20spatial%20equity&amp;rft.jtitle=Environment%20and%20Planning%20C%3A%20Government%20and%20Policy&amp;rft.volume=11&amp;rft.aufirst=M.&amp;rft.aulast=Truelove&amp;rft.au=M.%20Truelove&amp;rft.date=1993&amp;rft.pages=19-34">All maps are subject to the following:</span></p>
<p style="margin: 0pt">
<p style="margin: 0pt"><span class="Z3988" title="url_ver=Z39.88-2004&amp;ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.atitle=Measurement%20of%20spatial%20equity&amp;rft.jtitle=Environment%20and%20Planning%20C%3A%20Government%20and%20Policy&amp;rft.volume=11&amp;rft.aufirst=M.&amp;rft.aulast=Truelove&amp;rft.au=M.%20Truelove&amp;rft.date=1993&amp;rft.pages=19-34">Crown Copyright 2009 Ordnance Survey. An UKborders/JISC supplied service.<br />
</span></p>
</div>
<p style="text-align: left">
<p style="text-align: center">
]]></content:encoded>
			<wfw:commentRss>http://danieljlewis.org/2009/12/08/basic-equity-maps-for-southwark/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Computers and the Renaissance of Cartography</title>
		<link>http://danieljlewis.org/2009/09/21/computers-and-the-renaissance-of-cartography/</link>
		<comments>http://danieljlewis.org/2009/09/21/computers-and-the-renaissance-of-cartography/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 14:34:58 +0000</pubDate>
		<dc:creator>Daniel Lewis</dc:creator>
				<category><![CDATA[Cartography]]></category>
		<category><![CDATA[Experimental Cartography Unit]]></category>
		<category><![CDATA[geology]]></category>
		<category><![CDATA[Maps]]></category>
		<category><![CDATA[NERC]]></category>
		<category><![CDATA[RCA]]></category>

		<guid isPermaLink="false">http://danieljlewis.org/?p=53</guid>
		<description><![CDATA[Dr. Muki Haklay directed me toward a pamphlet entitled &#8220;Computers and the Renaissance of Cartography&#8221; by T A Margerison of the Experimental Cartography Unit; it is a wonderful example of mapping, as well as of publication, no doubt something to do with the Royal College of Arts. Perhaps the most incredible aspect of the work [...]]]></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%2F2009%2F09%2F21%2Fcomputers-and-the-renaissance-of-cartography%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdanieljlewis.org%2F2009%2F09%2F21%2Fcomputers-and-the-renaissance-of-cartography%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>Dr. <a title="Muki Haklay's Blog" href="http://povesham.wordpress.com/" target="_blank">Muki Haklay</a> directed me toward a pamphlet entitled &#8220;Computers and the Renaissance of Cartography&#8221; by T A Margerison of the Experimental Cartography Unit; it is a wonderful example of mapping, as well as of publication, no doubt something to do with the Royal College of Arts. Perhaps the most incredible aspect of the work is that the featured maps, which would be exceptional nowadays, were created in the late 70s. Don&#8217;t take my word for it however, have a look at these two examples from the pamphlet:</p>
<div id="attachment_54" class="wp-caption alignnone" style="width: 268px"><a href="http://danieljlewis.org/files/2009/09/Picture1.jpg"><img class="size-medium wp-image-54" src="http://danieljlewis.org/files/2009/09/Picture1-258x300.jpg" alt="This extract is from a map of cobalt for a part of the Shetlands: quantities are recorded by the length of arm: different minerals are dealt with by different angles. The extract also shows the geological boundaries in brown lines." width="258" height="300" /></a><p class="wp-caption-text">This extract is from a map of cobalt for a part of the Shetlands: quantities are recorded by the length of arm (Margerison, 1976 p.12)</p></div>
<div id="attachment_57" class="wp-caption alignnone" style="width: 270px"><a href="http://danieljlewis.org/files/2009/09/picture2.jpg"><img class="size-medium wp-image-57" src="http://danieljlewis.org/files/2009/09/picture2-260x300.jpg" alt="This extract is from the Atlas of Global Seismology: 1909-1969. which is based on the large digital data bank of seismic records held by the Institute of Geological Sciences. The seismic information for each &quot;square&quot; is plotted directly by computer in bars of different thickness. oriented N.S. E-W and diagonally. A brown tint shows areas in which some activity has been recorded during the total period - e.g. on maps of other time periods." width="260" height="300" /></a><p class="wp-caption-text">This extract is from the &#39;Atlas of Global Seismology: 1909-1969&#39; which is based on the large digital data bank of seismic records held by the Institute of Geological Sciences. The seismic information for each &quot;square&quot; is plotted directly by computer in bars of different thickness, oriented N.S. E-W and diagonally. A brown tint shows areas in which some activity has been recorded during the total period - e.g. on maps of other time periods (Margerison, 1976 p.11)</p></div>
<p>Reference:</p>
<p>Margerison, T A (1976) Computers and the Renaissance of Cartography. NERC Experimental Cartography Unit, RCA, London</p>
]]></content:encoded>
			<wfw:commentRss>http://danieljlewis.org/2009/09/21/computers-and-the-renaissance-of-cartography/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

