Opened 15 years ago

Closed 15 years ago

#27 closed defect (fixed)

+R_A parameter broken

Reported by: rbranson Owned by: madair
Priority: major Milestone:
Component: core Version: trunk
Keywords: R_A Cc:

Description

A few projections use the +R_A to get "Radius of sphere with equivalent surface area of specified ellipse" including World Miller Cylindrical and World Robinson. Apparently the +R_A parameter had never been tested, but there's about 2 lines of code that contribute to breaking this. The +R_A code branch will never get called because of a capitalization error in the Proj.parseDefs method. Also, when it does get called, a minor coding error in the branch of Proj.deriveConstants causes NaNs to get returned. I've included a diff against the SVN trunk. Sorry it's not generated by SVN as I was having trouble getting the server to respond.

Attachments (1)

proj4js.js.diff (1.5 KB ) - added by rbranson 15 years ago.

Download all attachments as: .zip

Change History (2)

by rbranson, 15 years ago

Attachment: proj4js.js.diff added

comment:1 by madair, 15 years ago

Resolution: fixed
Status: newclosed

fixed at rev 1517. Thank's for the patch.

Note: See TracTickets for help on using tickets.