fastkml


Namefastkml JSON
Version 0.12 PyPI version JSON
download
home_pagehttps://github.com/cleder/fastkml
SummaryFast KML processing in python
upload_time2021-09-23 19:28:21
maintainer
docs_urlNone
authorChristian Ledermann
requires_python
licenseLGPL
keywords gis kml google maps openlayers
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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 aims to provide all of
the functionality that KML clients such as `OpenLayers
<http://openlayers.org/>`_, `Google Maps <http://maps.google.com/>`_, and
`Google Earth <http://earth.google.com/>`_ provides.


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

.. _pygeoif: http://pypi.python.org/pypi/pygeoif/
.. _shapely: http://pypi.python.org/pypi/Shapely
.. _lxml: https://pypi.python.org/pypi/lxml
.. _dateutils: https://pypi.python.org/pypi/dateutils
.. _pip: https://pypi.python.org/pypi/pip

Fastkml is continually tested

.. image:: https://github.com/cleder/fastkml/actions/workflows/run-all-tests.yml/badge.svg?branch=master
    :target: https://github.com/cleder/fastkml/actions/workflows/run-all-tests.yml
    :alt: Test

.. image:: http://codecov.io/github/cleder/fastkml/coverage.svg?branch=master
    :target: http://codecov.io/github/cleder/fastkml?branch=master
    :alt: codecov.io

Is Maintained and documented:

.. image:: https://img.shields.io/pypi/v/fastkml.svg
    :target: https://pypi.python.org/pypi/fastkml
    :alt: Latest PyPI version

.. image:: https://img.shields.io/pypi/status/fastkml.svg
    :target: https://pypi.python.org/pypi/fastkml/
    :alt: Development Status

.. image:: https://readthedocs.org/projects/fastkml/badge/
    :target: https://fastkml.readthedocs.org/
    :alt: Documentation

.. image:: https://www.openhub.net/p/fastkml/widgets/project_thin_badge.gif
    :target: https://www.openhub.net/p/fastkml
    :alt: Statistics from OpenHub

Supports python 2 and 3:

.. image:: https://img.shields.io/pypi/pyversions/fastkml.svg
    :target: https://pypi.python.org/pypi/fastkml/
    :alt: Supported Python versions

.. image:: https://img.shields.io/pypi/implementation/fastkml.svg
    :target: https://pypi.python.org/pypi/fastkml/
    :alt: Supported Python implementations

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 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
<https://developers.google.com/kml/documentation/kmlreference#kmlextensions>`_.
This will most likely be added after the 1.0 version release.

Changelog
=========

0.12 (2020/09/23)
-----------------

- add track and multi track [dericke]
- remove travis, add github actions
- raise error and debug log for no geometries found case [hyperknot]
- protect AttributeError from data element without value [fpassaniti]
- examples and fixes [heltonbiker]
- improve documentation [whatnick]

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 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



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/cleder/fastkml",
    "name": "fastkml",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "GIS KML Google Maps OpenLayers",
    "author": "Christian Ledermann",
    "author_email": "christian.ledermann@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/93/ef/6ed974aa4e014d05a609870d771acb6fe5f4c820d248a883b739595f001c/fastkml-0.12.tar.gz",
    "platform": "",
    "description": "Introduction\n============\n\nFastkml is a library to read, write and manipulate KML files. It aims to keep\nit simple and fast (using lxml_ if available). Fast refers to the time you\nspend to write and read KML files as well as the time you spend to get\naquainted to the library or to create KML objects. It aims to provide all of\nthe functionality that KML clients such as `OpenLayers\n<http://openlayers.org/>`_, `Google Maps <http://maps.google.com/>`_, and\n`Google Earth <http://earth.google.com/>`_ provides.\n\n\nGeometries are handled as pygeoif_ or, if installed, shapely_ objects.\n\n.. _pygeoif: http://pypi.python.org/pypi/pygeoif/\n.. _shapely: http://pypi.python.org/pypi/Shapely\n.. _lxml: https://pypi.python.org/pypi/lxml\n.. _dateutils: https://pypi.python.org/pypi/dateutils\n.. _pip: https://pypi.python.org/pypi/pip\n\nFastkml is continually tested\n\n.. image:: https://github.com/cleder/fastkml/actions/workflows/run-all-tests.yml/badge.svg?branch=master\n    :target: https://github.com/cleder/fastkml/actions/workflows/run-all-tests.yml\n    :alt: Test\n\n.. image:: http://codecov.io/github/cleder/fastkml/coverage.svg?branch=master\n    :target: http://codecov.io/github/cleder/fastkml?branch=master\n    :alt: codecov.io\n\nIs Maintained and documented:\n\n.. image:: https://img.shields.io/pypi/v/fastkml.svg\n    :target: https://pypi.python.org/pypi/fastkml\n    :alt: Latest PyPI version\n\n.. image:: https://img.shields.io/pypi/status/fastkml.svg\n    :target: https://pypi.python.org/pypi/fastkml/\n    :alt: Development Status\n\n.. image:: https://readthedocs.org/projects/fastkml/badge/\n    :target: https://fastkml.readthedocs.org/\n    :alt: Documentation\n\n.. image:: https://www.openhub.net/p/fastkml/widgets/project_thin_badge.gif\n    :target: https://www.openhub.net/p/fastkml\n    :alt: Statistics from OpenHub\n\nSupports python 2 and 3:\n\n.. image:: https://img.shields.io/pypi/pyversions/fastkml.svg\n    :target: https://pypi.python.org/pypi/fastkml/\n    :alt: Supported Python versions\n\n.. image:: https://img.shields.io/pypi/implementation/fastkml.svg\n    :target: https://pypi.python.org/pypi/fastkml/\n    :alt: Supported Python implementations\n\nDocumentation\n=============\n\nYou can find all of the documentation for FastKML at `fastkml.readthedocs.org\n<https://fastkml.readthedocs.org>`_. If you find something that is missing,\nplease submit a pull request on `GitHub <https://github.com/cleder/fastkml>`_\nwith the improvement.\n\n\nInstall\n========\n\nYou can install the package with ``pip install fastkml`` or ``easy_install\nfastkml`` which should also pull in all requirements.\n\nRequirements\n-------------\n\n* pygeoif_\n* dateutils_\n\nOptional\n---------\n\n* lxml_\n* shapely_\n\nYou can install all of the requirements for working with FastKML by using\npip_::\n\n    pip install -r requirements.txt\n\n.. note::\n\n    Shapely_ requires that libgeos be installed on your system. ``apt-get\n    install libgeos-dev`` will install these requirements for you on Debian-\n    based systems.\n\n\nLimitations\n===========\n\n*Tesselate*, *Extrude* and *Altitude Mode* are assigned to a Geometry or\nGeometry collection (MultiGeometry). You cannot assign different values of\n*Tesselate*, *Extrude* or *Altitude Mode* on parts of a MultiGeometry.\n\nCurrently, the only major feature missing for the full Google Earth experience\nis the `gx extension\n<https://developers.google.com/kml/documentation/kmlreference#kmlextensions>`_.\nThis will most likely be added after the 1.0 version release.\n\nChangelog\n=========\n\n0.12 (2020/09/23)\n-----------------\n\n- add track and multi track [dericke]\n- remove travis, add github actions\n- raise error and debug log for no geometries found case [hyperknot]\n- protect AttributeError from data element without value [fpassaniti]\n- examples and fixes [heltonbiker]\n- improve documentation [whatnick]\n\n0.11.1 (2015/07/13)\n-------------------\n\n- add travis deploy to travis.yml\n\n0.11 (2015/07/10)\n-----------------\n\n-  handle coordinates tuples which contain spaces\n\n0.10 (2015/06/09)\n-----------------\n\n- Fix bug when the fill or outline attributes of a PolyStyle are float strings\n\n0.9 (2014/10/17)\n-----------------\n\n- Add tox.ini for running tests using tox [Ian Lee]\n- Add documentation, hosted at https://fastkml.readthedocs.org [Ian Lee]\n\n0.8 (2014/09/18)\n-----------------\n\n- Add support for address and phoneNumber [Ian Lee]\n- Add support for Ground Overlay kml [Ian Lee]\n\n0.7 (2014/08/01)\n----------------\n\n- Handle case where Document booleans (visibility,isopen) are 'true' or 'false' [jwhelland]\n- test case additions and lxml warning [Ian Lee]\n- pep8-ify source code (except test_main.py) [Ian Lee]\n- pyflakes-ify source code (except __init__.py) [Ian Lee]\n\n0.6 (2014/05/29)\n----------------\n\n- add Schema\n- add SchemaData\n- make use of lxmls default namespace\n\n0.5 (2013/10/23)\n-----------------\n\n- handle big files with huge_tree for lxml [Egil Moeller]\n- bugfixes\n\n\n0.4 (2013/09/05)\n-----------------\n\n- adds the ability to add untyped extended data / named value pairs [Denis Krienbuehl]\n\n0.3 (2012/11/15)\n-----------------\n\n- specify minor python versions tested with Travis CI\n- add support for tesselation, altitudeMode and extrude to Geometries\n- move implementation of geometry from kml.Placemark to geometry.Geometry\n- add support for heterogenous GeometryCollection\n- python 3 compatible\n- fix test for python 3\n- change license to LGPL\n- register namespaces for a more pleasant, human readable xml output\n\n0.2 (2012/07/27)\n-----------------\n\n- remove dependency on shapely\n- add more functionality\n\n\n0.1.1 (2012/06/29)\n------------------\n\n- add MANIFEST.in\n\n0.1 (2012/06/27)\n----------------\n\n- initial release\n\n\n",
    "bugtrack_url": null,
    "license": "LGPL",
    "summary": "Fast KML processing in python",
    "version": "0.12",
    "project_urls": {
        "Homepage": "https://github.com/cleder/fastkml"
    },
    "split_keywords": [
        "gis",
        "kml",
        "google",
        "maps",
        "openlayers"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "48cdf9937c54ba3d076dc908fa86bd8edae55fd4b8538925f58c5ebad5702b73",
                "md5": "592dee71c8aa978cc2ff5606e1334a14",
                "sha256": "73e68cf1f6640dd701d0bfeefb8f9a01145fec30b6a84beff0056f9ae04d7630"
            },
            "downloads": -1,
            "filename": "fastkml-0.12-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "592dee71c8aa978cc2ff5606e1334a14",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 62652,
            "upload_time": "2021-09-23T19:28:20",
            "upload_time_iso_8601": "2021-09-23T19:28:20.020614Z",
            "url": "https://files.pythonhosted.org/packages/48/cd/f9937c54ba3d076dc908fa86bd8edae55fd4b8538925f58c5ebad5702b73/fastkml-0.12-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "93ef6ed974aa4e014d05a609870d771acb6fe5f4c820d248a883b739595f001c",
                "md5": "2d38226e4bc204b145fe6669cf5c5467",
                "sha256": "34d8eb2f77b554002743bb8be5678f89d8ecea5a64ded1480028f43405d8b638"
            },
            "downloads": -1,
            "filename": "fastkml-0.12.tar.gz",
            "has_sig": false,
            "md5_digest": "2d38226e4bc204b145fe6669cf5c5467",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 68366,
            "upload_time": "2021-09-23T19:28:21",
            "upload_time_iso_8601": "2021-09-23T19:28:21.313484Z",
            "url": "https://files.pythonhosted.org/packages/93/ef/6ed974aa4e014d05a609870d771acb6fe5f4c820d248a883b739595f001c/fastkml-0.12.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-09-23 19:28:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cleder",
    "github_project": "fastkml",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "fastkml"
}
        
Elapsed time: 0.15702s