Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#6 closed defect (fixed)

Mollweide returns Nan

Reported by: perrygeo Owned by: madair
Priority: major Milestone: 1.0.0
Component: core Version: trunk
Keywords: Cc:

Description

Mollweide projection (defined in moll.js) transformations return NaN. They require the radius of the earth to be defined (this.R) in the init() function.

this.R = 6370997.0;

Change History (4)

comment:1 by perrygeo, 16 years ago

Actually, if you're using the WGS84 datum, is should be

this.R = 6378137.0; semi-major axis radius as defined by WGS84

Is there any way to inherit this from the specified datum as opposed to hardcoding?

comment:2 by madair, 16 years ago

Priority: criticalmajor
Status: newassigned
Version: trunk

comment:3 by madair, 16 years ago

Resolution: fixed
Status: assignedclosed

[21] uses this.a which gets set in the initialization rather than this.R

comment:4 by madair, 16 years ago

correction that was changset:22

Note: See TracTickets for help on using tickets.