This class is a waypoint mission editing class, which is used for loading waypoint mission files, editing waypint fields and generating waypoint mission files. For the meaning of the waypoint field, please refer to the code comment and DJI WPML. For the interface call process, please refer to: Wayline Sample.
Generate waypoint mission KMZ files by setting waypoint mission information, and the generated KMZ files will be stored in kmzPath path. The KMZ file generated by this interface contains a Template file, which is compatible with DJI Pilot.
Generate waypoint mission KMZ files by setting waypoint mission information, and the generated KMZ files will be stored in kmzPath path. The KMZ file generated by this interface does not contain a Template file and cannot be used compatible with DJI Pilot.
Convert KML files to KMZ files. When converting non-DJI-generated KML files to KMZ files, height mode needs to be provided. The supported height modes are WGS84, EGM96, and RELATIVE. The RELATIVE mode is only used for DJI Pilot display and developers can ignore it.
Input Parameters:
String kmlImportPath
The KML file path that needs to be converted.
String kmzOutPath
KMZ file path stored after conversion.
HeightMode transParams
Height mode.
Return:
boolean
true indicates that the conversion was successful.