ENH: Add KML export functionality for 3D trajectories

Abierto
#1,083 1 comentario 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
python
Área
api

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
1.1k
Forks
280
Merge medio
3 d 2 h
PR fusionados (30 d)
24

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de RocketPy-Team/RocketPy

Todos los issues de RocketPy-Team/RocketPy

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.