<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Open Source Computing and GIS in the UK</title>
	
	<link>http://www.archaeogeek.com/blog</link>
	<description>Travels in a digital world</description>
	<lastBuildDate>Wed, 18 Jan 2012 16:49:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/ComputingGisAndArchaeologyInTheUk" /><feedburner:info uri="computinggisandarchaeologyintheuk" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>54.0487</geo:lat><geo:long>-2.7924</geo:long><feedburner:emailServiceId>ComputingGisAndArchaeologyInTheUk</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Personal musings on the authority of OpenStreetMap</title>
		<link>http://feedproxy.google.com/~r/ComputingGisAndArchaeologyInTheUk/~3/KoSvPqMbQTo/</link>
		<comments>http://www.archaeogeek.com/blog/2012/01/18/personal-musings-on-the-authority-of-openstreetmap/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 16:49:44 +0000</pubDate>
		<dc:creator>Archaeogeek</dc:creator>
				<category><![CDATA[openstreetmap]]></category>

		<guid isPermaLink="false">http://www.archaeogeek.com/blog/?p=571</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Personal+musings+on+the+authority+of+OpenStreetMap&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=openstreetmap&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2012-01-18&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2012/01/18/personal-musings-on-the-authority-of-openstreetmap/&amp;rft.language=English"></span>
There has been a lot of fairly excitable posting recently about the continuing rise of OpenStreetMap, and how it&#8217;s now being used in place of Google Maps,  in particular since Google started charging for data. People have been talking about how &#8220;authoritative&#8221; crowd-sourced spatial data can be, and to be honest, I&#8217;ve found that the [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Personal+musings+on+the+authority+of+OpenStreetMap&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=openstreetmap&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2012-01-18&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2012/01/18/personal-musings-on-the-authority-of-openstreetmap/&amp;rft.language=English"></span>
<abbr class="unapi-id" title="http://www.archaeogeek.com/blog/?p=571"><!-- &nbsp; --></abbr>
<p>There has been a lot of fairly excitable <a title="OSM roolz" href="http://www.wired.com/wiredenterprise/2012/01/openstreetmap-google/all/1" target="_blank">posting</a> recently about the continuing rise of OpenStreetMap, and how it&#8217;s now being used in place of Google Maps,  in particular since Google started charging for data. People have been talking about how &#8220;<a title="OSM authoritative" href="http://spatial21.blogspot.com/2011/01/psma-sensis-or-openstreetmap-what-makes.html" target="_blank">authoritative</a>&#8221; crowd-sourced spatial data can be, and to be honest, I&#8217;ve found that the discussions seem to have missed the point a little bit. For me at least. So- here&#8217;s a few of my personal thoughts about OpenStreetMap and why it will be a while before I will consider it authoritative at least.</p>
<p>Firstly, a caveat. I love OpenStreetMap data and the whole ecosystem of &#8220;stuff&#8221; that has evolved around it. I contribute occasionally, though not as often as I&#8217;d like to. I&#8217;m pleased that it has forced the &#8220;traditional&#8221; data providers to reconsider what they offer, and perhaps to raise their game. I think it&#8217;s one of the main reasons why the idea of &#8220;open data&#8221; is so well known that even my Gran knows about it.</p>
<p>However, in the process of trying out <a title="Walking Papers" href="http://walking-papers.org/" target="_blank">WalkingPapers</a> (my favourite addition to the OpenStreetMap ecosphere), I printed out the area around my house- in the centre of Lancaster. Not London, I admit, but still in the centre of a city. My road wasn&#8217;t on there. Read on, before you give up in disgust, saying &#8220;pah, you should just correct any errors you find&#8221;. How did I know my road was missing? There wasn&#8217;t an unfinished stub, with a note saying &#8220;I went home for my tea and I&#8217;ll finish this section tomorrow&#8221;, it was as if my road did not exist. I only knew my road was missing because I live there, and I have no readily available tools to help me judge the accuracy of an area that I am not familiar with. So, the idea that the end-user should correct any errors they find doesn&#8217;t really hold because you&#8217;re not always going to know that there&#8217;s an error!</p>
<p>I am aware that the traditional data providers do not produce totally error-free data. However, I would expect Ordnance Survey (for example) to have a workflow for their surveyors that doesn&#8217;t allow them to simply give up when they get bored or have to go home for their tea, or perhaps not survey a street because they don&#8217;t go down it very often.  I can also go to the site and find published information on <a title="PAI" href="http://www.ordnancesurvey.co.uk/oswebsite/pai/faqgeneral.html#g2" target="_blank">positional accuracy</a> if I need it. I guess I&#8217;m equating &#8220;authority&#8221; with trust, or reliability, and the issue is less about what&#8217;s there, than what&#8217;s not there.</p>
<p>When OpenStreetMap is being used as a static base map, by which I mean a backdrop to the information your map is really about, this is less of an issue. But, if like me, you come from a discipline where maps are collections of data to be manipulated and analysed, then you need to be able to trust your data a little more, or at least have a quantitative understanding of what the error is likely to be.</p>
<p>I know that this is not an easy question to answer, and I know <a title="OSM accuracy" href="http://www.slideshare.net/mukih/beyond-good-enough-spatial-data-quality-and-openstreetmap-data" target="_blank">people</a> are trying to figure out ways of answering it. I also know it&#8217;s not that important for a lot of people, but I would like to see a more nuanced debate- I think that would be better for OpenStreetMap in the end.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=KoSvPqMbQTo:BLB4TB7t9ek:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=KoSvPqMbQTo:BLB4TB7t9ek:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?i=KoSvPqMbQTo:BLB4TB7t9ek:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=KoSvPqMbQTo:BLB4TB7t9ek:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?i=KoSvPqMbQTo:BLB4TB7t9ek:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=KoSvPqMbQTo:BLB4TB7t9ek:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ComputingGisAndArchaeologyInTheUk/~4/KoSvPqMbQTo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.archaeogeek.com/blog/2012/01/18/personal-musings-on-the-authority-of-openstreetmap/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://www.archaeogeek.com/blog/2012/01/18/personal-musings-on-the-authority-of-openstreetmap/</feedburner:origLink></item>
		<item>
		<title>pgRouting Ubuntu quick start</title>
		<link>http://feedproxy.google.com/~r/ComputingGisAndArchaeologyInTheUk/~3/qq8NS7jJBCQ/</link>
		<comments>http://www.archaeogeek.com/blog/2011/12/19/pgrouting-ubuntu-quick-start/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 12:24:55 +0000</pubDate>
		<dc:creator>Archaeogeek</dc:creator>
				<category><![CDATA[pgrouting]]></category>
		<category><![CDATA[Postgis]]></category>

		<guid isPermaLink="false">http://www.archaeogeek.com/blog/?p=568</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=pgRouting+Ubuntu+quick+start&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=pgrouting&amp;rft.subject=Postgis&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2011-12-19&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2011/12/19/pgrouting-ubuntu-quick-start/&amp;rft.language=English"></span>
Caution- this post won&#8217;t make you a pgRouting guru, but it will allow you to get pgrouting up and running on Ubuntu 11.10 and have some data on a map in approx 20 minutes. Follow the instructions here to install PostgreSQL, PostGIS and pgRouting. Note that the instructions are for PostgreSQL 8.3 but they work just as well [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=pgRouting+Ubuntu+quick+start&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=pgrouting&amp;rft.subject=Postgis&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2011-12-19&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2011/12/19/pgrouting-ubuntu-quick-start/&amp;rft.language=English"></span>
<abbr class="unapi-id" title="http://www.archaeogeek.com/blog/?p=568"><!-- &nbsp; --></abbr>
<p><strong>Caution- this post won&#8217;t make you a pgRouting guru, but it will allow you to get pgrouting up and running on Ubuntu 11.10 and have some data on a map in approx 20 minutes.</strong></p>
<ol>
<li>Follow the instructions <a title="pgrouting ubuntu" href="http://www.pgrouting.org/docs/1.x/install_ubuntu.html" target="_blank">here</a> to install PostgreSQL, PostGIS and pgRouting. Note that the instructions are for PostgreSQL 8.3 but they work just as well for PostgreSQL 9.0, just go with whatever version you want and substitute the package name accordingly.</li>
<li>If you&#8217;re using PostgreSQL 9.0, you might hit an error when loading the driving distance functions, as seen <a title="Undefined symbol error" href="http://gis.stackexchange.com/questions/16961/psqlrouting-dd-sql28-error" target="_blank">here</a>. There&#8217;s a fix, which  may or not have been committed by the time you try this- if not then you need to apply it by replacing <a title="ubuntu fix" href="https://github.com/pgRouting/pgrouting/issues/48#issuecomment-3006365" target="_blank">two altered files</a> and recompiling/making and installing pgrouting (repeat the &#8220;compile pgRouting&#8221; step in the link in step 1).</li>
<li>Go <a title="OSM downloads" href="http://download.geofabrik.de/osm/" target="_blank">here</a> and download a selection of osm binary (pbf) files.</li>
<li>Follow the instructions <a title="osm2po quick start" href="http://underdark.wordpress.com/2011/12/15/an-osm2po-quickstart/" target="_blank">here</a> to download and run osm2po. Note that the documentation is currently available only in german. However, the example given in the link will work to get you a working demo, and it&#8217;s quite easy to follow the examples. Note also that you need a java runtime environment to use this- so if you don&#8217;t have one then download the jre of your choice using your favourite software package manager.</li>
</ol>
<p>If this whets your appetite and you want to learn more, then there&#8217;s an excellent <a title="pgrouting workshop" href="http://workshop.pgrouting.org/" target="_blank">workshop</a> available on the pgRouting site, along with lots of useful <a title="pgrouting howtos" href="http://www.pgrouting.org/docs/howto.html" target="_blank">howtos</a> and <a title="pgrouting tools" href="http://www.pgrouting.org/docs/tools.html" target="_blank">tools</a>.</p>
<p>This, of course, only scratches the surface of pgRouting, but it just goes to show that thanks to all of the great links I&#8217;ve listed above, it is possible to get a working demo going extremely quickly.</p>
<p>&nbsp;</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=qq8NS7jJBCQ:jnXY75y74zE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=qq8NS7jJBCQ:jnXY75y74zE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?i=qq8NS7jJBCQ:jnXY75y74zE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=qq8NS7jJBCQ:jnXY75y74zE:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?i=qq8NS7jJBCQ:jnXY75y74zE:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=qq8NS7jJBCQ:jnXY75y74zE:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ComputingGisAndArchaeologyInTheUk/~4/qq8NS7jJBCQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.archaeogeek.com/blog/2011/12/19/pgrouting-ubuntu-quick-start/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.archaeogeek.com/blog/2011/12/19/pgrouting-ubuntu-quick-start/</feedburner:origLink></item>
		<item>
		<title>Mapserver, Tilecache and Proxies</title>
		<link>http://feedproxy.google.com/~r/ComputingGisAndArchaeologyInTheUk/~3/d1_S7EkAUuk/</link>
		<comments>http://www.archaeogeek.com/blog/2011/11/29/mapserver-tilecache-and-proxies/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 17:12:00 +0000</pubDate>
		<dc:creator>Archaeogeek</dc:creator>
				<category><![CDATA[mapserver]]></category>
		<category><![CDATA[Tilecache]]></category>

		<guid isPermaLink="false">http://www.archaeogeek.com/blog/?p=562</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Mapserver%2C+Tilecache+and+Proxies&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=mapserver&amp;rft.subject=Tilecache&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2011-11-29&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2011/11/29/mapserver-tilecache-and-proxies/&amp;rft.language=English"></span>
If you end up doing a lot of work on mapserver and tilecache behind corporate proxy servers, you&#8217;re likely to hit a couple of snags, when the proxy thinks you&#8217;re trying to do something evil, when really all you want to do is seed a tilecache or look at an external WMS server. Fortunately there [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Mapserver%2C+Tilecache+and+Proxies&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=mapserver&amp;rft.subject=Tilecache&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2011-11-29&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2011/11/29/mapserver-tilecache-and-proxies/&amp;rft.language=English"></span>
<abbr class="unapi-id" title="http://www.archaeogeek.com/blog/?p=562"><!-- &nbsp; --></abbr>
<p>If you end up doing a lot of work on mapserver and tilecache behind corporate proxy servers, you&#8217;re likely to hit a couple of snags, when the proxy thinks you&#8217;re trying to do something evil, when really all you want to do is seed a tilecache or look at an external WMS server. Fortunately there are a couple of useful workarounds, which I record here for my own sanity as much as anything else!</p>
<p><strong>Mapserver</strong></p>
<p>Mapserver has some <a title="Mapserver WMS client" href="http://mapserver.org/ogc/wms_client.html#mapfile-configuration" target="_blank">great documentation</a> on how to use proxy authentication when requesting data from an external web server, but unfortunately if you&#8217;re still on Mapserver 5.6.x, and on windows, you are likely to find that some of the directives don&#8217;t work. When you test your mapserver layer in a browser, you get a blank screen, and the following error message in your logs:</p>
<p><strong>HTTP request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up</strong></p>
<p>Needless to say, the later versions of mapserver (5.6.6) are using Curl versions greater than 7.10.7 so we&#8217;ll ignore that part of the message and concentrate on the CURLOPT_PROXYAUTH part. A quick google will inform you that this must be explicitly compiled into mapserver, and as far as I can tell, none of pre-compiled windows binaries for 5.6.x have been compiled with this option.</p>
<p>Enter <a title="cntlm" href="http://cntlm.sourceforge.net/" target="_blank">cntlm</a>, which is designed to stand between your application and your corporate proxy server, providing proxy authentication on the fly. To use it with mapserver, install the latest binaries and follow the configuration hints on the home page. The basic process is to run cntlm from a command line to establish the type of authentication that your proxy server uses, then fill in the supplied cntlm.ini file with the appropriate values for your configuration. If you don&#8217;t know these, you can easily find them by opening firefox or similar and  looking at preferences-&gt;advanced-&gt;network-&gt;settings.  You&#8217;ll need the URL of the proxy, the port, and the type.</p>
<p>Then, assuming that cntlm is installed on the same server as mapserver, your map file needs only the following layer metadata parameters (in addition to anything else you have defined):</p>
<p>wms_proxy_host: localhost</p>
<p>wms_proxy_port: specified in cntlm.ini (default is 3128)</p>
<p>wms_proxy_type: http or socks5 etc</p>
<p>With luck, once you have cntlm configured correctly, your external WMS layer should display just fine!</p>
<p><strong>Tilecache</strong></p>
<p>If when seeding your tilecache you receive &#8220;bad gateway&#8221; errors, or inexplicably corrupted tiles, it&#8217;s possible that the tilecache_seed.py script is also being blocked by the proxy server on your network. Somewhat counter-intuitively (at least it seems that way at first), this can be easily circumvented by switching off the proxy settings in Internet Explorer on the machine you&#8217;re running the script on (and switching back on once the script completes successfully). Note that it has to be Internet Explorer- you&#8217;ll need another approach if that&#8217;s not installed.</p>
<p>The reason for this is that tilecache_seed.py uses the python module urllib2, which uses ProxyHandler to handle proxies (who would have guessed). This will attempt to autodetect proxy settings, and one of the options it checks is in Internet Explorer (I guess this equates to a registry setting somewhere but we don&#8217;t go digging in the registry without our vaccinations up to date and all our affairs in order, do we?). A longer term solution might be to extend the tilecache_seed.py script to explicitly set up a ProxyHandler with no proxies defined, as in <a title="Python ProxyHandler" href="http://docs.python.org/howto/urllib2.html" target="_blank">this example</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=d1_S7EkAUuk:SrogZGzO99A:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=d1_S7EkAUuk:SrogZGzO99A:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?i=d1_S7EkAUuk:SrogZGzO99A:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=d1_S7EkAUuk:SrogZGzO99A:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?i=d1_S7EkAUuk:SrogZGzO99A:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=d1_S7EkAUuk:SrogZGzO99A:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ComputingGisAndArchaeologyInTheUk/~4/d1_S7EkAUuk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.archaeogeek.com/blog/2011/11/29/mapserver-tilecache-and-proxies/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.archaeogeek.com/blog/2011/11/29/mapserver-tilecache-and-proxies/</feedburner:origLink></item>
		<item>
		<title>Conferences: a different perspective</title>
		<link>http://feedproxy.google.com/~r/ComputingGisAndArchaeologyInTheUk/~3/afIrcrr-6j4/</link>
		<comments>http://www.archaeogeek.com/blog/2011/10/05/conferences-a-different-perspective/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 15:03:40 +0000</pubDate>
		<dc:creator>Archaeogeek</dc:creator>
				<category><![CDATA[FOSS4G]]></category>

		<guid isPermaLink="false">http://www.archaeogeek.com/blog/?p=554</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Conferences%3A+a+different+perspective&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=FOSS4G&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2011-10-05&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2011/10/05/conferences-a-different-perspective/&amp;rft.language=English"></span>
September is clearly conference month in the geo world. FOSS4G in Denver, which I didn&#8217;t go to, was closely followed by the AGI GeoCommunity in Nottingham, which I did. I participated FOSS4G vicariously, following twitter and starring lots of posts in my google feed, and it&#8217;s only now that I&#8217;m having chance to catch up on [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Conferences%3A+a+different+perspective&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=FOSS4G&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2011-10-05&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2011/10/05/conferences-a-different-perspective/&amp;rft.language=English"></span>
<abbr class="unapi-id" title="http://www.archaeogeek.com/blog/?p=554"><!-- &nbsp; --></abbr>
<p>September is clearly conference month in the geo world. <a title="FOSS4G" href="http://foss4g.org/" target="_blank">FOSS4G</a> in Denver, which I didn&#8217;t go to, was closely followed by the <a title="AGI GeoComm" href="http://www.agigeocommunity.com/" target="_blank">AGI GeoCommunity</a> in Nottingham, which I did. I participated FOSS4G vicariously, following twitter <a title="FOSS4G5" href="http://blog.cleverelephant.ca/2011/09/architecture-of-participation.html">and</a> <a title="FOSS4G4" href="http://apb.directionsmag.com/entry/building-a-brand-around-open-source-foss4g/199698">starring</a> <a title="FOSS4G1" href="http://slashgeo.org/2011/09/21/Open-Source-Geonews-OSGeo-about-20000-Strong-Now-FOSS4G-2011-Wrap-Ups-GrassrootsMappingor">lots</a> <a title="FOSS4G2" href="http://blog.progs.be/171/open-source-vs-commercial-software-for-libraries-and-frameworks">of</a> <a title="FOSS4G3" href="http://arnulf.us/sevendipity/archives/43-OSGeo-The-Jack-of-all-Trades.html">posts</a> <a title="FOSS4G5" href="http://apb.directionsmag.com/entry/open-source-reality-check-foss4g2011/199482">in</a> my google feed, and it&#8217;s only now that I&#8217;m having chance to catch up on them all and assimilate them. Seems like there was a lot of soul-searching going on, about the future of the organisation, the conference, and the geospatial industry in general. Seems also like there was a really good vibe to the event, perhaps related to a really good choice of venue, which kept people together for socialising, networking and whatever. Perhaps these two factors are related? Get a bunch of conference-goers together over some geo-beers, and no doubt a lot of discussion will take place.</p>
<p>One of the key questions that seems to have come up as a result of the success of this year&#8217;s event has been whether or not there should be an annual North American event alongside the global event. Personally, not being in North America, I can only see this from the international perspective, and to me it looks bad. Diluting the FOSS4G brand has to be a bad thing. How many of the big players will choose to come to the international event when they &#8220;know&#8221; everyone &#8220;important&#8221; is going to be at the North American event? However, from the perspective of raising cash for the foundation, perhaps it&#8217;s a good idea because it&#8217;s probably more commercially viable. I don&#8217;t know, but I kind of wish the idea hadn&#8217;t been brought up&#8230;</p>
<p>With my new directors hat on, I&#8217;m sure there&#8217;s going to be a lot more discussion about this, alongside the organisational changes necessitated by <a title="ED dissolving" href="http://lists.osgeo.org/pipermail/discuss/2011-September/009449.html" target="_blank">dissolving the Executive Director&#8217;s post</a>. I&#8217;m not going to go into that at all, but I would just like to say that I think Tyler did a fantastic job for OSGeo, particularly on the international scene- here in the UK he &#8220;was&#8221; OSGeo and things won&#8217;t be the same without him.</p>
<p>Over to the AGI GeoCommunity event. Having been on the working group helping to organise the event this year, again I had a different perspective on things to normal. Being on the working group is quite easy in the run up to the event as the AGI team do most (nearly all) of the hard work. However, you&#8217;re expected to help with exciting things like bag packing, chairing streams, and generally being around and visible throughout the two days. No sleeping during not so interesting talks! Attendance was good in the end, after a rush of late registrations, the new venue (the East Midland Conference Centre at the University of Nottingham) was a big success, and in the end even the last minute substitution of two plenary speakers (for perfectly good reasons) didn&#8217;t upset things!</p>
<p>I chaired the session on Open Source and Open Data on day one, which included some really worthwhile papers. Standing out (a couple of weeks after the event) are Antony Tuffour&#8217;s <a title="Tuffour" href="http://www.agi.org.uk/storage/GeoCommunity/AGI2011/Presentations/AnthonyTuffour.pdf" target="_blank">paper</a> on Open Source Software Stack and Standards- Integration and GI for Everyone- about introducing a FOSS web mapping system at the London Borough of Hackney, and Mark Iliffe&#8217;s <a title="Iliffe" href="http://www.agi.org.uk/storage/GeoCommunity/AGI2011/Presentations/MarkIliffe.pdf" target="_blank">talk</a> on When Gov 2.0 doesn&#8217;t exist- Mapping Services in the Developing World. I&#8217;ve seen Mark&#8217;s talk a couple of times now and it&#8217;s always inspirational. All the papers are available on the AGI website, so go take a <a title="AGI papers" href="http://www.agi.org.uk/past-events/2011/9/21/agi-geocommunity-11-papers.html" target="_blank">look</a>.  The famous soapbox event in the evening was won by my new(ish) <a title="Astun" href="http://astuntechnology.com/about/team/" target="_blank">boss</a>. His talk was in reaction to the great FUD debate from a few weeks ago, excellently shown up for the absurdity that it is at the time by <a title="Paul Ramsey" href="http://blog.cleverelephant.ca/2011/08/proprietary-software-is-not-future-you.html" target="_blank">Paul Ramsey</a>, and again here. Catch the <a title="Mike on Youtube" href="http://www.youtube.com/watch?v=EPkyH_3DcxM&amp;feature=youtu.be" target="_blank">YouTube video</a> while you can!</p>
<p>Other things of note include the relaunch of the Technical Special Interest Group again. It&#8217;s easy to be cynical about this, as even I have now been around the AGI long enough to have seen the previous attempt lose momentum and stall, but enthusiasm is everything, and there is a lot of interest in the group as a relatively neutral umbrella under which both proprietary and open source vendors can talk techy without the sales pitch. Look out for events towards the end of the year.</p>
<p>There was plenty of soul-searching at the AGI GeoComm as well as at FOSS4G. While the two organisations are quite different, the same basic questions come up around providing best value, what the organisation is actually for, and how best to retain sponsorship and income in difficult financial times. Let&#8217;s just hope everyone pulls through in the end&#8230;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=afIrcrr-6j4:Tlafld7CbQU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=afIrcrr-6j4:Tlafld7CbQU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?i=afIrcrr-6j4:Tlafld7CbQU:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=afIrcrr-6j4:Tlafld7CbQU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?i=afIrcrr-6j4:Tlafld7CbQU:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=afIrcrr-6j4:Tlafld7CbQU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ComputingGisAndArchaeologyInTheUk/~4/afIrcrr-6j4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.archaeogeek.com/blog/2011/10/05/conferences-a-different-perspective/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.archaeogeek.com/blog/2011/10/05/conferences-a-different-perspective/</feedburner:origLink></item>
		<item>
		<title>How to explain open source to your grandparents</title>
		<link>http://feedproxy.google.com/~r/ComputingGisAndArchaeologyInTheUk/~3/Q9ljQi2TlDw/</link>
		<comments>http://www.archaeogeek.com/blog/2011/09/14/how-to-explain-open-source-to-your-grandparents/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 10:50:01 +0000</pubDate>
		<dc:creator>Archaeogeek</dc:creator>
				<category><![CDATA[opensource]]></category>
		<category><![CDATA[OSGEO]]></category>

		<guid isPermaLink="false">http://www.archaeogeek.com/blog/?p=550</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=How+to+explain+open+source+to+your+grandparents&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=opensource&amp;rft.subject=OSGEO&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2011-09-14&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2011/09/14/how-to-explain-open-source-to-your-grandparents/&amp;rft.language=English"></span>
I imagine I&#8217;m not alone in having parents and grandparents who don&#8217;t really understand what I do for a living. &#8220;I work in computing and do stuff with maps&#8221; is the easy approach (in fact it&#8217;s easier now that I don&#8217;t have to tag on the bit about being an archaeologist but not actually digging, [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=How+to+explain+open+source+to+your+grandparents&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=opensource&amp;rft.subject=OSGEO&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2011-09-14&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2011/09/14/how-to-explain-open-source-to-your-grandparents/&amp;rft.language=English"></span>
<abbr class="unapi-id" title="http://www.archaeogeek.com/blog/?p=550"><!-- &nbsp; --></abbr>
<p>I imagine I&#8217;m not alone in having parents and grandparents who don&#8217;t really understand what I do for a living. &#8220;I work in computing and do stuff with maps&#8221; is the easy approach (in fact it&#8217;s easier now that I don&#8217;t have to tag on the bit about being an archaeologist but not actually digging, and no it&#8217;s not like <a title="Time Team" href="http://www.channel4.com/history/microsites/T/timeteam/" target="_blank">Time Team</a> or <a title="Indiana Jones" href="http://en.wikipedia.org/wiki/Indiana_Jones" target="_blank">Indiana Jones</a>). Sometimes people ask why we don&#8217;t just &#8220;do everything with google maps&#8221;, which is the cue for a sit down and a longer chat about how (deep breath) you can&#8217;t do *everything* with google. So far, so good&#8230;</p>
<p>This all changed a couple of weeks ago, when, to my surprise I got elected to the <a title="OSGeo Board" href="http://www.osgeo.org/content/foundation/board_and_officers.html" target="_blank">Board of Directors of OSGeo</a>. Cue shock, and great rejoicing (and in my head at least, tearful Oscars-style acceptance speeches). <a title="CookandKaye" href="http://www.cookandkaye.co.uk" target="_blank">Mr Archaeogeek</a> thinks this is cool enough to tell parents, grandparents, family friends etc. I do too, don&#8217;t get me wrong, but&#8230;</p>
<p>How to explain what it means to people who don&#8217;t use computers all that much, let alone know about gis, or open source or OSGeo?</p>
<p>There have been a few <a title="Open source" href="http://relengofthenerds.blogspot.com/2010/06/how-to-explain-open-source-to-your.html" target="_blank">good</a> <a title="Beyond nerds bearing gifts" href="http://ht.ly/1ZZFL" target="_blank">articles</a> on how to explain why you work in open source (the &#8220;how do you make money?&#8221; argument), but I feel like I need to go further back and explain about software licensing. I don&#8217;t think that most people really understand the difference between the way software is sold/licensed, and most other products, so I&#8217;m working on a car analogy that explains why open source software needs to exist. It goes something like:</p>
<p>&#8220;Can you imagine, that if you brought a car, and something went wrong with it, you couldn&#8217;t lift up the bonnet and take a look? Or if you did need to take it to a garage you had to use the one the car salesman told you to use? Or after 2 years they told you that they wouldn&#8217;t support your old car any longer, and you had to buy a new one? Or you couldn&#8217;t insure more than one person to drive it, but had to buy a new car for each person? Well that&#8217;s sort of what closed-source software is like&#8221;</p>
<p>(Note this is an analogy-in-progress)</p>
<p>Once that&#8217;s out of the way, then I can get on to gis, and hence to OSGeo, and all is fine!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=Q9ljQi2TlDw:AgccbORsC1c:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=Q9ljQi2TlDw:AgccbORsC1c:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?i=Q9ljQi2TlDw:AgccbORsC1c:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=Q9ljQi2TlDw:AgccbORsC1c:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?i=Q9ljQi2TlDw:AgccbORsC1c:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=Q9ljQi2TlDw:AgccbORsC1c:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ComputingGisAndArchaeologyInTheUk/~4/Q9ljQi2TlDw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.archaeogeek.com/blog/2011/09/14/how-to-explain-open-source-to-your-grandparents/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.archaeogeek.com/blog/2011/09/14/how-to-explain-open-source-to-your-grandparents/</feedburner:origLink></item>
		<item>
		<title>Setting up a PostgreSQL standby server</title>
		<link>http://feedproxy.google.com/~r/ComputingGisAndArchaeologyInTheUk/~3/xG7ZwzamCXE/</link>
		<comments>http://www.archaeogeek.com/blog/2011/08/11/setting-up-a-postgresql-standby-servers/#comments</comments>
		<pubDate>Thu, 11 Aug 2011 17:15:43 +0000</pubDate>
		<dc:creator>Archaeogeek</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.archaeogeek.com/blog/?p=544</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Setting+up+a+PostgreSQL+standby+server&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=Uncategorized&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2011-08-11&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2011/08/11/setting-up-a-postgresql-standby-servers/&amp;rft.language=English"></span>
Over the last couple of months I have been investigating options for setting up a standby server for PostgreSQL, you know, the sort of magical thing that stops your day/night/week being totally wrecked when, to quote Joel Spolsky  you &#8220;go crying to the system administrator and asking piercingly sad questions about why the backup system is “temporarily” [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Setting+up+a+PostgreSQL+standby+server&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=Uncategorized&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2011-08-11&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2011/08/11/setting-up-a-postgresql-standby-servers/&amp;rft.language=English"></span>
<abbr class="unapi-id" title="http://www.archaeogeek.com/blog/?p=544"><!-- &nbsp; --></abbr>
<p>Over the last couple of months I have been investigating options for setting up a standby server for PostgreSQL, you know, the sort of magical thing that stops your day/night/week being totally wrecked when, to quote <a title="Joel Spolsky" href="http://www.joelonsoftware.com/" target="_blank">Joel Spolsky</a>  you &#8220;go crying to the system administrator and asking piercingly sad questions about <em>why</em> the backup system is “temporarily” out of commission and has been for the last eight months&#8221;. As a relative beginner to all of this, if you look in the PostgreSQL documentation, you will get totally overwhelmed and confused (well I did, anyway) as the information you need is spread across several chapters and is dense, even by the PostgreSQL documentation&#8217;s standards. So, when I found some documentation that was actually quite clear and concise, and got me through the process without too much angst, I thought I&#8217;d record my notes here. <strong>Big disclaimer- these are by no means comprehensive or complete. No flaming!</strong></p>
<p><strong>Useful links</strong></p>
<ul>
<li><a title="http://www.postgresql.org/docs/9.0/static/warm-standby.html" href="http://www.postgresql.org/docs/9.0/static/warm-standby.html" rel="nofollow">PostgreSQL official documentation</a></li>
<li>
<div><a title="http://eggie5.com/15-setting-up-pg9-streaming-replication" href="http://eggie5.com/15-setting-up-pg9-streaming-replication" rel="nofollow">Easier to follow but less comprehensive guide</a></div>
</li>
<li><a title="http://www.mkyong.com/database/postgresql-point-in-time-recovery-incremental-backup/" href="http://www.mkyong.com/database/postgresql-point-in-time-recovery-incremental-backup/" rel="nofollow">Also useful</a></li>
</ul>
<p><strong>Basic Idea</strong><br />
We are setting up a <strong>warm standby</strong> postgresql server with <strong>streaming replication</strong>. In the event of a failure of the primary server, the standby server will take over but will not be queryable until that point. Streaming replication reduces the window of data loss between a primary server failing and the standby server being in a position to take over.</p>
<p><strong>Important Notes</strong><br />
Additional network and operating system specific software will also be required to handle the change in IP address and the trigger to move the standby server into read/write mode (see later). The two servers must be as identical as possible. In particular the same version of postgresql must be installed and the servers must have the same architecture (32 or 64bit).</p>
<p><strong>Primary Server Preparation: postgresql.conf</strong></p>
<p>Set up continuous archiving on the primary server by setting the following parameters in postgresql.conf (note that the archive_command line has been split over two lines for readability- in real life that would be one line):</p>
<pre> archive_command = on
 archive_command = 'cp %p</pre>
<pre>   /location/where/write-ahead-logfiles/should/go/%f'
 wal_level = archive
 max_wal_senders = 5
 wal_keep_segments = 32
 listen_addresses='*'</pre>
<p>The location of the write-ahead-logfiles (WAL) should be accessible to both the primary and the standby server, and preferably remote from the primary server (for obvious reasons). The %p and %f symbols are specific to the archive_command and are substituted for the path and the file name respectively when the command is executed.</p>
<p><strong>Primary Server Preparation:</strong> <strong>pg_hba.conf</strong></p>
<p>Add a connection from the standby server to the main server as follows:</p>
<p>host replication [user] [addressrange] md5</p>
<p>The database name “replication” should not be changed- it&#8217;s a pseudo-database connection specifically to allow replication to take place and does not reflect an actual database.</p>
<p><strong>Standby server configuration</strong></p>
<p>Ensure that the location of the WAL files are accessible from the standby server and that a connection can be made to the database on the primary server.</p>
<p>Create a file called “recovery.conf” in the data directory for the standby server. This should have the following parameters as a minimum (the primary_conninfo command has been split over two lines here for readability):</p>
<pre> standby_mode='on'
 primary_conninfo = 'host=primaryhostIP user=databaseuser</pre>
<pre>   password=databasepassword port=port'
 trigger_file='/tmp/psql.trigger'
 restore_command = 'cp /path/to/WALfiles/%f %p'</pre>
<p>Substitute the correct connection details in primary_conninfo, and the path to the remote WAL logs as appropriate. Also substitute operating-system specific file copy commands in the restore_command entry. The trigger file does not have to exist at this point. Its purpose is to tell the standby server when to move into read/write mode (see later). You may also wish to replicate the settings from the primary server&#8217;s pg_hba.conf to ensure that all connections will be allowed in the event that the standby server is used.</p>
<p><strong>Take a base backup of the primary server</strong></p>
<p>A base backup is not the same as a database dump. It is a backup of all the files in the postgresql data directory. The location of this can vary. In linux, you can find it by running the following command at a command prompt:</p>
<pre> ps auxw | grep postgres | grep -- -D</pre>
<p>In any operating system, if you can connect to the database server (eg with pgadmin3) then enter the following SQL command:</p>
<pre> SHOW data_directory;</pre>
<p>You can take a backup of the data directory when the server is running, or when it is stopped. It is simplest to take it when the database server is stopped (and it need not be stopped for very long).</p>
<p><strong>Backing up data directory when postgresql is stopped</strong></p>
<ul>
<li>Stop the database in the appropriate way (eg /etc/init.d/postgresql stop on linux or stop the service in windows).</li>
<li>Backup the entirety of the data directory as found above, using whatever method you like, such as tar.</li>
<li>Copy the backup file to somewhere accessible to the standby server</li>
<li>Restart the database</li>
</ul>
<p><strong>Backing up the data directory without stopping postgresql</strong></p>
<ul>
<li>Connect to the database server as the postgres user and issue the following command (where &#8216;label&#8217; is anything you want to label the backup in the log files with):</li>
</ul>
<pre>SELECT pg_start_backup('label',true);</pre>
<ul>
<li>Disconnect from the server and back up the contents of the data directory as above</li>
<li>Connect to the database server as the postgres user and issue the following command:</li>
</ul>
<pre>SELECT pg_stop_backup();</pre>
<ul>
<li>Copy the backup file to somewhere accessible to the standby server</li>
</ul>
<p><strong>Restoring the backup to the standby server</strong></p>
<ul>
<li>Stop the postgresql service on the standby server by the appropriate means.</li>
<li>Replace the contents of the database directory with that from the backup, being sure not to overwrite recovery.conf</li>
<li>Start the postgresql service.</li>
</ul>
<p>If you watch the log files on the standby server you should see that it will reach a stage where it is successfully connected to the primary server. Errors about the cp command not being able to find archive files are usually non-fatal, as are entries about zero-length logfiles. However, if your log files show other errors, then it is likely that the base backup has not been correctly restored. Try redoing this with the postgresql service stopped to avoid issues.</p>
<p><strong>Note</strong></p>
<p>We have set up a warm standby server in this scenario. This means that you cannot connect to the standby database with psql or pgadmin3 to check that it is working! The log files will simply show a cycle of synchronising with the WAL files from the remote location, and then attempting replication via TCP with the primary server.</p>
<p><strong>How to bring up the standby server</strong></p>
<p>In the event of a failure in the primary server, something (e.g. a heartbeat process) needs to create the trigger_file in the location specified in the standby server recovery.conf file. This can be an empty file, so on linux a simple “touch” command will be enough. Once the standbyserver recognises this file, it will switch to read/write mode. This is clear from the log files, and database connections will be allowed.</p>
<p>The recovery.conf file will be automatically renamed recovery.done once successful recovery has taken place.</p>
<p>In the event that the primary server is reinstated, it will be necessary to synchronise the two databases- the base backup procedure run on the standby server should be sufficient.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=xG7ZwzamCXE:AnOb5ZX96pc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=xG7ZwzamCXE:AnOb5ZX96pc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?i=xG7ZwzamCXE:AnOb5ZX96pc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=xG7ZwzamCXE:AnOb5ZX96pc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?i=xG7ZwzamCXE:AnOb5ZX96pc:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=xG7ZwzamCXE:AnOb5ZX96pc:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ComputingGisAndArchaeologyInTheUk/~4/xG7ZwzamCXE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.archaeogeek.com/blog/2011/08/11/setting-up-a-postgresql-standby-servers/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.archaeogeek.com/blog/2011/08/11/setting-up-a-postgresql-standby-servers/</feedburner:origLink></item>
		<item>
		<title>OSGIS 2011 Round-up</title>
		<link>http://feedproxy.google.com/~r/ComputingGisAndArchaeologyInTheUk/~3/3g7x5mLIlNg/</link>
		<comments>http://www.archaeogeek.com/blog/2011/07/15/osgis-2011-round-up/#comments</comments>
		<pubDate>Fri, 15 Jul 2011 10:32:25 +0000</pubDate>
		<dc:creator>Archaeogeek</dc:creator>
				<category><![CDATA[opensource]]></category>
		<category><![CDATA[Ordnance Survey]]></category>
		<category><![CDATA[OSGEO]]></category>

		<guid isPermaLink="false">http://www.archaeogeek.com/blog/?p=539</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=OSGIS+2011+Round-up&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=opensource&amp;rft.subject=Ordnance+Survey&amp;rft.subject=OSGEO&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2011-07-15&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2011/07/15/osgis-2011-round-up/&amp;rft.language=English"></span>
Woefully out of date now, here&#8217;s a quick run down on the OSGIS 2011 conference, 3rd in that series, held at the University of Nottingham Centre for Geospatial Sciences in Nottingham over the 21st and 22nd of June. The 21st was a day of workshops, under the banner of Interoperability and the OGC. My new [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=OSGIS+2011+Round-up&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=opensource&amp;rft.subject=Ordnance+Survey&amp;rft.subject=OSGEO&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2011-07-15&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2011/07/15/osgis-2011-round-up/&amp;rft.language=English"></span>
<abbr class="unapi-id" title="http://www.archaeogeek.com/blog/?p=539"><!-- &nbsp; --></abbr>
<p>Woefully out of date now, here&#8217;s a quick run down on the<a title="OSGIS 2011" href="http://cgs.nottingham.ac.uk/~osgis11/os_home.html" target="_blank"> OSGIS 2011 conference</a>, 3rd in that series, held at the University of Nottingham Centre for Geospatial Sciences in Nottingham over the 21st and 22nd of June.</p>
<p>The 21st was a day of workshops, under the banner of Interoperability and the OGC. My new colleague, Matt, and I did a workshop on using Ordnance Survey Open Data and Mastermap with Mapserver and PostgreSQL, using the OSGeo Live DVD. You can see a slightly edited version of the workshop below, or on <a title="Workshop 2011" href="http://www.slideshare.net/Archaeogeek/consuming-and-publishing-ordnance-survey-open-data-with-open-source-software" target="_blank">slideshare</a>. I have to admit that most of the kudos must go to Matt for creating some super scripts to make the initial data processing *much* easier, and to some of my other colleagues for their efforts in styling the data once it&#8217;s in Mapserver. The scripts and a small subset of the open data are available <a title="Wokshop Scripts" href="http://download.astuntechnology.com/public/Workshop2011.zip" target="_blank">here</a>- you&#8217;ll have to supply your own Mastermap!</p>
<div id="__ss_8603040" style="width: 425px;"><strong style="display: block; margin: 12px 0 4px;"><a title="Consuming and Publishing Ordnance Survey Open Data with Open Source Software" href="http://www.slideshare.net/Archaeogeek/consuming-and-publishing-ordnance-survey-open-data-with-open-source-software" target="_blank">Consuming and Publishing Ordnance Survey Open Data with Open Source Software</a></strong> <iframe src="http://www.slideshare.net/slideshow/embed_code/8603040" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" width="425" height="355"></iframe></p>
<div style="padding: 5px 0 12px;">View more <a href="http://www.slideshare.net/" target="_blank">presentations</a> from <a href="http://www.slideshare.net/Archaeogeek" target="_blank">Joanne Cook</a></div>
</div>
<p>Day Two was all about the <a title="OSGIS 2011 Agenda" href="http://cgs.nottingham.ac.uk/~osgis11/Agenda.pdf" target="_blank">talks</a>- and I was impressed by the standard. The focus of OSGIS has always leant slightly towards the academic, so the stand-out talks for me were the ones that demonstrated that you can do real spatial analysis with open source GIS. There were also some very good papers on mapping in the developing world. Two of my ex-colleagues from Oxford Archaeology also did a joint paper showing how the use of open source software has progressed there- that was really good to see- it was nice to know that the baton had been passed on when I left! I gave people an introduction to the OSGeo:UK local chapter, which is also available on Slideshare <a title="OSGeo:UK an introduction" href="http://www.slideshare.net/Archaeogeek/introduction-to-osgeouk" target="_blank">here</a>, and we had the chapter AGM. It&#8217;s extremely gratifying to see the numbers of people willing to hear about, and get involved with, the local chapter. I was going back through the reports I&#8217;d given in previous years, and the numbers of people signed up to our mailing list steadily creep up, year on year- we&#8217;re now well over the 100 people mark! (BTW, if you&#8217;re interested, our website is <a title="OSGeo:UK" href="http://www.osgeo.org/uk" target="_blank">here</a>).</p>
<p>All in all it was a really good couple of days. Next year the conference will be running from the 4th to the 5th of September, so for anyone that can&#8217;t make FOSS4G and wants to give OSGIS a try, now&#8217;s your chance!</p>
<p>&nbsp;</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=3g7x5mLIlNg:A9FjRblqVUM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=3g7x5mLIlNg:A9FjRblqVUM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?i=3g7x5mLIlNg:A9FjRblqVUM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=3g7x5mLIlNg:A9FjRblqVUM:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?i=3g7x5mLIlNg:A9FjRblqVUM:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=3g7x5mLIlNg:A9FjRblqVUM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ComputingGisAndArchaeologyInTheUk/~4/3g7x5mLIlNg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.archaeogeek.com/blog/2011/07/15/osgis-2011-round-up/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.archaeogeek.com/blog/2011/07/15/osgis-2011-round-up/</feedburner:origLink></item>
		<item>
		<title>Conference Organisation for Beginners</title>
		<link>http://feedproxy.google.com/~r/ComputingGisAndArchaeologyInTheUk/~3/BrrKrQBt9BI/</link>
		<comments>http://www.archaeogeek.com/blog/2011/06/03/conference-organisation-for-beginners/#comments</comments>
		<pubDate>Fri, 03 Jun 2011 16:27:53 +0000</pubDate>
		<dc:creator>Archaeogeek</dc:creator>
				<category><![CDATA[AGI]]></category>

		<guid isPermaLink="false">http://www.archaeogeek.com/blog/?p=537</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Conference+Organisation+for+Beginners&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=AGI&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2011-06-03&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2011/06/03/conference-organisation-for-beginners/&amp;rft.language=English"></span>
I&#8217;ve been attending the AGI GeoCommunity Conference here in the UK for a few years now- and this year the AGI kindly asked me if I would sit on the working group for organising GeoCommunity 2011. Being completely new to conference organisation, and wanting to get some experience for the glorious day when OSGeo:UK holds [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Conference+Organisation+for+Beginners&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=AGI&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2011-06-03&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2011/06/03/conference-organisation-for-beginners/&amp;rft.language=English"></span>
<abbr class="unapi-id" title="http://www.archaeogeek.com/blog/?p=537"><!-- &nbsp; --></abbr>
<p>I&#8217;ve been attending the <a title="AGI GeoCommunity" href="http://www.agi.org.uk/geocommunity/" target="_blank">AGI GeoCommunity Conference</a> here in the UK for a few years now- and this year the AGI kindly asked me if I would sit on the working group for organising GeoCommunity 2011. Being completely new to conference organisation, and wanting to get some experience for the glorious day when <a title="OSGeo:UK" href="http://www.osgeo.org/uk" target="_blank">OSGeo:UK</a> holds <a title="FOSS4G" href="http://foss4g.org/static/index.html" target="_blank">FOSS4G</a> in the UK, I jumped at the chance. This year&#8217;s event takes place from September 20-22nd, in Nottingham (a departure from previous years, where it has been in Stratford-upon-Avon),  but the working group has met a couple of times already to get things organised. To be honest, the AGI team themselves do most of the hard work, along with the Conference Chair, but the working group decides on things like keynote and plenary speakers, assesses the papers, and decides on really important things like the theme for the party. At the event itself, I understand we have the exciting business of stuffing all the conference bags with flyers, as well as being visible through the event to help people out, moderate sessions, keep speakers to time etc.</p>
<p>Last week we all met in Nottingham to work through the paper selection.  This year, around 80 abstracts were received, for approximately 50 slots. The AGI uses a blind marking process for selecting papers, so we all received the abstracts with the names and any organisational details removed and had to rank them in order. This is remarkably hard to do! It&#8217;s quite easy to identify the best and the worst papers, but deciding on the relative merits of (say) papers 53-67 is very difficult. It&#8217;s also hard to be objective about this kind of thing- everyone has their own particular likes and dislikes, and their own area of expertise. However, with a working group that represents a diverse range of interests, we did end up with a reasonable consensus at the end of this process. After the blind marking, considerably more paper shuffling took place to get a balanced set of conference streams.  Grouping papers into coherent sessions and balancing out speakers was probably the hardest part of the whole process (yes, by now we knew the authors names!). The whole process was a lot of fun, including the occasional acts of sabotage as papers were (literally) stolen from one stream to go into another.</p>
<p>In a completely non-scientific assessment of the abstracts- &#8220;openness&#8221; was reasonably popular, although perhaps more from an open/crowd sourced data perspective rather than open source software. In the final programme, however, open source software gets a mention in a number of papers spread across pretty much all of the streams. With hindsight I&#8217;m happy that this is the right approach as it avoids ghetto-ising open source solutions rather than presenting them as viable solutions to every day problems. The whole open/crowd-sourced data debate does get its own stream though, as it&#8217;s such a popular topic at the moment.</p>
<p>All in all, I have to say I&#8217;m in awe of the AGI staff who make all of this look so easy. I&#8217;m also really looking forward to the event, as the <a title="GeoCommunity Programme" href="http://www.agi.org.uk/agi-news/2011/5/31/agi-geocommunity-11-conference-programme-announced.html" target="_blank">programme</a> looks really good, and the new <a title="East Midlands Conference Centre" href="http://assgeoinf.squarespace.com/conference-accommodation/" target="_blank">venue</a> should be fantastic. If you&#8217;re interested, <a title="Booking" href="http://www.agi.org.uk/agi-geocommunity-registration/#PriceList" target="_blank">early bird bookings</a> are available till the end of July. For those that know about the now infamous AGI soap-box georant- it&#8217;s new location will be superb&#8230;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=BrrKrQBt9BI:5H3T1zzrEnM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=BrrKrQBt9BI:5H3T1zzrEnM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?i=BrrKrQBt9BI:5H3T1zzrEnM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=BrrKrQBt9BI:5H3T1zzrEnM:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?i=BrrKrQBt9BI:5H3T1zzrEnM:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=BrrKrQBt9BI:5H3T1zzrEnM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ComputingGisAndArchaeologyInTheUk/~4/BrrKrQBt9BI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.archaeogeek.com/blog/2011/06/03/conference-organisation-for-beginners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.archaeogeek.com/blog/2011/06/03/conference-organisation-for-beginners/</feedburner:origLink></item>
		<item>
		<title>Quick links, or things I’ve learnt this week</title>
		<link>http://feedproxy.google.com/~r/ComputingGisAndArchaeologyInTheUk/~3/lUc47KG0lD4/</link>
		<comments>http://www.archaeogeek.com/blog/2011/05/20/quick-links-or-things-ive-learnt-this-week/#comments</comments>
		<pubDate>Fri, 20 May 2011 08:13:41 +0000</pubDate>
		<dc:creator>Archaeogeek</dc:creator>
				<category><![CDATA[databases]]></category>
		<category><![CDATA[QGIS]]></category>
		<category><![CDATA[Tip]]></category>

		<guid isPermaLink="false">http://www.archaeogeek.com/blog/?p=534</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Quick+links%2C+or+things+I%26%238217%3Bve+learnt+this+week&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=databases&amp;rft.subject=QGIS&amp;rft.subject=Tip&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2011-05-20&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2011/05/20/quick-links-or-things-ive-learnt-this-week/&amp;rft.language=English"></span>
A quick note on some really useful things I&#8217;ve picked up this week. They might only be new to me, but I thought I&#8217;d jot them down for the sake of future google searches&#8230; Crosstab Queries: These are those clever queries that take a set of records, aggregate them up, and transpose the rows into [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Quick+links%2C+or+things+I%26%238217%3Bve+learnt+this+week&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=databases&amp;rft.subject=QGIS&amp;rft.subject=Tip&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2011-05-20&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2011/05/20/quick-links-or-things-ive-learnt-this-week/&amp;rft.language=English"></span>
<abbr class="unapi-id" title="http://www.archaeogeek.com/blog/?p=534"><!-- &nbsp; --></abbr>
<p>A quick note on some really useful things I&#8217;ve picked up this week. They might only be new to me, but I thought I&#8217;d jot them down for the sake of future google searches&#8230;</p>
<p>Crosstab Queries: These are those clever queries that take a set of records, aggregate them up, and transpose the rows into columns. In Microsoft Access there is a wizard for doing this, but in PostgreSQL you have to do it the hard way.  Fortunately, it turns out it&#8217;s not *that* hard! The official documentation is <a title="Official crosstab documentation" href="http://www.postgresql.org/docs/8.3/static/tablefunc.html" target="_blank">here</a>, and there&#8217;s a very good tutorial <a title="Crosstab tutorial" href="http://www.postgresonline.com/journal/archives/14-CrossTab-Queries-in-PostgreSQL-using-tablefunc-contrib.html" target="_blank">here</a>, showing you how to circumvent some of the restrictions on the final table, such as adding a total column and row, or adding additional columns.  All I&#8217;d like to add to the tutorial is that you must be careful about how you create your basic aggregate query (returning the records that you wish to transpose), because it&#8217;s easy to return a crosstab that doesn&#8217;t group your results as you&#8217;d like them to. Check it carefully!</p>
<p><a title="QGIS table manager" href="http://bwj.aster.net.pl/qgis/#tablemanager" target="_blank">QGIS Table Manager Plugin</a>: I don&#8217;t know how I managed to miss this one, but having found it, I&#8217;ve used it intensively this week. Something that&#8217;s not entirely clear when using QGIS is that many of the attribute table management options, such as adding, renaming, or deleting columns are only available when using PostGIS tables. This is frustrating, because the options are present when working with other file types, but are not active. Enter the table manager plugin by <a title="Borys Jurgiel" href="http://bwj.aster.net.pl/" target="_blank">Borys Jurgiel</a>, which you can install from the third-party repositories. It&#8217;s still quite basic, in that it only works on shapefiles (I think)- but it allows you to re-order and rename columns as well as adding and deleting them. For those people that fall back to the perilous route of editing the dbf in a spreadsheet package, it&#8217;s a life-saver (What, you&#8217;ve accidentally sorted your dbf in a different order to your shp? Oh dear, that&#8217;s your attributes attached to the wrong features then).</p>
<p><a title="Open Office Presentation Minimizer" href="http://extensions.services.openoffice.org/en/project/PresentationMinimizer" target="_blank">Open Office Presentation Minimizer</a>: Not quite GIS, though tested on a GIS-related presentation that I&#8217;m writing! This takes all the pain out of optimising images in your presentations to keep the file-size down whilst also maintaining image quality. You install it by downloading the oxt and adding it using the Open Office Extensions Manager,  unless you are using Ubuntu where this will appear to install correctly but remain inactive regardless of how many times you open and close Open Office Impress. For Ubuntu, find the package in the <a title="openoffice.org-presentation-minimizer" href="http://packages.ubuntu.com/maverick/openoffice.org-presentation-minimizer" target="_blank">standard repositories</a> and install using apt-get or your installer of choice. Do note the american spelling of &#8220;minimiz(s)er&#8221;, for those of us in the UK. I assume this will also work in <a title="LibreOffice" href="http://www.libreoffice.org/" target="_blank">LibreOffice</a> as well as Open Office.</p>
<p>&nbsp;</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=lUc47KG0lD4:aU2GboX_3Mk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=lUc47KG0lD4:aU2GboX_3Mk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?i=lUc47KG0lD4:aU2GboX_3Mk:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=lUc47KG0lD4:aU2GboX_3Mk:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?i=lUc47KG0lD4:aU2GboX_3Mk:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=lUc47KG0lD4:aU2GboX_3Mk:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ComputingGisAndArchaeologyInTheUk/~4/lUc47KG0lD4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.archaeogeek.com/blog/2011/05/20/quick-links-or-things-ive-learnt-this-week/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.archaeogeek.com/blog/2011/05/20/quick-links-or-things-ive-learnt-this-week/</feedburner:origLink></item>
		<item>
		<title>QGIS gets a Mastermap Loader (or: why open source is so cool)</title>
		<link>http://feedproxy.google.com/~r/ComputingGisAndArchaeologyInTheUk/~3/zbjq3ov1V3Q/</link>
		<comments>http://www.archaeogeek.com/blog/2011/04/18/qgis-gets-a-mastermap-loader-or-why-open-source-is-so-cool/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 18:32:34 +0000</pubDate>
		<dc:creator>Archaeogeek</dc:creator>
				<category><![CDATA[opensource]]></category>
		<category><![CDATA[Ordnance Survey]]></category>
		<category><![CDATA[QGIS]]></category>

		<guid isPermaLink="false">http://www.archaeogeek.com/blog/?p=530</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=QGIS+gets+a+Mastermap+Loader+%28or%3A+why+open+source+is+so+cool%29&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=opensource&amp;rft.subject=Ordnance+Survey&amp;rft.subject=QGIS&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2011-04-18&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2011/04/18/qgis-gets-a-mastermap-loader-or-why-open-source-is-so-cool/&amp;rft.language=English"></span>
A short case study into flexibility, collaboration, and why open source software is so damned cool: At my new place of employment, we&#8217;re doing a lot of work with Ordnance Survey Mastermap data, so one of my colleagues built a quick python wrapper around the ogr2ogr script to easily pop the data into postgresql, or [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=QGIS+gets+a+Mastermap+Loader+%28or%3A+why+open+source+is+so+cool%29&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=opensource&amp;rft.subject=Ordnance+Survey&amp;rft.subject=QGIS&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2011-04-18&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2011/04/18/qgis-gets-a-mastermap-loader-or-why-open-source-is-so-cool/&amp;rft.language=English"></span>
<abbr class="unapi-id" title="http://www.archaeogeek.com/blog/?p=530"><!-- &nbsp; --></abbr>
<p>A short case study into flexibility, collaboration, and why open source software is so damned cool:</p>
<p>At <a title="Astun technology" href="http://www.isharemaps.com/" target="_blank">my new place of employment,</a> we&#8217;re doing a lot of work with Ordnance Survey Mastermap data, so one of my colleagues built a quick python wrapper around the ogr2ogr script to easily pop the data into postgresql, or shape file, or whatever support format you like. This is now available on <a title="OSMM Loader" href="https://github.com/AstunTechnology/osmmloader" target="_blank">Github</a> (caveat- it doesn&#8217;t do change-only updates yet- we&#8217;ll keep you posted on that). After a chance comment on the OSGeo:UK mailing list, our friends at <a title="Faunalia" href="http://www.faunalia.it/en/home" target="_blank">Faunalia</a>, who do great things with Quantum GIS, ported the code into a <a title="QGIS plugin" href="http://moses.faunalia.co.uk/qgis/plugins/plugins.xml" target="_blank">QGIS plugin</a>.</p>
<p>So- in the space of one week, QGIS gained itself a Mastermap loader, through a simple bit of collaboration. Nice work guys! (Nothing to do with me, I was on holiday). Can you get that sort of flexibility, rapidity and collaboration with (insert your favourite proprietary package here)? I doubt it&#8230;</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=zbjq3ov1V3Q:TYZvbasqIGw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=zbjq3ov1V3Q:TYZvbasqIGw:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?i=zbjq3ov1V3Q:TYZvbasqIGw:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=zbjq3ov1V3Q:TYZvbasqIGw:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?i=zbjq3ov1V3Q:TYZvbasqIGw:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?a=zbjq3ov1V3Q:TYZvbasqIGw:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ComputingGisAndArchaeologyInTheUk?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ComputingGisAndArchaeologyInTheUk/~4/zbjq3ov1V3Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.archaeogeek.com/blog/2011/04/18/qgis-gets-a-mastermap-loader-or-why-open-source-is-so-cool/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.archaeogeek.com/blog/2011/04/18/qgis-gets-a-mastermap-loader-or-why-open-source-is-so-cool/</feedburner:origLink></item>
	</channel>
</rss>

