[MetaCRS] Proj4js: Problem with stereographic projection
Daniel Bigham
dbigham at navtechinc.com
Mon Jan 19 13:47:52 EST 2009
Hi all,
I'm running into a problem with the Proj4js library. (Which I love by
the way: A big thank you to the authors)
----
Proj4js.defs["EPSG:3411"] = "+proj=stere +lat_0=90 +lat_ts=70 +lon_0=-45
+k=1 +x_0=0 +y_0=0 +a=6378273 +b=6356889.449 +units=m +no_defs";
I got this from: http://www.spatialreference.org/ref/epsg/3411/
...
var source = this._projectionHash["EPSG:4326"];
var dest = this._projectionHash["EPSG:3411"];
var point = new Proj4js.Point(-32, 48);
Proj4js.transform(source, dest, point);
----
When I transform the lat/lon -32, 48 into the stereographic coordinate
system, I get:
-2520789, -4034105
When I do the same thing with the Proj4 command line, I get:
1070076, -4635009
The Proj4 command line appears to be right, but the Proj4js library does
not.
Any help would be very appreciated.
Thanks,
Daniel Bigham
--
Daniel Bigham
Software Developer
Navtech, Inc.
295 Hagey Blvd., Suite 200
Waterloo, Ontario, N2L 6R5
tel: (519) 747 1170 x.301
fax: (519) 747-1003
dbigham at navtechinc.com
More information about the MetaCRS
mailing list