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