Ticket #67 (closed defect: fixed)

Opened 4 months ago

Last modified 3 months ago

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

laea.js Download (11.5 KB) - added by guest 4 months ago.

Change History

Changed 4 months ago by guest

Changed 3 months ago by madair

  • status changed from new to closed
  • resolution set to fixed

patch applied in rev [2157]

Thanks for the bug report and patch!

Changed 3 months ago by madair

  • milestone changed from 1.0.2 to 1.0.3
Note: See TracTickets for help on using tickets.