Skip to content

KML to GeoJSON Converter: A Python script to convert KML files to GeoJSON format for use in mapping and GIS applications.

Notifications You must be signed in to change notification settings

michalnaka/kml_to_geojson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

# KML to GeoJSON Converter

## Overview
This Python script converts KML (Keyhole Markup Language) files to GeoJSON format. The script extracts features such as points and polygons from the KML file and converts them into a GeoJSON FeatureCollection. The output GeoJSON file can be used in various mapping and GIS applications.

## Dependencies
- fastkml
- geojson
- lxml
- pygeoif

## Usage
```python
import kml_to_geojson_converter

# Example usage
kml_to_geojson_converter.kml_to_geojson('input.kml', 'output.geojson')

# Parameters

kml_file: Path to the input KML file.
geojson_file: Path to the output GeoJSON file.
License

# MIT License

# Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue.

About

KML to GeoJSON Converter: A Python script to convert KML files to GeoJSON format for use in mapping and GIS applications.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages