ENH: Add KML export functionality for 3D trajectories

未關閉
#1,083 1 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 3 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
48/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
冷清
技術堆疊
python
領域
api

研究方向

Start by reading the Flight class and checking how flight.post_processed.to_dataframe() exposes latitude, longitude, and altitude. Then identify where Flight methods and their tests are organized. Done means a new export method writes those trajectory coordinates to a standard KML file that can be opened in a GIS application.

由索引模型根據 Issue 內容生成。

描述

Enhancement Outputs

Currently, RocketPy provides excellent 3D trajectory visualization using Vedo (PyVista/VTK). However, users cannot easily export these trajectories to visualize them in Google Earth or other GIS applications. This limits the ability to overlay flight paths on real-world maps or share trajectories with non-technical stakeholders.

Add a new method to the Flight class, e.g., export_to_kml(filename="trajectory.kml"), which exports the flight trajectory data (latitude, longitude, altitude) to a standard KML (Keyhole Markup Language) file. This would allow users to open the file directly in Google Earth, Google Maps or other GIS software.

Users can currently extract the data via flight.post_processed.to_dataframe() and manually convert it using third-party tools like simplekml or GPSVisualizer. Adding a built-in method would improve usability and streamline the workflow.

This feature was suggested by a community member on Instagram who asked: "can we export the 3d animations to kml to view trajectories on google earth". Implementing this would be a great quality-of-life improvement for the community.

If accepted, I would like to work on this and submit a PR.

主要語言
Python
星號
1.1k
分支
280
平均合併
3 天 2 小時
30 天內合併 PR
24

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

RocketPy-Team/RocketPy 的其他 Issue

查看 RocketPy-Team/RocketPy 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。