-
Notifications
You must be signed in to change notification settings - Fork 303
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
fix(PlanarLayer): Fix delete new extent from globalExtentTMS const #2279
base: master
Are you sure you want to change the base?
Conversation
Thanks for finding and correcting this bug 🙂 It actually corrects the issue but I think that we need to re-think the It seems that
I propose that we limit the usage of
WDYT @ketourneau @Desplandis ? Disclaimer: I tried to explain my thoughts as clear as possible but we may discuss it in a voice call if needed 😁 |
5850b46
to
a3afe9e
Compare
I agree with you. |
You mean we should remove it totally? |
No, I just wanted to say that I agree with your suggestion. |
@jailln @ketourneau : According to @mgermerie, the root cause of this issue seems to be that tiles of the terrain (as created by the view) does not match that of an actual TMS. He detailed different solutions for this issue in the #2290 proposal, which could fix other related issues in iTowns. |
@Desplandis @mgermerie We also have the same error with cog example when we try to dispose view and load another cog. If you It's the same error, when we call |
@ketourneau Yeah I think this again a mix between the issue described in #2290 and cache coherency... |
Proposed fix for #2244
Motivation and Context
When PlanarLayer is deleted, it doesn't remove extent from globalExtentTMS const.
It's why we got some trouble when we try to reload itowns with new extent. It keep previous extent added to globalExtentTMS.
I don't know if it's better to reset globalExtentTMS when view is disposed or remove extent from globalExtentTMS if PlanarLayer is deleted.
I think my fix may cause a problem if two PlanarLayer use the same extent and one was deleted.
What do you think ?