simbli / seacharts

Python API for reading and manipulating polygon data of Electronic Navigational Charts (ENC)
MIT License
36 stars 13 forks source link

Ships only visible when toggling depth scale #42

Open stiefen1 opened 2 months ago

stiefen1 commented 2 months ago

Hi! First of all thank you for this very nice API!

When running your test file (tests/test_seacharts.py) with the dataset you mentioned, everything works fine except for the ships visualization. They are only rendered when the depth colorbar is toggled (by pressing the 'c' key), meaning they appear when I press 'c', and then immediately after disappear again. If I simply maintain 'c', ships are blinking (Infinitely toggling ). Am I doing something wrong?

image

I've installed everything through miniconda3 on my windows machine.

Thank you very much for your help!

simbli commented 2 months ago

Thank you for your nice comment and input, any feedback such as this is highly appreciated.

I do not believe you're doing anything wrong, I remember having some difficulties while implementing this exact functionality a few years ago. Thus I'm suspecting that it's simply a stubborn bug related to the animation behavior in the SeaCharts code for displaying the vessels. Whether it has persisted for a long time or if it appeared in one of the latest updates, I wouldn't know.

I plan on taking a look at this issue when I find the time during the coming months, thank you very much for reporting it.