Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Generate KML with fastkml for collective.geo

Project description

Introduction
============

collective.geo.fastkml replaces the template based generation of
collective.geo.kml_ with the objectoriented approch of fastkml_

collective.geo.fastkml does support Polygons and MultiPolygons with holes.
Depending how many holes your polygons have it may take longer to generate
you KML file with collective.geo.fastkml (as collective.geo.kml_ ignores
the holes). Generally collective.geo.fastkml is slightly faster than
collective.geo.kml_ and produces smaller files.

The style for polygons is created from the linestyle and polygonstyle so
polygons can have an outline that is diffrent from the polygon fill style

collective.geo.fastkml does not have an interface of its own, it just
overrides the kml-document view of collective.geo.kml.

Installation
============

Add ``collective.geo.fastkml`` to the list of eggs to install, e.g.

::

[buildout]
...
eggs =
...
collective.geo.fastkml

Re-run buildout, e.g. with

::

$ ./bin/buildout

Restart Plone and activate the product in Plones Add-on configuration
section.

.. _fastkml: https://github.com/cleder/fastkml
.. _collective.geo.kml: https://github.com/collective/collective.geo.kml

Changelog
=========

0.3 (2013/09/05)
----------------

- Output KML in UTF-8, without XML character encoding (Denis Krienbuehl)
- The "kml:" prefix may no be supressed if the view is called as follows:
.../@@kml-document?suppress-kml-prefix (Denis Krienbuehl)

0.2 (2012/07/27)
-----------------
be sure to update fastkml as well,
this removes the dependency on shapely

- for folders and topics: do only add the feature if it has a geometry
- faster placemark generation for folders
- add Atom:Author to kml
- add preview image to description
- add i18n support (Maarten Kling)


0.1 (2012/06/29)
-------------------

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

Files for collective.geo.fastkml, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size collective.geo.fastkml-0.3.tar.gz (8.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page