Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase accuracy with omerc projection #317

Merged
merged 6 commits into from Jan 21, 2021
4 changes: 2 additions & 2 deletions lib/projections/omerc.js
Expand Up @@ -181,8 +181,8 @@ export function inverse(p) {
var u, v, Qp, Sp, Tp, Vp, Up;
var coords = {};

p.x = (p.x * this.to_meter - this.x0) * (1.0 / this.a);
p.y = (p.y * this.to_meter - this.y0) * (1.0 / this.a);
p.x = (p.x - this.x0) * (1.0 / this.a);
Copy link
Member

Choose a reason for hiding this comment

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

are we going to need to add some tests for non meter omerc projections ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would think so.

I'll get back to this PR sometime next week, got pulled into some other stuff.

p.y = (p.y - this.y0) * (1.0 / this.a);

if (this.no_rot) {
v = p.y;
Expand Down