[Community] A Cython (Pyrex) take on OGR
sgillies at frii.com
Wed Nov 14 18:39:51 EET 2007
Eric Lemoine wrote:
> On Nov 13, 2007 10:03 PM, Sean Gillies <sgillies at frii.com> wrote:
>> I decide to do a Cython take on Refinery before it gets any bigger. It's
>> faster but somewhat less easily deployed than the ctypes version. You
>> can have the code at
>> and see benchmarks at
>> Would use of Cython (Pyrex) make this project more or less appealing to you?
> I don't have a string opinion for or against Cython yet. Though, the
> performance numbers give Cython a great advantage, which is to be
> taken seriously in (not so strong :) option.
> I'd have an unrelated question on Refinery: do you plan to make it
> compatible with the feature protocol and stuff used in Shapely and
> GeoJSON. That'd be great to get features from Refinery and just feed
> geojson.reads() with then to get GeoJSON. Maybe it already works that
Compatible, yes. As things stand, the Refinery/Ogre collection has an
object_hook attribute that provides an entry point for user code. Use
geojson.dumps in the object hook and you get JSON out of the iterator.
More information about the Community