{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/8"}],"enrichment":{"capability":"Converts KML files to GeoJSON format, preserving styling, folder structure, and extended data while offering a lightweight alternative to GDAL.","skillfed_tags":["geospatial","format-conversion","cli-tool"],"use_cases":["Convert geographic data from Google Earth KML exports to GeoJSON for web mapping libraries like Leaflet or Mapbox.","Batch-process KML files from GPS devices or survey tools into a standardized format for GIS analysis.","Preserve KML styling (colors, icons) when migrating map data to web-based visualization platforms.","Extract and organize nested KML folder hierarchies into separate GeoJSON FeatureCollections for layered map rendering.","Parse KML with custom ExtendedData attributes and convert them to GeoJSON properties for downstream processing."],"what_it_does":"kml2geojson is a Python library that translates KML (Keyhole Markup Language) files into GeoJSON format. It's designed as a lightweight, dependency-minimal alternative to GDAL, with a codebase adapted from the Node.js togeojson package. The library handles standard KML elements like Placemarks, GroundOverlays, and NetworkLinks, and converts them to valid GeoJSON FeatureCollections.\n\nBeyond basic conversion, it preserves KML styling information (colors, opacity, icons), can catalog all styles used in a document, optionally organizes output by KML folder structure, and supports typed ExtendedData via KML Schemas. It works both as a Python library and as a command-line tool (k2g), making it suitable for batch processing or integration into data pipelines. The package depends only on click for CLI support.","worth_installing":"Yes. The package is actively maintained, has no known vulnerabilities, installs with minimal friction, and solves a specific problem (KML-to-GeoJSON conversion with styling preservation) that GDAL is often overkill for. Suitable for web-focused geospatial workflows where lightweight dependencies matter."},"id":"kml2geojson","links":{"html":"https://skillfed.io/packages/kml2geojson","md":"https://skillfed.io/packages/kml2geojson.md","pypi":"https://pypi.org/project/kml2geojson/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-06","license_spdx":"MIT","license_treatment":"permissive","name":"kml2geojson","python_support":"supports_current","summary":"A Python library to convert KML files to GeoJSON files"},"popularity":{"monthly_downloads":208019,"position":9537,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"6.0.0"}
