Skip to content

Documentation for combine_geojsons_to_kml ​

Path: utils/combine_geojsons_to_kml.py

Module Description ​

Script to combine all GeoJSON files from the output directory into a single KML file. This script will recursively find all .geojson files and convert them to KML format.

Functions ​

load_geojson_file ​

Load and parse a GeoJSON file.

convert_coordinates ​

Convert GeoJSON coordinates to KML format. GeoJSON uses [longitude, latitude] while KML uses (longitude, latitude, altitude).

create_kml_from_geojsons ​

Create a KML file from all GeoJSON files in the output directory.

main ​

Main function to run the script.