Skip to content

Convert between KML, GeoJSON, GPX including complex geometries

License

Notifications You must be signed in to change notification settings

nicholas-fong/KML-to-GeoJSON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Python snippets to convert between GPX, KML and GeoJSON.

KML to GeoJSON:

Snippet to convert KML placemarks to GeoJSON's Point, LineString, Polygon and GeometryCollection. It also converts KML gx:Track to GeoJSON LineString.

$python kml2geo.py

Snippet to convert GeoJSON to KML:

$python geo2kml.py

Online tool: https://geojson.io

Some utilities to convert ascii file (e.g. sample.asc) to GeoJSON and GPX:

$python asc2geo.py sample
$python asc2wpt.py sample
$python asc2rte.py sample
$python asc2trk.py sample

A utility to calculate the distance between two geolocations using haversine distance formula:

$python distance.py

Conversions between GPX, GeoJSON and KML

$python gpx2geo.py grouse
$python geo2kml.py grouse

About

Convert between KML, GeoJSON, GPX including complex geometries

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published