Fast KML processing in python
Project description
Introduction
============
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 provides
a subset of KML and is aimed at documents that can be read from multiple
clients such as openlayers and google maps rather than to give you all
functionality that KML on google earth provides.
Geometries are handled as pygeoif_ or shapely_ (if installed) objects.
.. _pygeoif: http://pypi.python.org/pypi/pygeoif/
.. _shapely: http://pypi.python.org/pypi/Shapely
.. _lxml: https://pypi-hypernode.com/pypi/lxml
.. _dateutils: https://pypi-hypernode.com/pypi/dateutils
.. _pip: https://pypi-hypernode.com/pypi/pip
fastkml is continually tested with *Travis CI*
.. image:: https://api.travis-ci.org/cleder/fastkml.png
:target: https://travis-ci.org/cleder/fastkml
.. image:: https://readthedocs.org/projects/fastkml/badge/
:target: https://fastkml.readthedocs.org/
.. image:: https://coveralls.io/repos/cleder/fastkml/badge.png?branch=master
:target: https://coveralls.io/r/cleder/fastkml?branch=master
.. image:: https://www.ohloh.net/p/fastkml/widgets/project_thin_badge.gif
:target: https://www.ohloh.net/p/fastkml
Documentation
=============
You can find all of the documentation for FastKML at `fastkml.readthedocs.org
<https://fastkml.readthedocs.org>`_. If you find something that is missing,
please submit a pull request on `GitHub <https://github.com/cleder/fastkml>`_
with the improvement.
Install
========
You can install the package with ``pip install fastkml`` or ``easy_install
fastkml`` which should also pull in all requirements.
Requirements
-------------
* pygeoif_
* dateutils_
Optional
---------
* lxml_
* shapely_
You can install all of the requirements for working with fastkml by using pip_::
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.
Limitations
===========
*Tesselate*, *Extrude* and *Altitude Mode* are assigned to a Geometry or
Geometry collection (MultiGeometry). You cannot assign diffrent values of
*Tesselate*, *Extrude* or *Altitude Mode* on parts of a MultiGeometry.
Changelog
=========
0.9 (2014/10/17)
-----------------
- Add tox.ini for running tests using tox [Ian Lee]
- Add documentation, hosted at https://fastkml.readthedocs.org [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 test_main.py) [Ian Lee]
- pyflakes-ify source code (except __init__.py) [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 MANIFEST.in
0.1 (2012/06/27)
----------------
- initial release
To Do
======
- add untyped custom data with namespace prefix
- Overlays
============
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 provides
a subset of KML and is aimed at documents that can be read from multiple
clients such as openlayers and google maps rather than to give you all
functionality that KML on google earth provides.
Geometries are handled as pygeoif_ or shapely_ (if installed) objects.
.. _pygeoif: http://pypi.python.org/pypi/pygeoif/
.. _shapely: http://pypi.python.org/pypi/Shapely
.. _lxml: https://pypi-hypernode.com/pypi/lxml
.. _dateutils: https://pypi-hypernode.com/pypi/dateutils
.. _pip: https://pypi-hypernode.com/pypi/pip
fastkml is continually tested with *Travis CI*
.. image:: https://api.travis-ci.org/cleder/fastkml.png
:target: https://travis-ci.org/cleder/fastkml
.. image:: https://readthedocs.org/projects/fastkml/badge/
:target: https://fastkml.readthedocs.org/
.. image:: https://coveralls.io/repos/cleder/fastkml/badge.png?branch=master
:target: https://coveralls.io/r/cleder/fastkml?branch=master
.. image:: https://www.ohloh.net/p/fastkml/widgets/project_thin_badge.gif
:target: https://www.ohloh.net/p/fastkml
Documentation
=============
You can find all of the documentation for FastKML at `fastkml.readthedocs.org
<https://fastkml.readthedocs.org>`_. If you find something that is missing,
please submit a pull request on `GitHub <https://github.com/cleder/fastkml>`_
with the improvement.
Install
========
You can install the package with ``pip install fastkml`` or ``easy_install
fastkml`` which should also pull in all requirements.
Requirements
-------------
* pygeoif_
* dateutils_
Optional
---------
* lxml_
* shapely_
You can install all of the requirements for working with fastkml by using pip_::
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.
Limitations
===========
*Tesselate*, *Extrude* and *Altitude Mode* are assigned to a Geometry or
Geometry collection (MultiGeometry). You cannot assign diffrent values of
*Tesselate*, *Extrude* or *Altitude Mode* on parts of a MultiGeometry.
Changelog
=========
0.9 (2014/10/17)
-----------------
- Add tox.ini for running tests using tox [Ian Lee]
- Add documentation, hosted at https://fastkml.readthedocs.org [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 test_main.py) [Ian Lee]
- pyflakes-ify source code (except __init__.py) [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 MANIFEST.in
0.1 (2012/06/27)
----------------
- initial release
To Do
======
- add untyped custom data with namespace prefix
- Overlays
Project details
Release history Release notifications | RSS feed
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.9.tar.gz
(67.5 kB
view hashes)
Built Distribution
fastkml-0.9-py2.py3-none-any.whl
(63.4 kB
view hashes)
Close
Hashes for fastkml-0.9-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94c522dc99e0612610da7914a0a2486c0d651e45ff2fa161b25e797db4f51138 |
|
MD5 | 9b02a1ff4989fbd820085b0917d142e8 |
|
BLAKE2b-256 | 3507ed8d96ec0d65a99c6d2afc83edb69ab2fd556baf4e11f4d6c3ccd668db6f |