plot atitude, longitude and altitude on google earth

18 ビュー (過去 30 日間)
Telema Harry
Telema Harry 2021 年 9 月 4 日
回答済み: Abhinaya Kennedy 2024 年 1 月 3 日
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.
  1 件のコメント
cui,xingxing
cui,xingxing 2024 年 1 月 2 日
Have you try geoplot3 build-in function?

サインインしてコメントする。

回答 (1 件)

Abhinaya Kennedy
Abhinaya Kennedy 2024 年 1 月 3 日
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!

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by