2.47. KML to geodata

Convert KML, KMZ to structured geodata (GeoJSON). This tool can work with attachments (photo) and can parse structured tables added to description of the KML feature.

Inputs:

  • Source data - KML or KMZ file.

  • Table fieldnames - optional. Indicate table fieldnames from Description section of KML file, which should be processed. Should be listed without space and separated by comma.

  • Check for files presence - if checked, the result GeoJSON will mention only the files that are present in the archive indeed.

  • Ignore extended data - if checked, lc:attachment will be ignored.

  • Keep Z coordinate -i f checked, Z coordinate will be preserved and PointZ/LinestringZ etc geometries will be created.

Outputs:

  • ZIP compressed GeoJSON with attachments if any.

Download an example of source data and result: https://nextgis.ru/data/toolbox/kml2geodata/kml2geodata.zip

Launch tool: https://toolbox.nextgis.com/operation/kml2geodata

../../_images/kml2geodata-src.png

Pic. 2.32. Source data example. KML with attributes structured as the table in the description of a feature

../../_images/kml2geodata-res.png

Pic. 2.33. Result example. Data opened in QGIS after conversion with the tool