Files
dji_kmz/README.md
2025-07-11 14:35:06 +08:00

58 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# DJI KMZ Generator
将Google Earth的KML文件或普通坐标文件转换为DJI航线文件(.kmz)
## 功能特性
- 支持Google Earth导出的KML文件
- 支持自定义坐标文本文件
- 生成符合DJI Pilot规范的航线文件
- 通过TOML配置文件定义航线参数
## 依赖项
- C++17编译器
- [toml11](https://github.com/ToruNiina/toml11) (已包含v4.3.0版本)
- CMake (3.11或更高版本)
## 构建说明
```bash
# 克隆仓库
git clone https://github.com/your-repo/dji_kmz.git
cd dji_kmz
# 创建构建目录
mkdir build
cd build
# 生成构建系统
cmake ..
# 编译项目
make
```
## 使用方法
```
dji_kmz [-h] <config.toml>
```
### 配置文件示例
`example/config.toml` 文件
### 坐标文件格式
- KML文件: Google Earth导出的标准格式仅支持路径
- 文本文件: 每行包含经度、纬度、高度(空格或逗号分隔)。若高度为负则使用全局高度值。
示例:
```
120.123456,30.654321,50.0
120.124567,30.653210,45.5
```
## 许可证
MIT 许可证 - 详见 [LICENSE](LICENSE) 文件
## 作者
张壹
浙江大学地球科学学院
邮箱: yizhang-geo@zju.edu.cn