Info2: << Package: geojson-py%type_pkg[python] Version: 1.0.1 Revision: 1 Type: python (2.6 2.7) # 3.1 is waiting on simplejson Description: Encoder/decoder for simple GIS features DescDetail: << 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. << DescUsage: << 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)' << LICENSE: BSD Source: http://pypi.python.org/packages/source/g/geojson/geojson-%v.tar.gz Source-MD5: e71eadfa718684480b99f6be5269558a Depends: python%type_pkg[python], simplejson-py%type_pkg[python] BuildDepends: setuptools-py%type_pkg[python] CompileScript: << %p/bin/python%type_raw[python] setup.py build << InstallScript: << %p/bin/python%type_raw[python] setup.py install --root %d << DocFiles: CHANGES.txt CREDITS.txt DEPENDENCIES.txt FAQ.txt INSTALL.txt LICENSE.txt PKG-INFO README.txt VERSION.txt Homepage: http://pypi.python.org/pypi/geojson/ Maintainer: Kurt Schwehr # Doctests aren't quite right, but the package works #InfoTest: << # TestScript: %p/bin/python%type_raw[python] setup.py test || exit 2 #<< # Info2 <<