Project: datamanagement
Issue DM-6438: Test the new JS convertion and projection routines against the java versions
Now that the gwt algorithmic code has been converted it needs to be validated. Set up the test for both the projections routines and the coordinate conversion routines. h3. Task Details * Unit test should be run on the Java and JavaScript side * A unit test should exist for all 10 projections. More might be necessary since there are variation within a projection type. * We need to bring Booth in for details of each projection and each variation. * Booth has example file somewhere. * Xiuqin ran coordinate conversion test in to past. She (and maybe Booth) have the best understand of what that test should be. * The same input file should be used for the Java and JavaScript side. * The same output (if possible) should be produced. h3. Status so far *Projections* * GNOMONIC - somewhat tested * ORTHOGRAPHIC -somewhat tested * AITOFF - somewhat tested * SFL - somewhat tested * PLATE - somewhat tested * LINEAR * ARC * CAR * NCP * CEA *Coordinate conversion.* It appears to work when run in Firefly, however the code is not fully covered. h3. Switching between GWT and pure JavaScript To switch between GWT and JS edit {{VisUtil.js}} and change the following line: {{export const USE_GWT= false;}} true uses the old code, false used the new code. h3. Entry Points and Directories * Coordinate Conversion: _Dir_: firefly/src/firefly/js/astro/conv, _Entry Point:_ VisUtil.js, convert(), line 104, also see line 26 * Projection: _Dir_: firefly/src/firefly/js/visualize/projection, _Entry Point:_ WebPlot.js, makeWebPlot(), line 124
Story points: 12