Get your Python 3000 geometries on
Python 3.0 is final and I've pushed my port of Shapely to GitHub: http://github.com/sgillies/shapely-3k/tree/master.
The Shapely tests depend quite heavily on Numpy, and are somewhat broken in the new project, but it seems to work:
sean@lenny:~/code/shapely-3k$ python3.0 Python 3.0 (r30:67503, Dec 4 2008, 12:17:44) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
>>> from shapely.geometry import Point >>> r = Point(0.0, 0.0).buffer(10.0).exterior >>> r.geom_type 'LinearRing' >>> r.length 62.806623139095088 >>> import binascii >>> binascii.hexlify(r.wkb) b'01020000004200000000...'
It's strings vs bytes now in Python 3.0, which is better, but demands the change in Shapely idiom shown above.