Opened 12 years ago

Closed 12 years ago

#153 closed defect (fixed)

measure line bearing

Reported by: andersd Owned by: theduckylittle
Priority: major Milestone: 2.6.1
Component: GeoMOOSE/JS Version: 2.6
Keywords: Cc:

Description

The segment line bearing is using the e/w as the reference line for calculating bearing. It should use the n/s line. The bearing values should increase from DUE NORTH from (N0-0-0-E) when you move to DUE EAST (N90-0-0E). The bearing values should also increase from DUE NORTH (N0-0-0W)when you move to DUE WEST (N90-0-0W). Like wise values should increase from DUE SOUTH (S0-0-0W) to DUE EAST (N90-0-0E). This issues occurred in the 2.4 Oregon version and was fixed by Dan.

In the MeasureBearing.JS it appears that:

var degrees = Math.atan(rise/run) / (2*Math.PI) * 360;

Should be:

var degrees = Math.atan(run/rise) / (2*Math.PI) * 360;

This appears to make it work but my rusty math is usually worse then my js.

Change History (4)

comment:1 by theduckylittle, 12 years ago

Milestone: 2.62.6.1

comment:2 by theduckylittle, 12 years ago

Owner: set to theduckylittle
Status: newassigned

comment:3 by theduckylittle, 12 years ago

Status: assignedtesting

Patched and ready, r944

comment:4 by andersd, 12 years ago

Resolution: fixed
Status: testingclosed
Note: See TracTickets for help on using tickets.