Skip to main content

SIF航线规划器 - 基于v1.1.0简化版本,专注稳定性和性能

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

line_planner-1.1.6.tar.gz (209.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

line_planner-1.1.6-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file line_planner-1.1.6.tar.gz.

File metadata

  • Download URL: line_planner-1.1.6.tar.gz
  • Upload date:
  • Size: 209.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for line_planner-1.1.6.tar.gz
Algorithm Hash digest
SHA256 ba31bbd384a6a4e85435b5fa03a63b68c38ff6dcd75275786e40e6d5d7b8ac05
MD5 54e7b1503994461ed4f4566bbc7205ac
BLAKE2b-256 8f0ba5cdd38ad7114bedcf94eadb22378525a93259a4cf7ec59ec485d47a0a41

See more details on using hashes here.

File details

Details for the file line_planner-1.1.6-py3-none-any.whl.

File metadata

  • Download URL: line_planner-1.1.6-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for line_planner-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1105ac9eddeecd40a884f4392565160bd394396848abafeded55eab7115f2beb
MD5 1f740858088aace10b92da1032800ec0
BLAKE2b-256 d25569dbceee0afdb399d321d560154d64811b9a57bd1156f7f9d277c5b34d86

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page