How to extract the values of kml file x,y,z from MATLAB
조회 수: 31 (최근 30일)
이전 댓글 표시
Is it possible to extract the values of kml file x,y,z from matlab?
Is there any url or document to refer to in this regard?
댓글 수: 0
답변 (2개)
Karanjot
2024년 8월 22일 7:21
Hi,
It is possible to extract the coordinates (latitude, longitude, altitude) from a KML (Keyhole Markup Language) file using MATLAB.
You can use the kml2struct file exchange submission to import a Google Earth .kml file of points, lines, polygons, or a combination, as a Matlab struct, compatible with the features provided with the Mapping Toolbox.
You may refer to the following blog on working with KML files within MATLAB
To access the file exchange submission, refer the link below
I hope this helps!
댓글 수: 0
Angelo Yeo
2024년 8월 22일 7:29
readgeotable support KML files to read. However, in R2024a, it only supports reading the shapes, name, and description of KML files as described in the doc. See its doc for further information.
unzip("KML_Samples.zip");
filename = "KML_Samples.kml";
T = readgeotable(filename)
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!