Al momento, stai seguendo questo contributo
- Vedrai gli aggiornamenti nel tuo feed del contenuto seguito
- Potresti ricevere delle email a seconda delle tue preferenze per le comunicazioni
Nota dell'editore: 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.
Cita come
James Slegers (2026). kml2struct (https://it.mathworks.com/matlabcentral/fileexchange/35642-kml2struct), MATLAB Central File Exchange. Recuperato .
Riconoscimenti
Ispirato: kml2struct(kmlFile) - Schema Aware, Antarctic Active Subglacial Lake Inventory from ICESat Altimetry, kml2struct_multi
Informazioni generali
- Versione 1.1.0.0 (1,95 KB)
Compatibilità della release di MATLAB
- Compatibile con qualsiasi release
Compatibilità della piattaforma
- Windows
- macOS
- Linux
