[mapserver-users] proj4js and Azimuthal Equidistant projection

mmypost mmypost mmypost at yandex.ru
Fri Sep 9 09:24:41 EDT 2011


Нi!
Sorry for my bad English.

I  use proj4js library in my web project.
I have a problem with the use of method transform the library.

  Proj4js.defs["AEQP"] = "+proj=aeqd +lat_0=50 +lon_0=105 +ellps=WGS84 +datum=WGS84 +zone=36 +units=m +north +no_defs";
  Proj4js.defs["EPSG:4236"] = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs";

 var aeqp = new Proj4js.Proj("AEQP");
 var wgs =  new Proj4js.Proj("EPSG:4236");

 var p = new Proj4js.Point(-3601412.8999, 2529733.63814);

 Proj4js.transform(aeqp , wgs, p);

Point "p" have values x=37.4703 and y 55.6884 after  Proj4js.transform

If I use SWING library of mapscript for .Net (method pointObj.project()) with same values of point ( x=-3601412.8999 and y= 2529733.63814  ) the method pointObj.project() return point with values x=37.60263 and y=55.72719.
The difference in the values ​​of a few minutes! For Example: 37.4703 = 37grad and 28 min .... and 37.60263 = 37grad and 36 min ....
Please help solve this problem.
Maybe proj4js contains errors for Azimuthal Equidistant projection?
Are there any library similar to Proj4js?




More information about the mapserver-users mailing list