PegasusFJ
lvl.1
Flight distance : 125162592 ft
Fiji
Offline
|
I just came across of a similar problem trying to import QGIS generated KML into DJI Pilot with no luck and did a little bit of investigation.
Now what I found is. DJI Pilot needs coordinates with altitude figures when QGIS produces KML without them and that's where DJI Pilot import brakes as they don't find important altitude coordinates for the polygon or waypoint line and the import brakes.
In case someone else faces such boomer, do the following:
1. In your DJI Pilot app create random simple mission. For example default square polygon for mapping mission.
2. Export that mission in KML file from DJI Pilot app. That's going to be your template.
3. Open it in any text editor (Notepad for example) and open your QGIS KML file in another window.
Take coordinates (figures in <coordinates></coordinates> section) from your QGIS KML file copy and paste them in the same section replacing coordinates in DJI Pilot exported KML file.
Pay attention to altitude figures in coordinate section. QGIS saves none or they would be irrelevant and need to be corrected to the altitude figures you need for your mission.
For example coordinates section from QGIS KML could be look like this
<coordinates>179.958529575439,-16.8766400350985 179.974090902535,-16.880952088413 179.968388552489,-16.8925083668104 179.956666294154,-16.8814541642813 179.958529575439,-16.8766400350985</coordinates>
Same section for successful import in DJI Pilot would be looking like this
<coordinates>179.958529575439,-16.8766400350985,100 179.974090902535,-16.880952088413,100 179.968388552489,-16.8925083668104,100 179.956666294154,-16.8814541642813,100 179.958529575439,-16.8766400350985,100</coordinates>
I've highlighted with bold the altitude figures that need to be added in the coordinates for successful import in DJI Pilot
So once you added them, save your DJI Pilot KML file and import it back in DJI Pilot app..
Done
P.S. I guess if your QGIS vector file comes with Z coordinate you mught get the right coordinate section for your DJI Pilot KML without need to add altitude figures there.. just take it from your QGIS KML and paste it in DJI Pilot KML template file keeping compliance with DJI Pilot KML format save and import it back in DJi Pilot..
There is also big section that looking like the one bellow is missing in your QGIS file that makes import in DJI Pilot impossible as it has to be present in the KML file tha you import in DJI software.
(just a sample from my mission)
<ExtendedData xmlns:mis="www.dji.com">
<mis:altitude>100</mis:altitude>
<mis:direction>270</mis:direction>
<mis:margin>25.0</mis:margin>
<misverlapH>80</misverlapH>
<misverlapW>70</misverlapW>
<mis:autoFlightSpeed>5.0</mis:autoFlightSpeed>
<mis:takeoffSpeed>10.0</mis:takeoffSpeed>
<mis:actionOnFinish>GoHome</mis:actionOnFinish>
<mis:actionOnFinish>GoHome</mis:actionOnFinish>
<mis:elevationOptimize>false</mis:elevationOptimize>
<mis:photoMode>0</mis:photoMode>
<mis:cameraType>hantom 4</mis:cameraType>
<mis:focalLength>3.6</mis:focalLength>
<mis:sensorW>6.2</mis:sensorW>
<mis:sensorH>4.65</mis:sensorH>
<mis:imageW>0</mis:imageW>
<mis:imageH>0</mis:imageH>
<mis:shotInterval>2.5</mis:shotInterval>
</ExtendedData>
If you see some stupid emoji in the code above, please excuse. That's not me, that's DJI silly forum adds them.
So make sure the Extended Data section is present in your KML or just use DJI exported KML as a template and just replace coordinates in there making sure they have altitude figures.
|
|