Select Page
Nine Ladies stone circle, viewed from the King Stone

Nine Ladies stone circle, viewed from the King Stone

I went out on a photo trip yesterday. I’ve been testing the iPhone app GeoLogTag recently. For some reason I simply cannot get my iPhone talking to my MacBook, which makes a lot of the WiFi syncing apps a waste of time. GeoLogTag has an option to geotag photos on Flickr. If you visit this photo’s page on Flickr and look at the data on the right side, you’ll see it was taken near Stanton in Peak and there’s a map so you can see other nearby photos.

Once you’ve remembered to leave the phone on, which means cancelling the auto-lock, which geo-logging, then tagging is pretty much painless. The phone keeps track of where it is at any given time. It connects to Flickr and any ungeotagged photos that were taken while the phone was logging get tagged. This works because the photos have a record of the time they were taken. If you remember to take your phone around with you when to take a shot, then you can have a reasonably accurate log of where you are. At $5 it’s a lot more sane than buying one of those dedicated photo-loggers you can buy. On the other hand you do have to have the phone to go with it.

Being able to log photos quite accurately could well be very useful next time I go on a survey. At the very least it could be a usable way of mapping the location of many tombs, so long as the tombs are 10m or more apart. Uploading to Flickr to log them is a nuisance, I should sort out my home network, but it’s possibly also an opportunity thanks to the Flickr API. The API makes it very easy to get machine-readable data out of Flickr. Here’s an example.

Fire remains (distant) aligned with two megaliths at Nine Ladies.

Fire remains (distant) aligned with two megaliths at Nine Ladies.

This is a photo of an alignment I saw at Nine Ladies. If you follow the line from foreground over the back stone and on, you might be able to see two black patches in the grass. These are the ash remains of fires which had been lit at the site. Burning, even small fires, is not helpful. The risk of rampant fire is slim because the grass is short and, because it’s in the UK, it’s nearly always damp. However, at the very least it’ll cause a spike in any future magnetometry surveys of the area. Also if there is something buried beneath the ground which hasn’t been found yet, heating is a great way to destroy it. So I now have some data which I might want to log in a database.

I can put some information about a site into Flickr tags. In this case it’s a Bronze Age stone circle on Stanton Moor with some damage. So long as I have a uniform set of tags I use to describe that like “location: Stanton Moor” then I can use the API as a search engine. For example I could:

Search for any photos where tag == project: My Project

which would list all photos in My Project.
It would be easier to be able to lift the data from Flickr and put it into a SQL database but that shouldn’t be difficult with standard tags. Here’s an example of what information Flickr has about the photo above.

<rsp stat="ok">
  <photo id="3890427837" secret="c89e5a1e94" server="3530" farm="4" dateuploaded="1252190752"
   isfavorite="0" license="5" rotation="0" originalsecret="3a9cc5e6bf" originalformat="jpg"
   media="photo">
    <owner nsid="79983635@N00" username="Alun Salt" realname="Alun Salt" location="Derby and 
     Leicester, UK"/>
    <title>Alignment at 9 Ladies.jpg</title>
    <description>
      Or, how not to photograph burning. If you follow the line from the foreground over the 
      back stone and beyond, you might be able to see two black patches in the grass.
      <a href="http://www.bighugelabs.com/onblack.php?id=3890427837&amp;size=large" rel="nofollow">
      A larger view might help.</a>

      Burning, even small fires, is not helpful. The risk of rampant fire is slim because the 
      grass is short and, because it's in the UK, it's nearly always damp. However, at the very 
      least it'll cause a spike in any future magnetometry surveys of the area. Also if there 
      is something buried beneath the ground which hasn't been found yet, heating is a great way
      to destroy it.

      I took the photo from this angle as there were some people behind me, which meant a HDR 
      shot from the opposite direction wasn't viable at the time. When I did set up some shots 
      from the other side I'd forgotten about getting the shot of the fires.
    </description>
    <visibility ispublic="1" isfriend="0" isfamily="0"/>
    <dates posted="1252190752" taken="2009-09-05 18:58:27" takengranularity="0" 
     lastupdate="1252239594"/>
    <editability cancomment="0" canaddmeta="0"/>
    <usage candownload="1" canblog="0" canprint="0"/>
    <comments>0</comments>
    <notes>
      <note id="72157622266401280" author="79983635@N00" authorname="Alun Salt" x="233"
       y="108" w="29" h="16">A patch from a small fire.</note>
      <note id="72157622141844777" author="79983635@N00" authorname="Alun Salt" x="238" 
       y="95" w="31" h="16">A patch from a larger fire.</note>
    </notes>
    <tags>
      <tag id="204526-3890427837-771" author="79983635@N00" raw="archaeology"
       machine_tag="0">archaeology</tag>
      <tag id="204526-3890427837-1520781" author="79983635@N00" raw="stanton moor"
       machine_tag="0">stantonmoor</tag>
      <tag id="204526-3890427837-98094" author="79983635@N00" raw="bronze age"
       machine_tag="0">bronzeage</tag>
      <tag id="204526-3890427837-110" author="79983635@N00" raw="UK" machine_tag="0">uk</tag>
      <tag id="204526-3890427837-5933" author="79983635@N00" raw="Derbyshire"
       machine_tag="0">derbyshire</tag>
      <tag id="204526-3890427837-778" author="79983635@N00" raw="megalithic"
       machine_tag="0">megalithic</tag>
      <tag id="204526-3890427837-38882" author="79983635@N00" raw="prehistoric"
       machine_tag="0">prehistoric</tag>
      <tag id="204526-3890427837-56210" author="79983635@N00" raw="HDR"
       machine_tag="0">hdr</tag>
      <tag id="204526-3890427837-45290559" author="79983635@N00" raw="project: test project"
       machine_tag="0">projecttestproject</tag>
      <tag id="204526-3890427837-45290561" author="79983635@N00" raw="location: Stanton Moor"
       machine_tag="0">locationstantonmoor</tag>
      <tag id="204526-3890427837-45290563" author="79983635@N00" raw="period: Bronze Age"
       machine_tag="0">periodbronzeage</tag>
      <tag id="204526-3890427837-45290565" author="79983635@N00" raw="type: stone circle"
       machine_tag="0">typestonecircle</tag>
      <tag id="204526-3890427837-45290567" author="79983635@N00" raw="damage: yes"
       machine_tag="0">damageyes</tag>
    </tags>
    <urls>
      <url type="photopage">http://www.flickr.com/photos/alun/3890427837/</url>
    </urls>
  </photo>
</rsp>

So with some fairly simple code I could get Flickr and the database to talk to each other.

GET all photos WHERE project == My Project
FOR EACH photo_id in the list of results
 { GET INFO for photo_id
   INSERT into database id = photo_id;
   READ latitude tag;
   INSERT into database latitude = latitude_tag;
   READ longitude tag;
   INSERT into database longitude = longitude;
   READ period tag;
   INSERT into database period = period_tag;
   READ location tag;
   INSERT into database location = location_tag;
   AND SO ON with the rest of the relevant tags;
  }

You could use the photo date tags to log when the site was visited, the author tag to log who visited it and so on. There are some potential problems. You can add tags to my photos because I let anyone tag them. That could come back to bite me if someone decides it would be fun to add a period: Neolithic tag onto the photo. However if you look at the tags in the data file it also notes who is author of those tags, so you can alter the search to reads TAGS where author == PERMITTED AUTHOR. The API also allow you to search groups, so a group of people could contribute to a pool of data if there were agreed tagging standards.

It’s also just occurred to me that if you made project tags in the format Project Identifier : Tag : Content like StonehengeSurvey:Location:In the pub, then the same photos could be incorporated into multiple projects, so there’s no need to have a universal definition of terms like Early or Late.

Another thing I’d be wary of it making my data public as I create it. Some things I’m working on are likely to be very simple. If I’m out in the field and you can read my data from your home you could be in a position to scoop me, even if you credit me as the source of data. One way round that is to upload photos as private. GeoLogTag is happy working with private photos (I’ve tested it). A group working together would have to make use of the contacts feature in Flickr, possibly accepting that for the project they’re all family so they share access to each other’s uploads.

Certainly my future projects are going to have a very large photo component to them. Geotagging is the hook which everything else can usefully fit on to. What’ll be interesting to see is what effect this will have on GIS, if anyone can easily produce masses of geographically useful data.