Metadata-Version: 2.4
Name: line-planner
Version: 1.1.6
Summary: SIF航线规划器 - 基于v1.1.0简化版本，专注稳定性和性能
Author-email: WayPoint Planning Team <waypoint@example.com>
Maintainer-email: WayPoint Planning Team <waypoint@example.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/1034378361/WayPointPlanning3
Project-URL: Documentation, https://github.com/1034378361/WayPointPlanning3/blob/main/CLAUDE.md
Project-URL: Repository, https://github.com/1034378361/WayPointPlanning3.git
Project-URL: Bug Tracker, https://github.com/1034378361/WayPointPlanning3/issues
Project-URL: Changelog, https://github.com/1034378361/WayPointPlanning3/commits
Keywords: flight planning,waypoint,drone,UAV,KML,path planning,GIS
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: GIS
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=1.21.0
Requires-Dist: matplotlib>=3.5.0
Requires-Dist: requests>=2.25.0
Provides-Extra: dev
Requires-Dist: pytest>=6.0; extra == "dev"
Requires-Dist: pytest-cov>=2.0; extra == "dev"
Requires-Dist: black>=22.0; extra == "dev"
Requires-Dist: isort>=5.0; extra == "dev"
Requires-Dist: flake8>=4.0; extra == "dev"
Requires-Dist: mypy>=0.900; extra == "dev"
Provides-Extra: docs
Requires-Dist: sphinx>=4.0; extra == "docs"
Requires-Dist: sphinx-rtd-theme>=1.0; extra == "docs"
Provides-Extra: test
Requires-Dist: pytest>=6.0; extra == "test"
Requires-Dist: pytest-cov>=2.0; extra == "test"
Requires-Dist: pytest-mock>=3.0; extra == "test"
Dynamic: license-file

# LinePlanner - SIF航线规划器

基于v1.1.0的简化版本，专注稳定性和性能。

## 快速开始

### 标准输入模式（推荐）

```bash
# 直接JSON配置
echo '{"kml_file":"boundary.kml","line_spacing":25,"rotation_angle":0,"save_dir":"./output"}' | uv run python interface.py

# 通过配置文件
echo "config.json" | uv run python interface.py
```

### 安装使用

```bash
# 从PyPI安装
pip install line-planner

# 使用uv安装（推荐）
uv add line-planner
```

## 主要特点

- ✅ **简化架构**: 从1896行代码简化到388行，删除复杂功能
- ✅ **稳定可靠**: 基于经过验证的v1.1.0版本
- ✅ **性能优化**: 运行速度快，内存占用低
- ✅ **URL支持**: 支持从HTTP/HTTPS链接下载KML文件
- ✅ **蛇形路径**: 自动优化的飞行路径生成
- ✅ **内置可视化**: 自动生成航线图像

## 配置示例

```json
{
  "kml_file": "boundary.kml",
  "line_spacing": 25,
  "rotation_angle": 0,
  "save_dir": "./output"
}
```

## Python API

```python
from line_planner import StandalonePlanner, StandaloneBoundaryParser

# 解析KML边界
parser = StandaloneBoundaryParser()
lats, lons = parser.parse_kml_coordinates("boundary.kml")

# 规划航线
planner = StandalonePlanner()
turn_points = planner.plan_flight_lines(
    boundary_lats=lats,
    boundary_lons=lons,
    line_spacing=25.0,
    rotation_angle=0.0
)
```

## 开发

```bash
# 克隆项目
git clone https://github.com/1034378361/WayPointPlanning3.git
cd WayPointPlanning3

# 安装依赖
uv sync --dev

# 运行测试
echo '{"kml_file":"test.kml","line_spacing":25,"rotation_angle":0,"save_dir":"./test_output"}' | uv run python interface.py
```

## 许可证

MIT License
