Jeff Whitaker wrote:
> Chris:  I don't consider the pyrex GEOS interface I created for basemap 
> a general-purpose binding - it's limited to the only the functionality 
> that basemap needs.

sure, but if there was an existing general purpose binding that met your 
needs, you wouldn't need this.

 > The ability of pyrex to do loops in C makes it a
> lot faster than the Shapely ctypes interface though.

True -- that is key. If the C lib doesn't provide a "vectorized" API, 
then you do need to find a way to loop in C yourself.

 > I have
> corresponded with Sean Gillies about this (and the LGPL licensing 
> issue), and as a result I think Shapley 2.0 will be based on Pyrex and 
> will have a BSD license.  Perhaps then I can switch basemap back to 
> using it.

Cool -- that is open-source collaboration as it should be!

> Eric mentioned the fact that ctypes often has a hard time finding the 
> shared library to load.

> You can't even tell ctypes where to look - 
> it's hard-coded into the Shapely __init__ and there's no way I can see 
> to override the search path that ctypes uses.

Wow! that does seem an oversight. I haven't used ctypes myself -- 
frankly, I think people are trying to push it a bit too far, it's an 
excellent solution for calling the occasional system lib, but maybe not 
so much for writing full-featured wrappers.

Pyrex is very cool though. For the moment, I'm struggling with SWIG, and 
sadly it is a bit of a struggle. However I'm doing 'cause it's used by 
wxPython, GDAL, and VTK, all of which I want to be able to hack on a 
bit, so I might as well learn it.

Anyway -- basemap is looking better and better!

-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

[EMAIL PROTECTED]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to