KML-Matlab-Shapefile conversion

Matlab script to import KML files into Matlab as well as conversion to Shapefile.
5,5K download
Aggiornato 1 giu 2010

Visualizza la licenza

Matlab script to read KML files into a mapstruct structure array and offers the option of writing to a Shapefile. KML files must be of a uniform type: Point, LineString, LinearRing or
Polygon. The output contains 5-6 fields, 'Geometry', 'X', 'Y', 'altitude', 'Id' and 'name'. The final field is created and populated only if there is exactly one <name> tag for each feature - these are the names that are used in Google Earth for labeling. This mapstruct array can be easily displayed in Matlab using the 'mapshow' or 'geoshow' command. This output format allows exporting to a Shapefile using the Matlab command, 'shapewrite', which is initiated by entering an output filename into the function. This conversion requires Matlab version 2008a or a more recent version.

Cita come

Michael Toomey (2025). KML-Matlab-Shapefile conversion (https://it.mathworks.com/matlabcentral/fileexchange/25104-kml-matlab-shapefile-conversion), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2008a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.2.0.0

June 1, 2010 : Small change to the help information/description to correct a typo. The code itself is exactly the same.

1.0.0.0