kmldata
isn't published on PyPI yet. Install it from GitHub repository:
pip install git+https://github.com/dankkom/kmldata#egg=kmldata
First import kmldata
import kmldata
We can transform a Pandas DataFrame into a KML file.
import pandas as pd
data = pd.read_csv("data.csv")
opt = kmldata.Options(
lat="Latitude",
lon="Longitude",
altitude="Altitude",
)
kml = kmldata.make_kml(data, opt)
kmldata.save_kml(kml, "data.kml")
df = kmldata.read_kml("data.kml")
This package is licensed under GNU GPLv3.