Skip to content

Improve WGS84 displacement functions#127

Open
MartinSollie wants to merge 1 commit intoLSTS:developfrom
MartinSollie:develop
Open

Improve WGS84 displacement functions#127
MartinSollie wants to merge 1 commit intoLSTS:developfrom
MartinSollie:develop

Conversation

@MartinSollie
Copy link
Copy Markdown

More accurate WGS84 displace functions matching the implementation in DUNE from LSTS/dune#194

double c_wgs84_a = 6378137.0;
double c_wgs84_e2 = 0.00669437999013;
double p = Math.sqrt(xyz[0] * xyz[0] + xyz[1] * xyz[1]);
double lat_sin = Math.sin(Math.toRadians(lld[1]));
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this will ever get merged, but this line should use lld[0]. It currently uses longitude here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants