DJI Mobile SDK Documentation

      class IWPMZManager

      interface IWPMZManager
      Package:com.dji.wpmzsdk.interfaces
      Description:

      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.

      Supported since MSDK 5.6.0

      Class Members:
      method getKMZInfo
      KMZInfo getKMZInfo(String kmzPath)
      Package:com.dji.wpmzsdk.interfaces
      Description:

      Load the KMZ file and get the waypoint mission information in the KMZ file.

      Input Parameters:
      String kmzPathKMZ file storage path.
      Return:
      KMZInfoReturns waypoint mission information in a KMZ file.
      method generateKMZFile
      void generateKMZFile(String kmzPath , WaylineMission waylineMission , WaylineMissionConfig config , Template waylineTemplate  )
      Package:com.dji.wpmzsdk.interfaces
      Description:

      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.

      Input Parameters:
      String kmzPathKMZ file storage path.
      WaylineMission waylineMissionWaypoint mission file information.
      WaylineMissionConfig configGlobal information about waypoint mission.
      Template waylineTemplateWaypoint mission information template class.
      method generateKMZFile
      void generateKMZFile(String kmzPath , WaylineMission waylineMission , WaylineMissionConfig config , Wayline wayline)
      Package:com.dji.wpmzsdk.interfaces
      Description:

      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.

      Input Parameters:
      String kmzPathKMZ file storage path.
      WaylineMission waylineMissionWaypoint mission file information.
      WaylineMissionConfig configGlobal information about waypoint mission.
      Wayline waylineWaypoint mission information.
      method checkValidation
      WaylineCheckErrorMsg checkValidation(String kmzPath)
      Package:com.dji.wpmzsdk.interfaces
      Description:

      Check some fields in the KMZ file.

      Input Parameters:
      String kmzPathKMZ file storage path.
      Return:
      WaylineCheckErrorMsgReturns error messages in the KMZ file.
      method transKMLtoKMZ
      boolean transKMLtoKMZ(String kmlImportPath , String kmzOutPath)
      Package:com.dji.wpmzsdk.interfaces
      Description:

      Convert KML files to KMZ files. The historical KML files generated by the DJI App can be converted into KMZ files.

      Input Parameters:
      String kmlImportPathThe KML file path that needs to be converted.
      String kmzOutPathKMZ file path stored after conversion.
      Return:
      booleantrue indicates that the conversion was successful.
      method transKMLtoKMZ
      boolean transKMLtoKMZ(String kmlImportPath , String kmzOutPath , HeightMode transParams)
      Package:com.dji.wpmzsdk.interfaces
      Description:

      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 kmlImportPathThe KML file path that needs to be converted.
      String kmzOutPathKMZ file path stored after conversion.
      HeightMode transParamsHeight mode.
      Return:
      booleantrue indicates that the conversion was successful.