# 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

###### 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 kmzPath | KMZ file storage path.

##### Return:

KMZInfo | Returns waypoint mission information in a KMZ file.

method
generateKMZFile

###### 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 kmzPath | KMZ file storage path.
WaylineMission waylineMission | Waypoint mission file information.
WaylineMissionConfig config | Global information about waypoint mission.
Template waylineTemplate | Waypoint mission information template class.

method
generateKMZFile

###### 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 kmzPath | KMZ file storage path.
WaylineMission waylineMission | Waypoint mission file information.
WaylineMissionConfig config | Global information about waypoint mission.
Wayline wayline | Waypoint mission information.

method
checkValidation

###### method checkValidation

    WaylineCheckErrorMsg checkValidation(String kmzPath)

Package: | com.dji.wpmzsdk.interfaces

##### Description:

Check some fields in the KMZ file.

##### Input Parameters:

String kmzPath | KMZ file storage path.

##### Return:

WaylineCheckErrorMsg | Returns error messages in the KMZ file.

method
transKMLtoKMZ

###### 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 kmlImportPath | The KML file path that needs to be converted.
String kmzOutPath | KMZ file path stored after conversion.

##### Return:

boolean | `true` indicates that the conversion was successful.

method
transKMLtoKMZ

###### 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 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.

×

## Search Mobile SDK Document

{{searchCount}} Results

- ### {{{(item.highlights && item.highlights.title) || item.title}}}

  {{{(item.highlights && item.highlights.content[0]) || item.title}}}

Load More
Loading...
Not Found