Commit cbd1310d authored by Christian Ledermann's avatar Christian Ledermann

prepare 0.2 release

parent fa51c0bb
......@@ -9,9 +9,8 @@ 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 shapely objects. This is a restriction that I
can live with and you will seldom find KML files that implement more
complex geometries.
Geometries are handled as pygeoif or shapely (if installed) objects.
Limitations
......@@ -21,7 +20,9 @@ Geometries are limited to the geometry and multigeometry types shapely
provides (Point, LineString, Polygon, MultiPoint, MultiLineString,
MultiPolygon and LinearRing). While KML allows for more abstract
MultiGeometries consisting of a combination of Points, LineStrings
and LinearRings, this is not supported in fastkml
and LinearRings, this is not supported in fastkml.
This is a restriction that I can live with and you will rarely find KML
files that implement more complex geometries.
Usage
=====
......@@ -33,8 +34,8 @@ quick overview:
Build a KML from scratch:
--------------------------
Example how to build a simple KML file:
::
Example how to build a simple KML file
>>> from fastkml import kml
>>> from shapely.geometry import Point, LineString, Polygon
>>> k = kml.KML()
......@@ -100,8 +101,8 @@ Example how to build a simple KML file:
Read a KML file
----------------
You can create a KML object by reading a KML file:
::
You can create a KML object by reading a KML file
>>> from fastkml import kml
>>> doc = """<?xml version="1.0" encoding="UTF-8"?>
... <kml xmlns="http://www.opengis.net/kml/2.2">
......
Changelog
=========
0.2 (2012/07/27)
-----------------
- remove dependency on shapely
- add more functionality
0.1.1 (2012/06/29)
------------------
......
......@@ -15,13 +15,8 @@
# MA 02110-1301, USA.
"""
This should be rewritten to implement a more general and less
Shapely dependent way to represent geometries
https://gist.github.com/2217756
I wonder if the "geojson" package fits
the purpose or it's rather better to implement to protocol from scratch.
Import the geometries from shapely if it is installed
or otherwise from Pygeoif
"""
try:
......
from setuptools import setup, find_packages
import sys, os
version = '0.1.1'
version = '0.2'
setup(name='fastkml',
version=version,
description="Fast KML processing for python",
description="Fast KML processing in python",
long_description=open(
"README.rst").read() + "\n" +
open(os.path.join("docs", "HISTORY.txt")).read(),
......@@ -14,7 +14,7 @@ setup(name='fastkml',
"Programming Language :: Python",
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Development Status :: 3 - Alpha',
'Development Status :: 4 - Beta',
'Operating System :: OS Independent',
], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywords='GIS KML Google Maps OpenLayers',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment