Skip to main content

Fast KML processing in python

Project description


Fastkml is a library to read, write and manipulate KML files. It aims to keep
it simple and fast (using lxml_ if available). Fast refers to the time you
spend to write and read KML files as well as the time you spend to get
aquainted to the library or to create KML objects. It aims to provide all of
the functionality that KML clients such as `OpenLayers
<>`_, `Google Maps <>`_, and
`Google Earth <>`_ provides.

Geometries are handled as pygeoif_ or, if installed, shapely_ objects.

.. _pygeoif:
.. _shapely:
.. _lxml:
.. _dateutils:
.. _pip:

Fastkml is continually tested with *Travis CI*:

.. image::
:alt: Tests

.. image::

.. image::

Is Maintained and documented:

.. image::
:alt: Latest PyPI version

.. image::
:alt: Development Status

.. image::
:alt: Documentation

.. image::
:alt: 'Stories in Ready'

.. image::
:alt: Statistics from OpenHub

Supports python 2 and 3:

.. image::
:alt: Supported Python versions

.. image::
:alt: Supported Python implementations


You can find all of the documentation for FastKML at `
<>`_. If you find something that is missing,
please submit a pull request on `GitHub <>`_
with the improvement.


You can install the package with ``pip install fastkml`` or ``easy_install
fastkml`` which should also pull in all requirements.


* pygeoif_
* dateutils_


* lxml_
* shapely_

You can install all of the requirements for working with FastKML by using

pip install -r requirements.txt

.. note::

Shapely_ requires that libgeos be installed on your system. ``apt-get
install libgeos-dev`` will install these requirements for you on Debian-
based systems.


*Tesselate*, *Extrude* and *Altitude Mode* are assigned to a Geometry or
Geometry collection (MultiGeometry). You cannot assign different values of
*Tesselate*, *Extrude* or *Altitude Mode* on parts of a MultiGeometry.

Currently, the only major feature missing for the full Google Earth experience
is the `gx extension
This will most likely be added after the 1.0 version release.

You can find the complete list of current issues on `GitHub


0.11.1 (2015/07/13)

- add travis deploy to travis.yml

0.11 (2015/07/10)

- handle coordinates tuples which contain spaces

0.10 (2015/06/09)

- Fix bug when the fill or outline attributes of a PolyStyle are float strings

0.9 (2014/10/17)

- Add tox.ini for running tests using tox [Ian Lee]
- Add documentation, hosted at [Ian Lee]

0.8 (2014/09/18)

- Add support for address and phoneNumber [Ian Lee]
- Add support for Ground Overlay kml [Ian Lee]

0.7 (2014/08/01)

- Handle case where Document booleans (visibility,isopen) are 'true' or 'false' [jwhelland]
- test case additions and lxml warning [Ian Lee]
- pep8-ify source code (except [Ian Lee]
- pyflakes-ify source code (except [Ian Lee]

0.6 (2014/05/29)

- add Schema
- add SchemaData
- make use of lxmls default namespace

0.5 (2013/10/23)

- handle big files with huge_tree for lxml [Egil Moeller]
- bugfixes

0.4 (2013/09/05)

- adds the ability to add untyped extended data / named value pairs [Denis Krienbuehl]

0.3 (2012/11/15)

- specify minor python versions tested with Travis CI
- add support for tesselation, altitudeMode and extrude to Geometries
- move implementation of geometry from kml.Placemark to geometry.Geometry
- add support for heterogenous GeometryCollection
- python 3 compatible
- fix test for python 3
- change license to LGPL
- register namespaces for a more pleasant, human readable xml output

0.2 (2012/07/27)

- remove dependency on shapely
- add more functionality

0.1.1 (2012/06/29)

- add

0.1 (2012/06/27)

- initial release

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastkml-0.11.tar.gz (66.2 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page