Sunday, 18 April 2010

OS Data part 2

I've checked the transformation from the OS projection to the OSM projection and it seems to be correct. The resulting boundary is the right shape and size, but it is shifted to the east. I'm going to check out exactly how much - it would be possible to correct it during the creation of the OSM file.

Why would this data be translated? The transformation could be wrong, the OS data could be wrong, the existing OSM data that I'm comparing it to could be wrong or something else. I have tried the transformation with two separate programs and they both produce the same results. The existing OS data has been gathered by various means and is likely to be mostly right. There is a chance that the OS has an error, I wonder if anyone else has looked at it yet.

If the OS data is OK, then what else have I missed?

Ordnance survey boundaries

The UK Ordnance Survey has generously released some of its data for unlimited use. One of the data sets is about boundaries and included in it are parish boundaries. Boundaries are not painted on the ground so adding them to OSM is hard. Some people have added some parish boundaries, or bits of them, from the out-of-copyright NPE maps from OS, but a lot has changed in over sixty years.

The OS boundary data comes in the form of ESRI: shape files, about 179MB to make up the parish boundaries. I loaded it in QGIS to take a look at it - there where about 14,000 polygons. Dealing with this is not going to be a small task.

I dug about T'Internet to work out how shape files work and after a bit of work I've extracted a list of the polygons in the shape file, then a method to create an OSM file for each polygon suitable for loading into JOSM.

I loaded the polygon for my village and at first sight it looks good, but when I compared it to a real OS map, the parish boundary doesn't quite match - I've not transformed the shape file from its original OS projection to the OSM projection correctly.

This is  not the only problem of course. If I load a single parish boundary that's fairly easy. If I want to load an adjacent boundary some of the nodes need to be shared nodes along parts of the boundary. In addition the parish boundaries will share nodes with the county boundaries too. There are district boundaries available too, so these will also share nodes. On top of this there is the problem of dealing with the existing data that people have already loaded which might need to be merged, deleted or tagged as an historic boundary. This alone makes it important that each boundary is processed by someone who can make decisions about what to merge etc.

I'm going to sort out the projection issue, then import a single boundary via JOSM and see what that looks like. If that goes well I'll import an adjacent boundary and see what it takes to merge the shared nodes.

If I can make this work well, I'll write up a process and consider how to offer parish boundary files to other people for them to import in their local area, but supplying 14,000 files might be too big a task. Then there are the other boundaries types too ...

Tuesday, 30 March 2010

Ringtone ?

We made a short trip out to Howden, so on the way we took a second look at Eastrington, Or should that be East Ringtone?

These second visits always yield extra information, so they are worthwhile.  In Howden I noticed a large school that we had somehow missed. We took loads of photos (it's the Easter break so no indignant people complaining about taking photos near a school) and used what evidence we could find to estimate the boundary of the school.

Monday, 22 March 2010

Smooth

We went to Long Riston today on a wet and breezy day. On the way, one thing I noticed was a smooth new road. Stavely road is used as a part of a short cut between Hedon Road and Holderness Road. It used to be a spine crushing route full of pot holes and badly filled pot holes, with some ridges in the concrete slabs adding to the problem. The new surface is smooth and flat. It's not the usual lick of tar and stones, but a proper new layer of tarmac.



The Ordnance Survey recently asked for comments on the idea of releasing some of its data for public use. The process ended last week. Today, No. 10 announced that a substantial amount of OS data will be released for use without restriction. Details will follow in a week or so. So what was the consultation period for? Government processes take months not days to evaluate things, so it is not possible for a standard assessment process (if one really exists) to have been applied to the submissions, many of which came towards the end of the consultation period. I can only conclude that what ever data is released must have been decided some time ago. If that is the case, then why the consultation period?

Of course the imminent election may have led to short cuts in the process - I just hope that the route ahead will be a smooth as the new Stavely Road.

If the OS data is useful (that might be a big 'if') and freely available I wonder how it will be used in OSM. It largely depends on how it is released. If it is raster data then the process of tracing from a map already exists and is already well understood. It is also suited to our crowd sourced model - lots of people each add a bit and we get a great database.

If it is vector data (which I think is more likely) then we will need to process the vector data into a form that it can be used in OSM, probably not a difficult job given the expertise we have. Then we just need to decide how to use it ...

Tuesday, 9 March 2010

Numbers and canal

Another foray into Driffield has given us another chunk of the town with a decent basic cover. One of the areas I wanted to look at was the canal head. OSM's resident canal expert sent me some information on the refurbishment of the Driffield Navigation. Today we only drove past, but another day I want to map it in detail.


The rest of the residential area we checked out was fairly straightforward. The changeovers between some road names were a little unclear until we looked at the house numbers, especially The Mount, Southfield Road and Southfield Close. Checking house numbers is something I have used many times to be sure if a street name has changed and today it worked well.

Sunday, 7 March 2010

Tile viewer

Now that I have the beginnings of a renderer, it needs a GUI. Well, that's what I told myself. Since the the path to a renderer has really been a journey towards understanding Java, I need to explore more of Java and its classes. One of the options Java gives is a graphical user interface - Swing. I have had a fiddle with Swing using NetBeans and I'm pleasantly surprised how easy it has been.  I am very familiar with GUI programming in other languages and it seems that Java follows a similar route.  I now have a rudimentary viewer for a tile, though rendering that tile nicely is still a long way off.

Monday, 1 March 2010

Pubs and coast

A wet sunday afternoon saw us in Driffield. The satellite reception was awful most of the time, but we got lots of photos which help to make up for it. The rivers and becks around are very full and the ground is sodden, so a few days of dry weather would be useful. All over the country pubs are closing, but not, it seems, in Driffield. There were loads dotted around the market place and only one that looked closed down. There's still quite a lot of the town to complete - I hope the satellite cover is better next time we go there, it would be nice to be able to predict good coverage for an area ...


I've been working on rendering coastlines - I think I've finally sorted it out. Drawing coastlines made up of ways that are not closed polygons, when there are many possibilities of how they can be arranged, and including islands and lakes has been tough. It has forced me to revisit some long forgotten maths, including calculating cross products of line segments to decide if a closed way turns clockwise or anti-clockwise.

These two pictures show tiles with fairly complex coastlines drawn accurately - the Pacmen are lakes and islands. Making test data with JOSM has been very useful - testing with live data never gives you all the possible circumstances, but it will give me volume data tests later. Text placement next I think.