ArduPilot / MissionPlanner

Mission Planner Ground Control Station for ArduPilot (c# .net)
http://ardupilot.org/planner/
GNU General Public License v3.0
1.81k stars 2.42k forks source link

KML overlay fail #3443

Open LupusTheCanine opened 2 weeks ago

LupusTheCanine commented 2 weeks ago

Issue details

Mission planners fails to load KML as overlay (Map Tools -> KML OVerlay) image

Version

Up to 1.3.82 build 1.3.9077.8924 on Windows

Platform

[ X ] All [ ] AntennaTracker [ ] Copter [ ] Plane [ ] Rover [ ] Sub

Logs

Trees.kml.txt (remove .txt extension)

EosBandi commented 2 weeks ago

MP is quite picky for correctly formatted and simple KLM files.

Test: Open Google Earth Pro, draw a polygon and save it as a KML. You can load it nicely into MP.

It is very likely that your KML is malformed, or contains elements that is not understand by MP.

LupusTheCanine commented 2 weeks ago

MP is quite picky for correctly formatted and simple KLM files.

Test: Open Google Earth Pro, draw a polygon and save it as a KML. You can load it nicely into MP.

It is very likely that your KML is malformed, or contains elements that is not understand by MP.

Apparently Google Earth Pro produces malformed KMLs by skipping default values at least for colors and line widths. It would be nice if Mission Planner handled default color and line widths.

Support for polygon fill would be nice too.

EosBandi commented 2 weeks ago

fixed in https://github.com/ArduPilot/MissionPlanner/pull/3444

Changing polygon fill handling behavior could be an issue for those who get used to that all polygon fills are rendered transparent...

LupusTheCanine commented 2 weeks ago

fixed in #3444

Changing polygon fill handling behavior could be an issue for those who get used to that all polygon fills are rendered transparent...

In my test there was no fill at all. (I tried 40% in Google Earth Pro). I remember polygons filled white (as were all objects in the given KML), wasn't fun.