Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#67 closed defect (fixed)

laea.js erroneous references to sinph0 & cosph0

Reported by: guest Owned by: madair
Priority: major Milestone: 1.0.3
Component: core Version: trunk
Keywords: laea, lambert azimuthal equal area Cc: gregor@…

Description

Symptom: I am able to convert coordinates from WGS84 to Lambert Azimuthal Equal Area (LAEA) projection, but not convert them back. The error given is "sinph0 is not defined"

My specific SRS is SR-ORG:80, a spherical LAEA used by ArcGIS.

Proj4js.defsSR-ORG:80="+proj=laea +lat_0=45 +lon_0=-100 +x_0=0 +y_0=0 +a=6370997 +b=6370997 +units=m +no_defs";

Diagnosis: It looks to be simple typos: sinph0 and cosph0 should be this.sinph0 and this.cosph0

Attached: A patched version of laea.js which seems to convert back and forth properly.

Attachments (1)

laea.js (11.5 KB ) - added by guest 13 years ago.

Download all attachments as: .zip

Change History (3)

by guest, 13 years ago

Attachment: laea.js added

comment:1 by madair, 13 years ago

Resolution: fixed
Status: newclosed

patch applied in rev [2157]

Thanks for the bug report and patch!

comment:2 by madair, 13 years ago

Milestone: 1.0.21.0.3
Note: See TracTickets for help on using tickets.