kml2struct
编者注: This file was selected as MATLAB Central Pick of the Week
Import a Google Earth .kml file of points, lines, polygons, or a combination, as a Matlab struct, compatible with the Mapping Toolbox features, and with shapefiles imported with shaperead().
Structs are composed of the following fields:
- Geometry
- Name
- Description
- Lon
- Lat
- BoundingBox
Mapping Toolbox polygons require a clockwise convention to specify between negative and positive areas. These are not specified in .kml files, so all polygons are converted to clockwise orientation to guarantee that they represent positive space.
引用格式
James Slegers (2024). kml2struct (https://www.mathworks.com/matlabcentral/fileexchange/35642-kml2struct), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
平台兼容性
Windows macOS Linux类别
- Mathematics and Optimization > Mapping Toolbox > Data Import and Export >
- Radar > Mapping Toolbox > Data Import and Export >
- MATLAB > Language Fundamentals > Data Types > Structures >
- MATLAB > External Language Interfaces > Other languages > Google > Google Earth >
标签
致谢
启发作品: kml2struct(kmlFile) - Schema Aware, Antarctic Active Subglacial Lake Inventory from ICESat Altimetry, kml2struct_multi
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!