1

Re: Is there a way to return just Wales from GridMap WS?

I would like to be able to fetch and display distribution data for Wales only. Is there any way of doing this as the schema is set up at the moment? I am presuming not - it appears that you can't choose Wales under Region, and that you cannot choose multiple vice-countys.

If there is no way of doing this at present, can I request a feature enhancement?

Cheers

Alan Hale

Alan Hale
Aberystwyth

2

Re: Is there a way to return just Wales from GridMap WS?

I never had a response to this. Jonathan (or anyone) do you have any comment? This would be a very useful enhancement for myself and CCW, and  others working in Wales.

Cheers

Alan

Alan Hale
Aberystwyth

3

Re: Is there a way to return just Wales from GridMap WS?

Hi,

you are right, it can't be done at present.  You are not the first to request this, so it is high on the list of enhancements.  Having already discussed this, we are likely to make it pretty flexible so you can zoom to any part of the country.  We will be doing a formal round of requirements gathering and web service improvements during the summer - this will definately be one of them.

Jon

4

Re: Is there a way to return just Wales from GridMap WS?

Thanks Jon. Yes, I agree it would make sense to generalise the service. Presumably you would be thinking in terms of the client sending the coordinates of a bounding box in the request?

Cheers

Alan

Alan Hale
Aberystwyth

5

Re: Is there a way to return just Wales from GridMap WS?

Yes, that's exactly how we would do it.

Jon

6

Re: Is there a way to return just Wales from GridMap WS?

Hi Alan

I know, it took us a while, but the mentioned BoundingBox Parameter is available now :)
http://www.searchnbn.net/library/webservices/wsGridMap2.jsp

cya, Nicole

7

Re: Is there a way to return just Wales from GridMap WS?

That's great Nicole - thanks very much. I may not get chance to try it out for a day or two but I'll let you know how I get on.

Cheers

Alan

8

Re: Is there a way to return just Wales from GridMap WS?

.. and for some reason my message has been posted twice. (I didn't send it twice!).

Alan

9

Re: Is there a way to return just Wales from GridMap WS?

Hi

I was on the verge of trying out this bounding box, and was just grappling with my inability to understand the coordinate systems on offer when I noticed the statement "its maximum area is restricted to 900 km2"

Now, it is a well known fact that this is 0.043 times the size of Wales (see www.sizeofwales.co.uk) so I fear that it is going to serve neither Alan's purpose nor mine.

It is nearly the size of quarter of a million football pitches though so it may be useful. Can anyone explain for me and others how to go from either
- an Ordnance Survey grid reference, like SU6168789671 or
- latitude and longitude like 51.60251747585253N, 1.110716164112091W,
(both of which define the location of my current sitting position in a manner I am familiar and comfortable with,)
to the x,y coordinates of a bounding box as I am not finding the documentation sufficient.

Thanks,
Jim Bacon.

10

Re: Is there a way to return just Wales from GridMap WS?

Hi Jim

I see, the documentation does not seem to be updated completely. I hope I can do that in the next couple of weeks.
There is a limit for the maximum area, but this does only apply to the TaxonGroupListRequest, SpeciesListRequest and OneSiteDataRequest web services but not for the GridMap web service. So you should be able to query areas larger than the mentioned 900 km2.

To define your bounding box area, you can use latitude and longitude values if you want, but you have to tell the web service that you are providing lat/lon values, and not British National Grid coordinates.
Here is an example which zooms to South Wales/SouthEast England:

<BoundingBox srs="EPSG_4277" minx="-3.59" miny="50.99" maxx="-1.82" maxy="52.01" xmlns="http://webservices.searchnbn.net/data" />

cya, Nicole

11

Re: Is there a way to return just Wales from GridMap WS?

Thanks, Nicole. I now have myself some maps of Wales which is great. Thing is, by using Lat and Long I am ending up with squares which are cut by the bounding box so I would like to use the Ordnance Survey grid to make sure my bounding box falls on 10km boundaries.

How can I turn a grid reference like SU68 (the 10km square I am in) in to a bounding box coordinate?

Jim

12 (edited by nicole 20-07-2009 07:32:40)

Re: Is there a way to return just Wales from GridMap WS?

Hi Jim

For to define a bounding box, you need to define the bottom left and the top right point of it. The page http://www.nearby.org.uk can help you to find out the bottom left point of your bounding box in BNG: X=460000&Y=180000. To find out the top right corner, you need to add 9'999m to each side ->
X=469999&Y=189999 (or type in the next grid reference into the online converter (SU79) to find out the bottom left coordinate of the next grid reference).

You will end up in an xml element like this:
<BoundingBox srs="EPSG_27700" minx="460000" miny="180000" maxx="469999" maxy="189999" xmlns="http://webservices.searchnbn.net/data" />

Sorry, difficult to explain....

cya, Nicole

13 (edited by Jim Bacon 21-07-2009 18:16:02)

Re: Is there a way to return just Wales from GridMap WS?

Thanks, Nicole.

I now have a map of Wales that I am happy with (see example).

For the benefit of others, there is an all numeric way of representing a location using the Ordnance Survey grid. One way of looking at it is as eastings and northings, in metres, from an origin near the Scilly Isles.

To obtain such coordinates from a normal 6-figure grid reference, e.g. SU616896, first expand it to a 10-figure reference, SU6160089600. The eastings part of this is 61600 and the northings part is 89600. Now SU defines a 100km square which can equally be described by an easting and a northing from an origin. In the map below, the origin is in the bottom left, so that square SV is described as (0,0), square SU as (4, 1), square HP as (4, 12) and so on. These values then prefix the eastings and northings we already have so, ultimately, SU616896 converts to (461600, 189600). In bounding box terms, eastings is the x-coordinate and northings the y-coordinate.

[img]http://upload.wikimedia.org/wikipedia/commons/e/e3/National_Grid_for_Great_Britain_with_central_meridian.png[/img]

The rather untidy looking website Nicole points us to will do this conversion for you. The other vital piece of information is that this form of coordinates is EPSG_27700.

I hope I've got that all right. It seems to work - although not if you're wanting a map of Ireland, of course.

Jim

14

Re: Is there a way to return just Wales from GridMap WS?

I have just found a much better website to convert your coordinates:
http://www.fieldenmaps.info/cconv/cconv_gb.html
:)

cya, Nicole