<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>Thanks for the comments. Since the KML built in Google Earth,
QGIS or Esri product are all compatible with each other, I deduced
that the DJI Pilot software was not reading the kml tags
properly. Even the video distributed by the company indicate that
the easiest way is to simply take a kml build in Google Earth and
to cut and paste the new coordinates in the kml using a text
editor. QGIS add some very basic tags that seem to make things
crash in DJI. The file looks good and seems to respect the format.
File created in ArcMap can be read in Google Earth and QGIS but
they seem to take a few liberties... That's why I used the
simplekml python library. It keep thing as a very bare minimum.
Perhaps I could should have use the gdal library that I use for
reading the files? Anyways, the simplekml.py made a simple basic
kml that is compatible so I used that, not wanting to spend much
time on the project. Ideally, we would need to contact DJI to
get a list of what tags are read by their software. Ideally, they
would fix things on input end but looks like they have more
pressing priorities... In the mean time, my script will fix
things.</p>
<p>Cheers!</p>
<p>Nicolas<br>
</p>
<div class="moz-cite-prefix">On 2021-11-15 12:04 p.m., Jeff
Sonnentag wrote:<br>
</div>
<blockquote type="cite"
cite="mid:BYAPR10MB2998A953EE20990A45B70D0AD7989@BYAPR10MB2998.namprd10.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Courier New";
color:windowtext;
font-weight:normal;
font-style:normal;
text-decoration:none none;}.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Courier New"">Thanks.
Very interesting. I didn’t know half of what was being
talked about, but it was informative. :D
<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Courier New"">Has
anybody looked into creating a modified simple (apparently 1
feature per KML file) KML export option in QGIS that only
exports what DJI will accept to work with (or maybe some
other software too that is limited to the most simple KML as
well)? I don’t have any drone at the moment and didn’t know
problems existed, but apparently some people exporting
things from Google Earth have problems at times too.
(Probably has to do with the origin of the KML they most
likely loaded into Google Earth and then tried saving off
again.) (???)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Qgis-user
<a class="moz-txt-link-rfc2396E" href="mailto:qgis-user-bounces@lists.osgeo.org"><qgis-user-bounces@lists.osgeo.org></a> <b>
On Behalf Of </b>Nicolas Cadieux<br>
<b>Sent:</b> Sunday, November 14, 2021 10:03 AM<br>
<b>To:</b> Qgis List <a class="moz-txt-link-rfc2396E" href="mailto:qgis-user@lists.osgeo.org"><qgis-user@lists.osgeo.org></a><br>
<b>Subject:</b> [Qgis-user] Shapefile to kml for DJI
Pilot, planning your drone mission in QGIS.<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Hi everyone,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Some of you flying drone missions might
have noticed that DJI Pilot, does not like .KMLs created in
anything else than Google Earth. When exporting the most
basic kml from QGIS, the resulting kml still has too many
tags for the DJI software.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I created an OpenSource python software
to batch export your mission planning files from ArcMap and
QGIS to DJI Pilot kml.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">The video explains the advantages of
using a true GIS over Google Earth to plan your missions,
shows how to use the software and how to setup your Python
environment. You can go to my gitlab page to download the
script.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><a
href="https://m.youtube.com/watch?v=Wzr-zP5wG1g&fbclid=IwAR3f6F_5fgxmZuy6mbM_zavW_6rtnW7oeT482wAeJ7WdEhJMovqEMmNDtTM"
moz-do-not-send="true">https://m.youtube.com/watch?v=Wzr-zP5wG1g&fbclid=IwAR3f6F_5fgxmZuy6mbM_zavW_6rtnW7oeT482wAeJ7WdEhJMovqEMmNDtTM</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Enjoy!<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Nicolas Cadieux<o:p></o:p></p>
<div>
<p class="MsoNormal"><a href="https://gitlab.com/njacadieux"
moz-do-not-send="true" class="moz-txt-link-freetext">https://gitlab.com/njacadieux</a><o:p></o:p></p>
</div>
</div>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
Nicolas Cadieux
<a class="moz-txt-link-freetext" href="https://gitlab.com/njacadieux">https://gitlab.com/njacadieux</a></pre>
</body>
</html>