The GeoClinic

The GeoDoctor prepares his diagnosis

The GeoDoctor prepares his diagnosis

We had a question in my last Clinic from Ben Ratcliffe. He asked:  ”I am trying to upload OS OpenData Streetview to geoserver either as a geotiff or a linked shp file to use as an internal WMS server. I have had no end of problems trying to convert the tiff + world file to geotiff using various tools such as FWtools, lizardtech geoviewer, listgeo and a few more that I have found. I have even tried using OSGB web map tools, this has some success but when I upload to geoserver, it loses the connection to the tiff files and then shows blank squares.”

Obviously it is sometimes a little bit difficult to diagnose a problem remotely, but what I will go through is a remedy which we use and hopefully will solve your issue as well.

I’ll present this as a series of steps, this is for GeoServer 2.0.2, so other versions may vary:

1) Download your OS Street View tiles from the OS OpenData site

2) Put all the .tif and .tfw files together in a new folder in the GeoServer data directory.

3) Add a new store in GeoServer, specify you’ll be using ImageMosaic and include the URL to the appropriate folder.

4) Publish the layer in GeoServer. This creates a number of files in the specified data directory, most notably one named <folderhame>.prj, which defaults to a WGS84 projection.

5) Delete the layer (not the store) in GeoServer

6) Replace the content of the <folderhame>.prj with details for British National Grid in this link

7) Add a layer in GeoServer and you should see the Native SRS set to 27700

The image tiles should now be served up correctly by GeoServer.

Thanks goes out to Tim Martin in answering this question.

Can I mix other mapping APIs with OS OpenSpace?

There are two aspects to this question. Some of you may have seen Tim Martin at AGI 2009 in a joint presentation with Bing. He demonstrated how you can pull in Microsoft Bing Maps into OS OpenSpace. The first point to consider is whether it is permissible between the APIs Terms of Use.

Assuming it is, there is then a significant technical aspect that you have to take into consideration. OS OpenSpace (based on OSGB) and other mapping APIs vary in their projections. That is, it is not possible to overlay the two layers without re-projecting one or the other, often resulting in something which doesn’t look very pretty!

The example that Tim used at AGI 2009 was to switch between the two mapping APIs, they were never displayed together. Of course, this also underlines a significant point that any data that you display on OS OpenSpace must be displayed using the OSGB projection.

How do I add boundaries in OS OpenSpace?

One of the coolest things you can do with OS OpenSpace is to add boundary data to your mash-up. By including boundaries you can display a whole range of different data in a way that is easy interpret and compare. OS OpenSpace includes a boundary lookup service, more details can be found here.

Using boundaries with OS OpenSpace

Using boundaries with OS OpenSpace

These can be used within OS OpenSpace to show customised and styled boundaries in your map, as well as design thematic maps using your own or third party data.

Functions are available within OS OpenSpace to make the inclusion of boundaries as straight forward as possible. The best way to understand how boundaries can be included and used in your maps is through the examples on the OS OpenSpace site:

Creating thematic boundaries and

Adding a single boundary layer with default styling

Feel free to look at our other examples to see other innovative ways of using boundaries.