Ticket #65 (closed defect: invalid)
EPSG:27700 (OSGB)
| Reported by: | CharlesHarrison | Owned by: | madair |
|---|---|---|---|
| Priority: | major | Milestone: | 1.0.3 |
| Component: | core | Version: | 1.0.0 |
| Keywords: | OSGB36 | Cc: |
Description
With the definitions ...
Proj4js.defsEPSG:27700? = "+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +datum=OSGB36 +units=m +no_defs "; EPSG4326 = new Proj4js.Proj( "EPSG:4326" ); EPSG27700 = new Proj4js.Proj( "EPSG:27700" );
... the point ...
{x: 0005038 /*E*/, y: 5104711 /*N*/}
... is transformed to ...
{x: -15.95172 /*W*/, y: 89.995772 /*N*/}
... instead of about ...
{x: -1.25 /*W*/, y: 51.31 /*N*/}
This can be seen by following this URL*: http://www.macfh.co.uk/JavaJive/AudioVisualTV/TerrestrialTV/TerrestrialCalculator.php?iRxWhereHow=E&iRxEast=5038&iRxNorth=5104711
* Although this page uses a self-built version of Proj4js.js, I have checked that this also happens with the latest version downloaded from the site.
The line performing the transformation is line 1080 ...
var result=Proj4js.transform((irish?EPSG29902:EPSG27700),EPSG4326,{x:srcEast.getValue(),y:srcNorth.getValue()});
... where firebug shows that irish is undefined, so EPSG27700 is being used as the input system, inputs x and y are as expected, and the result returned by Proj4js.transform is erroneous as above.
