plot atitude, longitude and altitude on google earth

16 visualizzazioni (ultimi 30 giorni)
I have a data of multiple latitude, longitude and altitude showing the path of a balloon
Is there a toolbox or a function in MATLAB that can plot latitude, longitude and elevation data on google earth.
I have used kmlwriteline(filename,latitude,longitude,altitude) function but the graph is not showing the elevation.
I will like to have a placemark at the start and end point of the map.
The attached picture shows what I will like to have.

Risposte (1)

Abhinaya Kennedy
Abhinaya Kennedy il 3 Gen 2024
Hi Telema,
The kmlwriteline function you mentioned allows you to specify latitude, longitude, and altitude for the line vertices, but it might not show elevation by default because Google Earth clamps the line to the ground. To ensure that the elevation is taken into account, you need to set the 'AltitudeMode' parameter to 'absolute' when calling kmlwriteline.
To combine the path and placemarks into a single KML file, you could use an XML editing approach or a third-party tool to merge the KML files, or you can simply open all the KML files together in Google Earth.
Here is a link to the documentation for kmlwrite function: Write geographic data to KML file - MATLAB kmlwrite - MathWorks India
Remember to check if you have the latest Mapping Toolbox installed, as the functions and capabilities related to geographic data plotting may be updated or improved over time.
Hope this helps!

Prodotti


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by