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.
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
Flightclass, 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 likesimplekmlor 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.