Skip to content

Export

Export functions for converting parsed flight data into standard formats.

Export formats for DJI flight log data.

export_csv

export_csv(frames: list[Frame], details: Details, output: TextIO = sys.stdout) -> None

Export frames as CSV with ~120 columns.

export_geojson

export_geojson(frames: list[Frame], details: Details, output: TextIO = sys.stdout) -> None

Export frames as a GeoJSON Feature with LineString geometry.

export_json

export_json(log: DJILog, frames: list[Frame] | None = None, raw_records: list[Record] | None = None, output: Path | None = None) -> str

Export as JSON. Returns the JSON string.

If raw_records is provided, exports raw records mode. If frames is provided, exports normalized frames mode. Otherwise, exports details-only mode (legacy).

export_kml

export_kml(frames: list[Frame], details: Details, output: BinaryIO = sys.stdout.buffer) -> None

Export frames as a KML Document with LineString track.