User:RHaworth/oscoor
The grid reference to lat/long converter is ready for installation. The modules required are:
New modules:
- oscoor.php - the new, public resource
- cooerr.php - error and licence message
- helm_gb.php - Helmert transform WGS84 -> OSGB36
Replacing existing modules:
- transversemercator.php - added:
- LRanger - grid ref in "pretty" format of 'XY 999 999'
- WGS2OSGB - WGS84 to OSGB easting/northings conversion
- mapsources.php - changes:
- use WGS2OSGB() instead of LatLon2OSGB36()
- new $search item: {osgb36lr} and corresponding $replace item
- $r_pagename and $r_title improved
Notes:
- oscoor.php blocks a couple of known spam bots - see $baddies array. Is there a toolserver policy about things like this?
- The versions of transversemercator.php & mapsources.php are based on copies I took back in 2008 Dec. It may be necessary to re-apply my mods to current versions. My mods can be seen here and here. Sorry - I have run both modules through my whitespace optimiser so there are lots of insignificant diffs showing.