kml2struct(kmlFile) - Schema Aware
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.
Also identifies basic fields specified by the schema and populates them in the structure. This feature may take some customization to your schema.
Cita come
Lex Lombardi (2025). kml2struct(kmlFile) - Schema Aware (https://it.mathworks.com/matlabcentral/fileexchange/50148-kml2struct-kmlfile-schema-aware), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- Mathematics and Optimization > Mapping Toolbox > Data Import and Export >
- Radar > Mapping Toolbox > Data Import and Export >
- MATLAB > Language Fundamentals > Data Types > Data Type Conversion >
- MATLAB > External Language Interfaces > Other languages > Google > Google Earth >
Tag
Riconoscimenti
Ispirato da: kml2struct
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0.0 |
