<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml"
>

<channel>
	<title>Open Source Computing and GIS in the UK &#187; databases</title>
	<atom:link href="http://www.archaeogeek.com/blog/category/databases/feed/" rel="self" type="application/rss+xml" />
	<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>
		<item>
		<title>Quick links, or things I&#8217;ve learnt this week</title>
		<link>http://www.archaeogeek.com/blog/2011/05/20/quick-links-or-things-ive-learnt-this-week/</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>
]]></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>
		</item>
		<item>
		<title>Database replication</title>
		<link>http://www.archaeogeek.com/blog/2008/11/21/database-replication/</link>
		<comments>http://www.archaeogeek.com/blog/2008/11/21/database-replication/#comments</comments>
		<pubDate>Fri, 21 Nov 2008 16:47:04 +0000</pubDate>
		<dc:creator>Archaeogeek</dc:creator>
				<category><![CDATA[databases]]></category>
		<category><![CDATA[portable_GIS]]></category>

		<guid isPermaLink="false">http://www.archaeogeek.com/blog/?p=265</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=Database+replication&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=databases&amp;rft.subject=portable_GIS&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2008-11-21&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2008/11/21/database-replication/&amp;rft.language=English"></span>
Part of my fabulous new plans for portable gis (which will be revealed soon-ish) involve including a database replication option. This might or might not work on the USB drive, but it needs to be open source, portable, and connect to postgresql at the very least. I have been looking at a couple of options [...]]]></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=Database+replication&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=databases&amp;rft.subject=portable_GIS&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2008-11-21&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2008/11/21/database-replication/&amp;rft.language=English"></span>
<abbr class="unapi-id" title="http://www.archaeogeek.com/blog/?p=265"><!-- &nbsp; --></abbr>
<p>Part of my fabulous new plans for portable gis (which will be revealed soon-ish) involve including a database replication option. This might or might not work on the USB drive, but it needs to be open source, portable, and connect to postgresql at the very least. I have been looking at a couple of options for this, without a vast amount of success, it has to be said.</p>
<p>The packages that I have tried are: <a title="Daffodil Replicator" href="http://sourceforge.net/projects/daffodilreplica/" target="_self">Daffodil Replicator</a>, <a title="dbreplicator" href="http://dbreplicator.org/" target="_blank">dbreplicator </a>(a fork of daffodil replicator), <a title="Symmetric DS" href="http://symmetricds.sourceforge.net/" target="_blank">Symmetric-DS</a>, and <a title="db-connector" href="https://db-connector.forge.funambol.org/" target="_blank">db -connector for Funambol</a>. Of these, daffodil and dbreplicator seem like the best bet as they will attempt to do some conflict resolution (eg when the same record is added/altered in both databases). They are also java-based, so should be nicely configurable. Symmetric-DS works well, but doesn&#8217;t do conflict resolution, so that kind of rules it out for me. I don&#8217;t really know about db-connector for funambol as the documentation that I found was quite out of date and I didn&#8217;t get very far with it.</p>
<p>So, daffodil replicator and dbreplicator&#8230;</p>
<p>They are quite easy to set up, although the documentation in both cases assumes rather more end-user knowledge than perhaps they should do. Basically you find an appropriate jdbc jar file for your database, grab log4j.jar from somewhere, and tell daffodilreplicator/dbreplicator where to find it, by setting appropriate paths in batch files. Then you start the publication server and set up the details for your &#8220;master&#8221; database, and then do the same for the subscription server and the &#8220;client&#8221; database. Both are clever enough to translate between different database types, such as postgresql and mysql, which in some cases would be really handy.</p>
<p>My difficulty with both flavours of the package came when creating the &#8220;subscription&#8221;, ie telling the client database where to go find the master database. In neither case have I been able to sucessfully set this up, because of various errors. Weirdly, both flavours of the package give me an error in my log file about the first ever subscription that I tried to set up, despite having reinstalled, deleted everything I could find, and started from scratch several times.</p>
<p>The documentation in both cases hasn&#8217;t been good enough to resolve my issues, and neither have the forums. Actually, I&#8217;m still waiting on dbreplicator, which seems to be a little more active, so I should give them the benefit of the doubt for a couple of days.</p>
<p>I can see a great need for this kind of setup, assuming I can get around these initial teething troubles. So, my question is, has anyone successfully set up any of these packages on windows (sorry, but it needs to be windows at this stage), or does anyone know of any other packages I should try?</p>
<p>If I do manage to get things sorted I&#8217;ll post a detailed how-to&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.archaeogeek.com/blog/2008/11/21/database-replication/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Thursday Tip Day: Running PostgreSQL without making it a service</title>
		<link>http://www.archaeogeek.com/blog/2007/12/06/thursday-tip-day-running-postgresql-without-making-it-a-service/</link>
		<comments>http://www.archaeogeek.com/blog/2007/12/06/thursday-tip-day-running-postgresql-without-making-it-a-service/#comments</comments>
		<pubDate>Thu, 06 Dec 2007 14:08:26 +0000</pubDate>
		<dc:creator>Archaeogeek</dc:creator>
				<category><![CDATA[databases]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.archaeogeek.com/blog/2007/12/06/thursday-tip-day-running-postgresql-without-making-it-a-service/</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=Thursday+Tip+Day%3A+Running+PostgreSQL+without+making+it+a+service&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=databases&amp;rft.subject=Tip&amp;rft.subject=windows&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2007-12-06&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2007/12/06/thursday-tip-day-running-postgresql-without-making-it-a-service/&amp;rft.language=English"></span>
PostgreSQL from 8.2 onwards can be run easily from the command line in windows, without setting up as a service. Go to your postgresql/bin folder and at a command line type: pg_ctl start -D location\of\your\data\folder (as specified in initdb) -l logfile This should output a notice telling you whether the server has started up correctly. [...]]]></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=Thursday+Tip+Day%3A+Running+PostgreSQL+without+making+it+a+service&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=databases&amp;rft.subject=Tip&amp;rft.subject=windows&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2007-12-06&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2007/12/06/thursday-tip-day-running-postgresql-without-making-it-a-service/&amp;rft.language=English"></span>
<abbr class="unapi-id" title="http://www.archaeogeek.com/blog/2007/12/06/thursday-tip-day-running-postgresql-without-making-it-a-service/"><!-- &nbsp; --></abbr>
<p>PostgreSQL from 8.2 onwards can be run easily from the command line in windows, without setting up as a service.</p>
<p>Go to your postgresql/bin folder and at a command line type:</p>
<blockquote><p>pg_ctl start -D location\of\your\data\folder (as specified in initdb) -l logfile</p></blockquote>
<p>This should output a notice telling you whether the server has started up correctly. It also saves output to a logfile in the bin folder. If the server starts without incident, open another command window at the same location and type:</p>
<blockquote><p>psql -d yourdatabase</p></blockquote>
<p>This will allow you to use PostgreSQL as a command line tool.</p>
<p>To stop the server, type (in your second command window):</p>
<blockquote><p>pg_ctl stop -D location\of\your\data\folder</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.archaeogeek.com/blog/2007/12/06/thursday-tip-day-running-postgresql-without-making-it-a-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Archaeogeek Tumblog</title>
		<link>http://www.archaeogeek.com/blog/2007/05/10/archaeogeek-tumblog/</link>
		<comments>http://www.archaeogeek.com/blog/2007/05/10/archaeogeek-tumblog/#comments</comments>
		<pubDate>Thu, 10 May 2007 09:28:01 +0000</pubDate>
		<dc:creator>Archaeogeek</dc:creator>
				<category><![CDATA[archaeology]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[databases]]></category>

		<guid isPermaLink="false">http://www.archaeogeek.com/blog/2007/05/10/archaeogeek-tumblog/</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=Archaeogeek+Tumblog&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=archaeology&amp;rft.subject=blog&amp;rft.subject=databases&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2007-05-10&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2007/05/10/archaeogeek-tumblog/&amp;rft.language=English"></span>
A post from Daily Cup of Tech a while ago inspired me to add a &#8220;tumblog&#8221; to my site, for short-format posts on tips and tricks. I will be posting to this regularly to build up a library of code snippets, linux and windows tips and archaeological information. It&#8217;s taking me a while to get [...]]]></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=Archaeogeek+Tumblog&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=archaeology&amp;rft.subject=blog&amp;rft.subject=databases&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2007-05-10&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2007/05/10/archaeogeek-tumblog/&amp;rft.language=English"></span>
<abbr class="unapi-id" title="http://www.archaeogeek.com/blog/2007/05/10/archaeogeek-tumblog/"><!-- &nbsp; --></abbr>
<p>A post from <a href="http://www.dailycupoftech.com/2007/03/24/diy-wordpress-tumblog/" title="Daily Cup of Tech" target="_blank">Daily Cup of Tech</a> a while ago inspired me to add a &#8220;<a href="http://www.archaeogeek.com/tumblog" title="Archaeogeek Tumblog">tumblog</a>&#8221; to my site, for short-format posts on tips and tricks. I will be posting to this regularly to build up a library of code snippets, linux and windows tips and archaeological information.</p>
<p><span id="more-56"></span><br />
It&#8217;s taking me a while to get it properly integrated into the site, but the feed is working and can be <a href="http://www.archaeogeek.com/tumblog?feed=rss2" title="Tumblog feed" target="_blank">subscribed</a> to separately from the <a href="http://www.archaeogeek.com/blog?feed=rss2" title="Archaeogeek rss" target="_blank">main site rss</a>.</p>
<p>My main incentive for doing this was to make it easier to post little snippets of useful information in a form that is useful to me and hopefully to others. Until now, I had been writing these down in a moleskine that normally resides on my desk at work, but of course when I&#8217;m at home that information is pretty useless!</p>
<p>The next plan is to set a shell script on my zaurus (yes I do still use it despite <a href="http://www.archaeogeek.com/blog/2007/02/01/evolving-gtd/" title="Analogue GTD" target="_blank">my move</a> to analogue GTD) that downloads a copy of it for offline reference- inspired by a <a href="http://lifehacker.com/software/download-managers/geek-to-live--wget-local-copies-of-your-online-research-delicious-digg-or-google-notebook-200360.php" title="Lifehacker wget" target="_blank">lifehacker </a>article about using wget to download copies of del.icio.us and google notebook for offline use.</p>
<p>The <a href="http://www.dailycupoftech.com/2007/03/24/diy-wordpress-tumblog/" title="Daily cup of tech" target="_blank">daily cup of tech article</a> is the best to read for instructions on how to do it yourself- the only tip I can add is that if you are on a web host that only allows one database, it is possible to edit your wordpress config file to change the table prefix for the new blog and include multiple blogs in the same database. This does of course lay you open to risks if you break something, so it might be better to pay the extra money for a new database (thus speaks the voice of experience&#8230;).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.archaeogeek.com/blog/2007/05/10/archaeogeek-tumblog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Portable GIS redux</title>
		<link>http://www.archaeogeek.com/blog/2007/05/02/portable-gis-redux/</link>
		<comments>http://www.archaeogeek.com/blog/2007/05/02/portable-gis-redux/#comments</comments>
		<pubDate>Wed, 02 May 2007 11:22:23 +0000</pubDate>
		<dc:creator>Archaeogeek</dc:creator>
				<category><![CDATA[databases]]></category>
		<category><![CDATA[GIS]]></category>
		<category><![CDATA[openlayers]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[Postgis]]></category>

		<guid isPermaLink="false">http://www.archaeogeek.com/blog/2007/05/02/portable-gis-redux/</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=Portable+GIS+redux&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=databases&amp;rft.subject=GIS&amp;rft.subject=openlayers&amp;rft.subject=opensource&amp;rft.subject=Postgis&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2007-05-02&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2007/05/02/portable-gis-redux/&amp;rft.language=English"></span>
This is an idea that seems to come up every so often- what GIS programmes can you run from a USB stick. Well it appears that the list has just got longer. I&#8217;m probably the last person to realise it&#8217;s possible to do this, but I was really pleased to see that both GRASS and [...]]]></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=Portable+GIS+redux&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=databases&amp;rft.subject=GIS&amp;rft.subject=openlayers&amp;rft.subject=opensource&amp;rft.subject=Postgis&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2007-05-02&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2007/05/02/portable-gis-redux/&amp;rft.language=English"></span>
<abbr class="unapi-id" title="http://www.archaeogeek.com/blog/2007/05/02/portable-gis-redux/"><!-- &nbsp; --></abbr>
<p>This is an idea that seems to come up every so often- what GIS programmes can you run from a <a href="http://www.spatiallyadjusted.com/2006/02/23/gis-in-your-pocket/" title="Pocket GIS" target="_blank">USB stick</a>. Well it appears that the list has just got longer. I&#8217;m probably the last person to realise it&#8217;s possible to do this, but I was really pleased to see that both <a href="http://grass.itc.it/" title="GRASS" target="_blank">GRASS </a>and <a href="http://www.postgresql.org/" title="PostgreSQL" target="_blank">PostgreSQL </a>can now be run from a USB stick, along with <a href="http://qgis.org/" title="QGis" target="_blank">QGIS</a>, <a href="http://www.apachefriends.org/en/xampp.html" title="XAMPP" target="_blank">XAMPP</a> (inc <a href="http://mapserver.gis.umn.edu/" title="Mapserver" target="_blank">Mapserver</a>, <a href="http://www.openlayers.org/" title="Openlayers" target="_blank">OpenLayers</a>, <a href="http://www.tilecache.org/" title="Tilecache" target="_blank">Tilecache</a>), and <a href="http://fwtools.maptools.org/" title="FWTools" target="_blank">FWTools</a>.</p>
<p>Before I go any further, I should state that my aims for creating a portable GIS are not so much having a production GIS setup on a stick, because obviously performance and storage are an issue, but it might be useful for demonstration purposes, and I do feel as if the take up of these opensource tools might be more if they were easier to install and came in one handy package. So what I really want to achieve is a single portable package, probably a zip-file, that can be downloaded and unzipped onto a Window pc (they can learn about the joys of linux once we&#8217;ve won them over to the basic concept of opensource). No separate downloads, long installation and configuration processes, just a zip file. I do also like having portable packages on my main computer, as if it breaks it&#8217;s a lot easier to reconstruct the setup!</p>
<p>The light-bulb moment for me was when <a href="http://leifuss.wordpress.com/" title="Archaetech" target="_blank">Leif </a>told me that he had seen GRASS working on a USB stick using <a href="http://www.mingw.org/msys.shtml" title="Msys" target="_blank">Msys </a>at the recent <a href="http://leifuss.wordpress.com/2007/04/19/caa-part-ii/" title="CAA" target="_blank">CAA </a>conference in Berlin. This intrigued me, so I looked into it and it works quite nicely- as long as you use the same drive letter to mount your USB stick to all the time. I still have to figure out how to figure out the drive letter and change the paths, probably in a batch file. Put simply, you download <a href="http://www.mingw.org/" title="Mingw" target="_blank">Mingw </a>and Msys onto the stick, follow the instructions for downloading GRASS, edit the install_grass.bat file to change the drive letters, and off it goes.</p>
<p>PostgreSQL was something I had looked into a while ago, been told it wasn&#8217;t possible, and given up on. However, the recent 8.2 release appears to have dropped the requirement for a dedicated non-administrative user to run it. If you download the windows binaries, without the installer, you can set it up whilst logged on as the standard user. When you next run PostgreSQL from a different machine, you just have to use the same username as on your installation pc, regardless of whether that user exists on the pc that you are currently using. Once you have PostgreSQL installed, you can install Postgis into the same directory.</p>
<p>Currently there are a couple of gotchas. Most of these programmes require you to set environment variables, which might not be allowed on the particular pc that you are using, and require some command line experience. I still haven&#8217;t quite figured out how to get GRASS to work if I change the drive letter. Also, PostgreSQL does indeed run very slowly on a USB stick. And, I haven&#8217;t fully explored this to make sure there isn&#8217;t a hidden trap somewhere, or security holes that might be exploited. Having said that, if you want a package that can be unzipped onto a pc with a minimum of fuss then I think it&#8217;s almost there.</p>
<p>What&#8217;s next? Documentation, as always, and the permission of the various programmers that it&#8217;s OK to do this. Oh, and comments please, on what else we might include, or words of wisdom if you&#8217;ve already tried it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.archaeogeek.com/blog/2007/05/02/portable-gis-redux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oxford Archaeology WFS Server</title>
		<link>http://www.archaeogeek.com/blog/2007/02/27/oxford-archaeology-wfs-server/</link>
		<comments>http://www.archaeogeek.com/blog/2007/02/27/oxford-archaeology-wfs-server/#comments</comments>
		<pubDate>Tue, 27 Feb 2007 20:24:38 +0000</pubDate>
		<dc:creator>Archaeogeek</dc:creator>
				<category><![CDATA[archaeology]]></category>
		<category><![CDATA[databases]]></category>
		<category><![CDATA[MapGuide Open Source]]></category>
		<category><![CDATA[Postgis]]></category>

		<guid isPermaLink="false">http://www.archaeogeek.com/blog/2007/02/27/oxford-archaeology-wfs-server/</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=Oxford+Archaeology+WFS+Server&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=archaeology&amp;rft.subject=databases&amp;rft.subject=MapGuide+Open+Source&amp;rft.subject=Postgis&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2007-02-27&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2007/02/27/oxford-archaeology-wfs-server/&amp;rft.language=English"></span>
Well, at last it&#8217;s OK for me to tell people that Oxford Archaeology now has a WFS server that is accessible from the outside world. The address is: http://mapdata.thehumanjourney.net/cgi-bin/mapservwfs.cgi It&#8217;s a standard MapServer setup, and at the moment contains static data about the sites we have worked on over the last thirty years. This is [...]]]></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=Oxford+Archaeology+WFS+Server&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=archaeology&amp;rft.subject=databases&amp;rft.subject=MapGuide+Open+Source&amp;rft.subject=Postgis&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2007-02-27&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2007/02/27/oxford-archaeology-wfs-server/&amp;rft.language=English"></span>
<abbr class="unapi-id" title="http://www.archaeogeek.com/blog/2007/02/27/oxford-archaeology-wfs-server/"><!-- &nbsp; --></abbr>
<p>Well, at last it&#8217;s OK for me to tell people that <a target="_blank" title="Oxford Archaeology" href="http://thehumanjourney.net/">Oxford Archaeology</a> now has a <a target="_blank" title="WFS" href="http://en.wikipedia.org/wiki/Web_Feature_Service">WFS </a>server that is accessible from the outside world. The address is:</p>
<p>http://mapdata.thehumanjourney.net/cgi-bin/mapservwfs.cgi</p>
<p>It&#8217;s a standard <a target="_blank" title="MapServer" href="http://mapserver.gis.umn.edu/">MapServer </a>setup, and at the moment contains static data about the sites we have worked on over the last thirty years. This is still a work in progress and there are a whole bunch of things I would like to improve (but at least it&#8217;s up and out there):</p>
<p>1: As I said, it&#8217;s static data. The aim is to get our main databases into <a target="_blank" title="PostgreSQL" href="http://www.postgresql.org/">PostgreSQL </a>(I&#8217;ve talked about this <a target="_blank" title="Access Conversion" href="http://www.archaeogeek.com/blog/2006/10/20/minor-triumphs-major-hassles/">before</a>, and it&#8217;s not an easy process to convert messy, historic, access databases into PostgreSQL). In some circles there is a question as to whether we should actually use live data. There are sometimes issues with people looting archaeological excavations, and we don&#8217;t want to make that any easier&#8230;<br />
2: You may have noticed that I said databaseS (plural rather than singular). <a target="_blank" title="Oxford Archaeology" href="http://thehumanjourney.net/">Oxford Archaeology</a> only took over the Lancaster Office a few years ago and we are still working towards merging our core systems (along with upgrading them all to sensible, robust OpenSource platforms where possible). The problem with having two databases is that in many cases the fields are not directly compatible, so to get the data out in the shortest possible time I simply included the elements that were common to both, and I will work towards getting more information out.</p>
<p>3: At the moment, there is no fancy front-end to this. I have two candidates in mind for frontends, and I&#8217;ve talked about them both a fair bit. They will serve two different purposes, in other words for internal and external use. Externally I&#8217;m working towards using <a target="_blank" title="OpenLayers" href="http://www.openlayers.org/">OpenLayers</a>, although this might mean that I have to convert or re-project all of our data that is in British National Grid format into WGS84 so I can use something like Google Maps as a backend. Not a problem, I just haven&#8217;t done it yet. OpenLayers will give me a fairly basic, but nice looking interface that works in a way that people are familiar with from Google Maps and other sites. It is easy to install and can be built into any web page, so it can be embedded in our corporate site and not look out of place. Internally I want to use <a target="_blank" title="Mapguide Opensource" href="http://mapguide.osgeo.org/">MapGuide OpenSource</a>, as it has advanced functionality and a fairly slick style built in (I could use Mapserver and build a front-end myself but this seems like the best approach). However, as my last few posts have explained, I am having quite a lot of trouble compiling this on our platform of choice, so we&#8217;ll see.</p>
<p>4: There is only one layer so far. We&#8217;ll work on this, but often have licensing issues with our data, so we&#8217;ll have to check that out first.</p>
<p>Anyhow, enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.archaeogeek.com/blog/2007/02/27/oxford-archaeology-wfs-server/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<georss:point>54.0486 -2.7929</georss:point>
	<georss:featurename>[54.0486, -2.7929]</georss:featurename>
	</item>
		<item>
		<title>Update on Postgis Connectors for ArcMap</title>
		<link>http://www.archaeogeek.com/blog/2007/01/15/update-on-postgis-connectors-for-arcmap/</link>
		<comments>http://www.archaeogeek.com/blog/2007/01/15/update-on-postgis-connectors-for-arcmap/#comments</comments>
		<pubDate>Mon, 15 Jan 2007 17:18:19 +0000</pubDate>
		<dc:creator>Archaeogeek</dc:creator>
				<category><![CDATA[databases]]></category>
		<category><![CDATA[ESRI]]></category>
		<category><![CDATA[Postgis]]></category>

		<guid isPermaLink="false">http://www.archaeogeek.com/blog/2007/01/15/update-on-postgis-connectors-for-arcmap/</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=Update+on+Postgis+Connectors+for+ArcMap&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=databases&amp;rft.subject=ESRI&amp;rft.subject=Postgis&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2007-01-15&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2007/01/15/update-on-postgis-connectors-for-arcmap/&amp;rft.language=English"></span>
I have made a little more progress with evaluating the various free options for accessing PostgreSQL/Postgis database tables from ArcMap. I have to confess that some of the problem was down to my own lack of experience with Postgis! The issue that I had with PGarc was that it would fail with an error if [...]]]></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=Update+on+Postgis+Connectors+for+ArcMap&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=databases&amp;rft.subject=ESRI&amp;rft.subject=Postgis&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2007-01-15&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2007/01/15/update-on-postgis-connectors-for-arcmap/&amp;rft.language=English"></span>
<abbr class="unapi-id" title="http://www.archaeogeek.com/blog/2007/01/15/update-on-postgis-connectors-for-arcmap/"><!-- &nbsp; --></abbr>
<p>I have made a <a title="First Attempt" href="http://www.archaeogeek.com/blog/2007/01/05/arcgis-connectors-for-postgis/" target="_blank">little more progress</a> with evaluating the various free options for accessing PostgreSQL/Postgis database tables from ArcMap. I have to confess that some of the problem was down to my own lack of experience with Postgis!</p>
<p>The issue that I had with PGarc was that it would fail with an error if you had deleted tables from a database. It turns out that this is because deleting tables using the PostgreSQL &#8220;<a title="PostgreSQL DROP TABLE" href="http://www.faqs.org/docs/ppbook/c22759.htm" target="_blank">DROP TABLE</a>&#8221; syntax does not remove it&#8217;s reference in the &#8220;Geometry_Columns&#8221; table. This must be removed as well- either separately or by deleting the whole shebang in one go using the Postgis <a title="Dropgeometrytable" href="http://postgis.refractions.net/docs/ch06.html#id2842573" target="_blank">DropGeometryTable</a> function. Since PGarc uses &#8220;Geometry_Columns&#8221; to populate its list of available tables, it fails at this point. RTFM next time, archaeogeek!</p>
<p>There were a number of people in the <a title="ZigGis Google Group" href="http://groups.google.com/group/ziggis/topics?hl=en" target="_blank">google group</a> with similar problems to me regarding ZigGis- namely that it would not display some layers. This turned out to be a problem with projections, or the <a title="SRID" href="http://postgis.refractions.net/docs/ch04.html#id2837709" target="_blank">SRID</a>. If a table had an SRID of -1, in other words no projection set, then ZigGis could not display it. This bug has been resolved in the latest release.</p>
<p>My opinions of the two packages haven&#8217;t really changed. ZigGis has nice configuration files, and works directly with the Postgis table, whereas PGarc relies on DSNs, and creates a temporary shape file on your hard drive to work with. However, the clincher for me is that using PGarc you can select data and query it, whereas with ZigGis, I could not do that.</p>
<p>In the comments to my previous post, JeffÃ‚Â kindly pointed out the trial version of <a title="FME" href="http://www.safe.com/products/fme/index.php" target="_blank">Safe Software&#8217;s FME</a> (Feature Manipulation Engine), which does include support for PostgreSQL databases. I haven&#8217;t had chance to try it out yet, and we are trying to work towards open-source solutions to our problems but I will evaluate it and post on my experiences.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.archaeogeek.com/blog/2007/01/15/update-on-postgis-connectors-for-arcmap/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>ArcGIS Connectors for Postgis</title>
		<link>http://www.archaeogeek.com/blog/2007/01/05/arcgis-connectors-for-postgis/</link>
		<comments>http://www.archaeogeek.com/blog/2007/01/05/arcgis-connectors-for-postgis/#comments</comments>
		<pubDate>Fri, 05 Jan 2007 08:53:39 +0000</pubDate>
		<dc:creator>Archaeogeek</dc:creator>
				<category><![CDATA[databases]]></category>
		<category><![CDATA[ESRI]]></category>

		<guid isPermaLink="false">http://www.archaeogeek.com/blog/2007/01/05/arcgis-connectors-for-postgis/</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=ArcGIS+Connectors+for+Postgis&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=databases&amp;rft.subject=ESRI&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2007-01-05&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2007/01/05/arcgis-connectors-for-postgis/&amp;rft.language=English"></span>
This post is a discussion of my experiences with a couple of ArcGIS connectors for Postgis. To me, a reliable Postgis connector would be so useful, as we simply don&#8217;t have the resources (or the inclination) to purchase the equivalent proprietary products. We are also looking for a solution that will provide a flexible backend [...]]]></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=ArcGIS+Connectors+for+Postgis&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=databases&amp;rft.subject=ESRI&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2007-01-05&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2007/01/05/arcgis-connectors-for-postgis/&amp;rft.language=English"></span>
<abbr class="unapi-id" title="http://www.archaeogeek.com/blog/2007/01/05/arcgis-connectors-for-postgis/"><!-- &nbsp; --></abbr>
<p>This post is a discussion of my experiences with a couple of ArcGIS connectors for <a target="_blank" title="Postgis" href="http://postgis.refractions.net/">Postgis</a>. To me, a reliable Postgis connector would be so useful, as we simply don&#8217;t have the resources (or the inclination) to purchase the equivalent proprietary products. We are also looking for a solution that will provide a flexible backend for all sorts of interfaces, such as <a target="_blank" title="MapGuide Open Source" href="http://mapguide.osgeo.org/">MapGuide Open Source</a>, <a target="_blank" title="UDig" href="http://udig.refractions.net/confluence/display/UDIG/Home">UDig</a>, and so on, alongside ArcGIS.</p>
<p>The two connectors for ArcGIS that I have tried so far are <a target="_blank" title="Ziggis" href="http://code.google.com/p/ziggis/">Ziggis </a>and <a target="_blank" title="PGarc" href="http://sourceforge.net/projects/pgarc/">PGarc</a>. Neither of these are what I would call production-ready yet, and have some problems but they are being actively developed so there is hope!</p>
<p><strong>Ziggis:</strong></p>
<p>I spent a rather frustrating day yesterday trying to install the new release of Ziggis and thought it was worth blogging the steps I had to take to get it installed as I found information on this to be confusing  and sparse. Digging around in the ESRI discussion forums and such like seems to suggest that my problems will be relevant to the subset of people who don&#8217;t have things like Visual Studio installed, and for all I know will not be relevant in ArcGIS 9.1 or later. The short version is as follows:</p>
<ol>
<li>Ziggis requires the <a title=".net framework" target="_blank" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=262d25e3-f589-4842-8157-034d1e7cf3a3&#038;displaylang=en">Microsoft .net Framework</a> and Arcobjects .net Assemblies to work,or the install will fail.</li>
<li>To get the Arcobjects .net Assemblies, you must have Microsoft .net version 1.1 installed before you install ArcGIS and you must choose the custom install of ArcGIS Desktop (should be disk one).</li>
<li>.net version 2.0 won&#8217;t work for ArcGIS 9.0 (don&#8217;t know about later versions).</li>
<li>If you already have ArcGIS installed before you install .net then you will need to do a full uninstallation of ArcGIS, reboot, install .net, and then install ArcGIS. Trying to cut corners and running the repair/reinstall/modify option won&#8217;t work.</li>
</ol>
<p>Once I had it installed, I had an extra button in ArcMap for adding layers from a postgis table. Ziggis using configuration files (.zig files) for providing the information about connecting to the database. There is an example file in the program folder that can be modified using a standard text editor. You add new layers by navigating to the appropriate zig file for the database you wish to connect to, then type the table name that you want to add. This is a slightly frustrating step because you have to know which table you want, ie by firing up some other Postgis/PostgreSQL administrator first. A method of browsing for available tables would be a bonus.</p>
<p>Unfortunately, so far I haven&#8217;t managed to get anything to display on the map! The layer appears in the table of contents, and I can open the attribute table, but the geometry column contains the value &#8220;no geometry&#8221; despite being able to display using a different connector (PGarc). The next step is to try and enable the debugging and logging options in Ziggis to establish the problem.</p>
<p><strong>PGarc:</strong></p>
<p>PGarc appears to be in a state of flux at the moment. Some development is ongoing as there are discussions on the <a title="Postgis mailing list" target="_blank" href="http://postgis.refractions.net/mailman/listinfo/postgis-users">postgis mailing list</a> about it, but the website version has not been updated in some time. A few months ago I was given some updated code in the form of an ArcGIS project, and this version at least works for me- with an important proviso (more later).</p>
<p>PGarc installs itself as an extra toolbar with two buttons, one to add new data from a database, and one to save data back into a database. To connect to a database you need to create a system dsn with the connection details and provide the name of that file, along with your username and password to PGarc. PGarc does list the available tables, from which you can pick one and add it to your map.</p>
<p>Saving data back into a database seems to work, although it only saves the visible extent (so you have to zoom out to the extent of a layer before saving it).</p>
<p>My biggest problem with it is that if I have deleted a table in my PostgreSQL database, then PGarc cannot connect to it because it is still looking for the deleted table. I don&#8217;t yet know if this is related to the dsn, PGArc, or PostgreSQL.</p>
<p><strong>Comparision:</strong></p>
<p>Both projects are at an early stage and as you can see I have had problems with both of them. PGarc seems to have the best feature set at the moment (you can select features, which is not possible, afaik, with Ziggis) and save data back into the database. However, the idea of text-based configuration files is more convenient than a system dsn, as they can be easily transferred between computers. I need to investigate the geometry issue with Ziggis more thoroughly, and will keep following the discussions, and then I should be in a better position to comment.</p>
<p>There is at least <a title="Transhape" target="_blank" href="http://datashare.gis.unbc.ca/transhape/">one other</a> connector available, but I didn&#8217;t get further than downloading the  instructions! Furthermore, <a title="ESRI Postgis" target="_blank" href="http://geotips.blogspot.com/2006/08/arcsde-comes-to-postgresql.html">ESRI have intimated</a> that Postgis connectivity will be available in a later release of ArcMap. This should be a good thing, but there are <a title="ESRI Concerns" target="_blank" href="http://geotips.blogspot.com/2006/12/postgis-for-sde.html">concerns</a> as to how it will be implemented. Watch this space&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.archaeogeek.com/blog/2007/01/05/arcgis-connectors-for-postgis/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Minor triumphs, Major Hassles</title>
		<link>http://www.archaeogeek.com/blog/2006/10/20/minor-triumphs-major-hassles/</link>
		<comments>http://www.archaeogeek.com/blog/2006/10/20/minor-triumphs-major-hassles/#comments</comments>
		<pubDate>Fri, 20 Oct 2006 10:08:09 +0000</pubDate>
		<dc:creator>Archaeogeek</dc:creator>
				<category><![CDATA[archaeology]]></category>
		<category><![CDATA[databases]]></category>

		<guid isPermaLink="false">http://www.archaeogeek.com/blog/?p=19</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=Minor+triumphs%2C+Major+Hassles&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=archaeology&amp;rft.subject=databases&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2006-10-20&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2006/10/20/minor-triumphs-major-hassles/&amp;rft.language=English"></span>
In my spare time/lunch times I&#8217;m in the middle of a major project at the moment, to update our site database. Without going into the gory details of how it ended up in three separate, totally unlinked databases, it is supposed to document the archaeological sites we&#8217;ve worked on since the 1970&#8242;s, and to help [...]]]></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=Minor+triumphs%2C+Major+Hassles&amp;rft.aulast=Cook&amp;rft.aufirst=Jo&amp;rft.subject=archaeology&amp;rft.subject=databases&amp;rft.source=Open+Source+Computing+and+GIS+in+the+UK&amp;rft.date=2006-10-20&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.archaeogeek.com/blog/2006/10/20/minor-triumphs-major-hassles/&amp;rft.language=English"></span>
<abbr class="unapi-id" title="http://www.archaeogeek.com/blog/?p=19"><!-- &nbsp; --></abbr>
<p>In my spare time/lunch times I&#8217;m in the middle of a major project at the moment, to update our site database. Without going into the gory details of how it ended up in three separate, totally unlinked databases, it is supposed to document the archaeological sites we&#8217;ve worked on since the 1970&#8242;s, and to help with the administration of project archives, the location of finds within our finds store and so on.</p>
<p>For a long time I&#8217;ve wanted to sort this out, pull everything into one place, display the site locations on a web-based GIS and so on.  This is not rocket science, but the data had ended up in such a bad state that I couldn&#8217;t see past fixing that before getting to the good and fun stuff. Attempts a few years ago to use <a href="http://mapserver.gis.umn.edu/" title="Mapserver">Mapserver </a>as a mapping interface were abandoned because the positional data for the sites was wildly inaccurate (we seemed to do a lot of work in the Scilly Isles, which are as close to 0, 0 on the British National Grid as you can get), and connecting to Microsoft Access was quite difficult and unstable. If anyone using a Windows XP machine tried to open the database, my map would not display. None of those problems are Mapserver&#8217;s fault of course, but you can&#8217;t roll out a map that has inaccurate data on it, and might not alwats work.</p>
<p>So, after a few years of muttering about this, I have finally bitten the bullet. I am working, in stages, towards an integrated database for all of our finds and archive information, in a <a href="http://www.postgresql.org/" title="PostgreSQL">PostgreSQL </a>database, with both an <a href="http://www.openoffice.org/product/base.html" title="Open Office Base">Open Office base</a> front-end for querying, and a web-based map interface.  I&#8217;ll blog about each stage in this process, starting with integrating and data-cleansing in Microsoft Access.</p>
<p>The title of this post refers to the incredible feeling of achievement that I had when I got all this data together, followed by the difficulty I&#8217;m having moving that data into PostgreSQL. More later&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.archaeogeek.com/blog/2006/10/20/minor-triumphs-major-hassles/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

