MSS icon indicating copy to clipboard operation
MSS copied to clipboard

Fix: Refactored kml dockwidget for fastkml >=1.0.0

Open levi178u opened this issue 8 months ago • 9 comments

Purpose of PR?:

Fixes #2688

Changes done :

  • Update fastkml KML parsing for compatibility with version >=1.0.0 and fixed issue caused by APi deprecation.
  • Replaced deprecated .from_string() usage and added encoding to ensure compatibility with fastkml 1.0.0.

levi178u avatar Apr 12 '25 06:04 levi178u

Ok ,lemme work on it

levi178u avatar Apr 12 '25 11:04 levi178u

@ReimarBauer when i ran the pytest for testing the kmloverlay_dockwidget.py, I got this tests/_test_msui/test_kmloverlay_dockwidget.py::Test_KmlOverlayDockWidget::test_kml_patches Fatal Python error: Aborted

what should i do to fix it and why is it occurring. I checked the files to make sure Widget is initialized before accessing its members in the test. Screenshot 2025-04-12 193513

levi178u avatar Apr 12 '25 14:04 levi178u

what should i do to fix it and why is it occurring.

Refactoring often starts with checking if the existing API is covered by tests. Then it’s about understanding what the API actually does. After that, you look at the changes in the FastKML documentation and GitHub releases. Only then can you decide how to apply the new API while maintaining functionality.

ReimarBauer avatar Apr 13 '25 15:04 ReimarBauer

what should i do to fix it and why is it occurring.

Refactoring often starts with checking if the existing API is covered by tests. Then it’s about understanding what the API actually does. After that, you look at the changes in the FastKML documentation and GitHub releases. Only then can you decide how to apply the new API while maintaining functionality.

Ok lemme work on it

levi178u avatar Apr 13 '25 18:04 levi178u

@ReimarBauer pls review the changes

levi178u avatar Apr 24 '25 10:04 levi178u

you could rebase to orgin develop

ReimarBauer avatar Apr 29 '25 13:04 ReimarBauer

you could rebase to orgin develop

It's already based to develop branch

levi178u avatar Apr 29 '25 14:04 levi178u

you could rebase to orgin develop

It's already based to develop branch

Bildschirmfoto 2025-04-29 um 17 09 37

yours is behind.

ReimarBauer avatar Apr 29 '25 15:04 ReimarBauer

@ReimarBauer pls review the changes

levi178u avatar May 03 '25 08:05 levi178u

was implemented by https://github.com/Open-MSS/MSS/pull/2833

ReimarBauer avatar Jul 17 '25 12:07 ReimarBauer