[Qgis-user] Shapefile to kml for DJI Pilot, planning your drone mission in QGIS.
Nicolas Cadieux
njacadieux.gitlab at gmail.com
Mon Nov 15 11:05:54 PST 2021
Hi,
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.
Cheers!
Nicolas
On 2021-11-15 12:04 p.m., Jeff Sonnentag wrote:
>
> Thanks. Very interesting. I didn’t know half of what was being talked
> about, but it was informative. :D
>
> 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.) (???)
>
> *From:* Qgis-user <qgis-user-bounces at lists.osgeo.org> *On Behalf Of
> *Nicolas Cadieux
> *Sent:* Sunday, November 14, 2021 10:03 AM
> *To:* Qgis List <qgis-user at lists.osgeo.org>
> *Subject:* [Qgis-user] Shapefile to kml for DJI Pilot, planning your
> drone mission in QGIS.
>
> Hi everyone,
>
> 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.
>
> I created an OpenSource python software to batch export your mission
> planning files from ArcMap and QGIS to DJI Pilot kml.
>
> 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.
>
> https://m.youtube.com/watch?v=Wzr-zP5wG1g&fbclid=IwAR3f6F_5fgxmZuy6mbM_zavW_6rtnW7oeT482wAeJ7WdEhJMovqEMmNDtTM
> <https://m.youtube.com/watch?v=Wzr-zP5wG1g&fbclid=IwAR3f6F_5fgxmZuy6mbM_zavW_6rtnW7oeT482wAeJ7WdEhJMovqEMmNDtTM>
>
> Enjoy!
>
> Nicolas Cadieux
>
> https://gitlab.com/njacadieux
>
--
Nicolas Cadieux
https://gitlab.com/njacadieux
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20211115/d4a182e0/attachment.html>
More information about the Qgis-user
mailing list