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

Disappearing track near 180° East #493

Closed
wthaem opened this issue Feb 21, 2022 · 2 comments
Closed

Disappearing track near 180° East #493

wthaem opened this issue Feb 21, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@wthaem
Copy link
Contributor

wthaem commented Feb 21, 2022

Describe the bug

Attached is a GPX file with a track located near but west of 180° East. This track is correctly painted with one zoom level and one map position. This track disappears when moving or zooming the map slightly.

The attached snapshot consist of 3 parts: the upper left and the lower parts are equal and show the track. The upper right snapshot was taken after slight move of the map. Here, the track can't be seen.

What have you done to circle down the problem?

To Reproduce

  1. Load attached GPX file
  2. Double click the track to position it on the map
  3. Check if it can bee seen
  4. Move map or zoom it a bit to see the track appearing resp. disappearing

Can be reproduced!

Expected behavior

The track should be always on the map

Screenshots

Attached

Attachments

GPX file + snapshots

Tracebacks

None

Desktop

  • OS: Windows 10
  • QMapShack Version: 1.16.1, latest dev
  • Window Manager: [e.g. KDE, GNOME]

Additional context

My impression is that 180° East is somehow involved in the problem. Extreme case: Move track to the east so that right border is at 180° East.

NZ.zip

@wthaem wthaem added the bug Something isn't working label Feb 21, 2022
@kiozen
Copy link
Collaborator

kiozen commented Feb 21, 2022

This is a known problem at 180°. A correct rendering would make the already quite complex code even more complex.

A workaround is to use a projection that takes 180° as center. I do not have an EPSG code at hand but those projections exist.

@wthaem
Copy link
Contributor Author

wthaem commented Feb 21, 2022

Thanks for the quick answer. I wasn't aware that this is known.

@wthaem wthaem closed this as completed Feb 21, 2022
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

No branches or pull requests

2 participants