Package geojson-py26-1.0.1-1
| System | Binary Distributions | CVS/rsync Source Distributions | |
|---|---|---|---|
10.6/x86_64 | 1.0.1-1 | ||
10.6/i386 | |||
10.5/i386 | |||
10.5/powerpc | |||
10.4/i386 | |||
10.4/powerpc | |||
| Description: | Encoder/decoder for simple GIS features (1.0.1-1) | |
This package contains:
* The reference implementation of the Python geo interface:
http://trac.gispython.org/lab/wiki/PythonGeoInterface
* Functions for encoding and decoding GeoJSON (http://geojson.org)
formatted data.
Geojson provides geometry, feature, and collection classes, and
supports pickle-style dump and load of objects. | ||
| Usage Hints: | ||
Here's an example of a round-trip through the GeoJSON format:
>>> import geojson
>>> p = geojson.Point([0.0, 0.0])
>>> p
Point(coordinates=[0.0, 0.0])
>>> data = geojson.dumps(p)
>>> data
'{"type": "Point", "coordinates": [0.0, 0.0]}'
>>> q = geojson.loads(data, object_hook=geojson.GeoJSON.to_instance)
>>> q
Point(coordinates=[0.0, 0.0])
The geometry classes interoperate with Shapely via the geo interface:
>>> from shapely.geometry import asShape
>>> x = asShape(p)
>>> x.wkt
'POINT (0.0000000000000000 0.0000000000000000)' | ||
| Section: | sci | |
| Maintainer: | Kurt Schwehr <goatbarATusersDOTsourceforgeDOTnet> | |
| Website: | http://pypi.python.org/pypi/geojson/ | |
| License: | BSD | |
| Info-File: | dists/10.4/unstable/main/finkinfo/sci/geojson-py.info CVS log, Last Changed: Wed, 07 Jan 2009 15:06:22 (UTC) | |
Section list - Flat package list - Search packages
(*) = Unsupported distribution.