1

Topic: Another EasyMap failure

Our page http://www.hbrg.org.uk/LatestFiles/House-fly.html, kindly publicised by Buglife Scotland in http://us7.campaign-archive2.com/?u=9e2 … 16fc8b016, contains an EasyMap that worked perfectly on G4.

The code is:

<iframe width="250" height="310" src="http://www.brc.ac.uk/schemes/NBNWidget/tvkGridmap.aspx?tvk=NBNSYS0000030722&amp;b0from=1950&amp;gd=100km&amp;link=0&amp;bl=NW130300&amp;tr=NE200900&amp;h=250&amp;terms=0&amp;ref=0&amp;css=http://www.hbrg.org.uk/CommonItems/nbn.css"  align="top" id="I1" name="I1"></iframe>

The page now shows the error:
Your request could not be completed because of the following errors.
Could not find a feature with the identifier NW130300 :: GET https://data.nbn.org.uk/api/features/NW130300 returned a response status of 204 No Content.

We were promised a 'seamless transition'.  Please give us exactly that.  I thought from an earlier post that the matter of marginal OSGRs (which seems to be the problem here) had been solved.  Clearly it has not been solved yet.

Murdo

2 (edited by matt.debont 04-08-2014 13:55:32)

Re: Another EasyMap failure

Hi Murdo, firstly the EasyMap service was never designed to support 100m references at least in the documentation provided to us, what has happened here is simply an extension of the quick fix I made earlier by importing all GB covering 10km squares into the gateway to cover most cases, while I worked on a more permanent solution.

What I have done now is to bypass the gateway when trying to figure out grid squares and use a library to figure out the origin of the OSGB grid reference provided and figured out the bounding boxes from there which seems to be working as far as I can tell. This should work for 10km, 1km and 100m grid references without the gateway having to know about them as previously explained.

I am working on getting this working for 2km squares at the moment, but for 10km, 1km and 100m this should now be live and working, please let me know if there are further issues and thank you for reporting them to us.

Matt

Edit: The 2KM squares should now work as expected as well, please let me know if people encounter further issues.

Matt Debont
Application Developer
Joint Nature Conservation Committee, Monkstone House, City Road, Peterborough PE1 1JY, UK

3

Re: Another EasyMap failure

Thanks, Matt.  'Seamless' means exactly that, though.

If the code worked under the old system, it should work under the new system.

Whether the original widget was explicitly designed to work with 100m OSGRs or not, the fact is it did, and generated the maps we wanted without error messages.

M.