LinePlanner - SIF航线规划器
基于v1.1.0的简化版本,专注稳定性和性能。
快速开始
标准输入模式(推荐)
# 直接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
安装使用
# 从PyPI安装
pip install line-planner
# 使用uv安装(推荐)
uv add line-planner
主要特点
- ✅ 简化架构: 从1896行代码简化到388行,删除复杂功能
- ✅ 稳定可靠: 基于经过验证的v1.1.0版本
- ✅ 性能优化: 运行速度快,内存占用低
- ✅ URL支持: 支持从HTTP/HTTPS链接下载KML文件
- ✅ 蛇形路径: 自动优化的飞行路径生成
- ✅ 内置可视化: 自动生成航线图像
配置示例
{
"kml_file": "boundary.kml",
"line_spacing": 25,
"rotation_angle": 0,
"save_dir": "./output"
}
Python API
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
)
开发
# 克隆项目
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
Metadata
Release files for line-planner 1.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| line_planner-1.1.6.tar.gz | 209.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| line_planner-1.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 226.5 kB
Release files / line_planner-1.1.6.tar.gz
| Download URL | line_planner-1.1.6.tar.gz |
|---|---|
| Size | 209.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba31bbd384a6a4e85435b5fa03a63b68c38ff6dcd75275786e40e6d5d7b8ac05
|
|
BLAKE2b-256 checksum How to use checksums |
8f0ba5cdd38ad7114bedcf94eadb22378525a93259a4cf7ec59ec485d47a0a41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / line_planner-1.1.6-py3-none-any.whl
| Download URL | line_planner-1.1.6-py3-none-any.whl |
|---|---|
| Size | 17.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1105ac9eddeecd40a884f4392565160bd394396848abafeded55eab7115f2beb
|
|
BLAKE2b-256 checksum How to use checksums |
d25569dbceee0afdb399d321d560154d64811b9a57bd1156f7f9d277c5b34d86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for line-planner 1.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.