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

Bugfix in OctoAssociator.transform_events #20

Merged
merged 2 commits into from
Oct 4, 2024
Merged

Conversation

jsaul
Copy link
Contributor

@jsaul jsaul commented Oct 2, 2024

In OctoAssociator.transform_events the events are transformed back from local to global EPSG:4326 coordinates. In that course a scaling of the local coordinates from kilometers to meters (or kilometers) takes place, which requires a multiplication with the scaling factor of 1000 (or 1) rather than a division.

With this fix in place, correct event coordinates are obtained also in EPSG:4326.

jsaul and others added 2 commits October 2, 2024 08:50
In OctoAssociator.transform_events the events are transformed back from local to global EPSG:4326 coordinates. In that course a  scaling of the local coordinates from kilometers to meters or kilometers takes place, which requires a multiplication with the scaling factor (1000 or 1) rather than a division.

With this fix in place, correct event coordinates are now obtained also in EPSG:4326.
@yetinam
Copy link
Owner

yetinam commented Oct 4, 2024

Thanks for the great catch! I've added a unit test and will merge now.

@yetinam yetinam added the bug Something isn't working label Oct 4, 2024
@yetinam yetinam merged commit 1078f25 into yetinam:main Oct 4, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants