Load KML or SHP in Mission Planner doesn´t work

Hi There,

I need to load kml or shp-files in Mission Planner (the files where generated by QGis) but there is no way it works. When loading the kml-file there is always the same error “Bad KML File :System.Invalid bla bla … at SharpKml.Base.Parser.OnEelemtAdded bla bla”. When adding the shapefile there is no error disypled but it just shows one point on the map. Can anyone help please?

Thanks and best regards
Andreas

Did you ever figure this out?

In the plan page of MP you can do a KML overlay. (right click on the map) It won’t convert directly to a mission but you can use it as needed to create a mission or survey area or whatever.

Well I figured out that if you export both the path and the points from Google Earth Pro, you can actually export them as 1 file, which will automatically create waypoints for you in mission planner. So my workflow is:

  1. Get the points and put into QGIS (free)
  2. Use point to path tool to connect the points
  3. Export the path ONLY.
  4. put the point kml into google earth along with the path kml
  5. select both files and export both.
  6. load into mission planner, it should automatically create waypoints for you.

Can you show a screen shot of how you’re doing that?

I don’t know how to send a screenshot of what you’re asking for, but here’s a video uploaded to google drive. I just hit “load file” on ardupilot and get the kml with the points and path that I downloaded from Google Earth Pro.

Would you share that file you loaded into MP? (or some random location over the ocean, that doesn’t matter) The only thing MP is letting me load is txt or waypoint files. So I’m curious what was exported out of Google earth.

EDIT: Never mind, I got it.

Sure, I couldn’t figure out how to upload a kml, so here:

It’s pretty interesting though because if I try to upload the points by themselves, it just shows the points as the POI (red pindrop) not an actual waypoint. Then if I try to upload the path by itself, it says “bad kml” or something along those lines

Awesome, thanks. I just created a path and saved it as a KML. MP took that.

All I exported was the path, no pins. I didn’t get any errors but mine was only four points on the path. Pretty simple.

So you uploaded only the path and it created the waypoints from that? If that’s the case, what’s your workflow for creating the path? When I use QGIS, you can’t combine points and path files, and the path files don’t contain any GPS data (I think)

I just used the “add path” tool in google earth pro to create the route. I set the altitude for the path. Then saved it as a KML. I also tried KMZ but MP didn’t take that one.

Yeah, my workflow needs to be based off of the GPS points, so I have to work around those. If you dont need specific GPS coords, you could do that too.

I have QGIS on my computer but I’m not going to pretend I know how to use it. (I have smart co-workers for that kind of stuff) I’m going to see if any of those smart folks know how to do it because I’m thinking there must be a way to export the points as a file that could be converted to KML.

Im pretty sure you can export the point file from QGIS as a KML, is that what you’re asking?

Will MP not take that KML file then?

If I upload the point kml to MP, it gives the POIs instead of waypoints. If i upload the path kml, it gives “bad kml” The only way i’ve got it to upload waypoints is if it was from GE and the point and path file were saved together and exported as one from GE

I tried to upload a kml file as well and I got an error. I used this feature a lot in the past so I wonder if there is something broken in the code. This is the error message I got.
Mission Planner v. 1.3.82

Here you find the original kml I used already before (end of 2022).