Archive

Archive for July, 2009

Alderney place names

July 23rd, 2009 Paul Flo Williams Comments off

I’ve been wanting to add more street and place names to the OpenStreetMap map of Alderney, but I’m mindful of two things:

  1. Copyright problems with using other maps as references, and
  2. The lack of street signs on many roads and lanes in Alderney, meaning you’re reliant on local knowledge.

Many of Alderney’s roads have (or had) names in the local form of French, and some are now being Anglicised. You only have to go back 50 years to find the High Street also being recorded as “Grande Rue”.

In an effort to dig up as many names as possible, and to find some consensus on spelling and usage of accents and apostrophes, I downloaded the last five years’ worth of minutes from committee meetings from the States of Alderney web site.

I’ve only just started processing them, but it is already clear that they will be more useful as a source of names than a decider of punctuation. I already have these results for one lane on the island:

Barrack Masters Lane 14
Barrack Master’s Lane 8
Barrackmasters Lane 3
Barrackmaster’s Lane 8

Photographs of street signs will help here, but I guess they’ll only be useful if there isn’t a policy of leaving accents off. Anyway, it’s a start.

It may well be worth adding some markup to my local copies of the minutes (which may have to stay offline because they are also copyrighted, boo!), to clearly point out place names, road names and house names in them. That way, I’ll be able to see where I have gaps as the map starts getting populated.

Before I do too much more map editing, I’ll also be recording evidence for names on a wiki, Alderney Notes. I’d be interested to hear more about any out of copyright maps of Alderney or other good sources of place names.

Categories: Alderney, OpenStreetMap Tags:

First steps with OpenStreetMap

July 8th, 2009 Paul Flo Williams Comments off

I’ve just signed up for an OpenStreetMap account and thought I’d try out the offline map rendering, as I’ve just started a project to document the changing face of Alderney.

The wiki gives some good instructions for downloading the rendering XSLT scripts, but my first attempt to use them resulted in some very strange coastline clipping in the final SVG.

With a bit of hunting, I came across a Perl script in their collection that cleans the coastline data up nicely.

For the record, here’s the complete set of steps to going from nothing to a rendered map of Alderney. I’m using Fedora 11 with xsltproc already installed.

  1. Let’s grab the required tools from OpenStreetMap’s Subversion repository. These commands pull in a bit more than is strictly necessary, but the steps on their wiki seem to leave you without some of the symbols for the final map, unless I’ve misread something.
    $ mkdir osm
    $ cd osm
    $ svn co http://svn.openstreetmap.org/applications/rendering/osmarender/
    $ svn co http://svn.openstreetmap.org/applications/rendering/tilesAtHome/
    
  2. Now we’ll grab the raw map data for the area we want to render. I’ve found these coordinates by trial and error. They leave a small amount of water around the island, including Coque Lihou on the south, but excluding the Noires Putes.
    $ wget http://www.openstreetmap.org/api/0.6/map\?bbox\=-2.24,49.695,-2.15,49.735 \
       --output-document=alderney.osm
    
  3. Now we’ll correct the coastline data with a Perl script called close-areas.pl. However, the first time we use this, we’ll have to edit it to allow it to run on a newer version of the OpenStreetMap data than it’s expecting. Pull the script into your favourite editor and delete the line that does the check, which in my copy is line 114:
       die ("close-areas.pl does not support version $1") unless ($1 eq "0.5");
    
  4. Now correct the coast line, using the lat-longs of the area we downloaded:
    $ cd tilesAtHome
    $ perl close-areas.pl 49.695 -2.24 49.735 -2.15 < ../alderney.osm > ../alderney-closed.osm
    
  5. Time for rendering. We need to run the renderer in a particular directory too, and it expects the data to always be called data.osm. As I’m going to perform the rendering more than once, I’ll make a link to my file rather than renaming. The link won’t have to be remade each time, of course.
    $ cd ../osmarender/stylesheets
    $ ln -s ../../alderney-closed.osm data.osm
    $ xsltproc ../xslt/osmarender.xsl osm-map-features-z17.xml > alderney.svg
    

    On my box, with an Athlon 64 X2 4200, the render takes under five minutes.

Here’s the final result: (PNG, linked to SVG).

Categories: Alderney, OpenStreetMap Tags: