[MetaCRS] Proj4js: Problem with stereographic projection

Mike Adair madair at dmsolutions.ca
Wed Jan 21 11:20:49 EST 2009


Hi Daniel,

Can you file a ticket in the Proj4js Trac system for this please? 
http://trac.osgeo.org/proj4js/

My initial cursory look at it doesn't show anything obvious so it will 
take some investigation.

Thanks,

Mike

Daniel Bigham wrote:
> 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
>

-- 
   Michael Adair
   Senior Software Architect
   DM Solutions Group Inc.

   Office: (613) 565-5056 x26
   madair at dmsolutions.ca
   http://www.dmsolutions.ca
   http://research.dmsolutions.ca




More information about the MetaCRS mailing list