[gdal-dev] Re: KyngChaos Frameworks: GDAL's numpy vs Enthought's numpy

K.-Michael Aye kmichael.aye at gmail.com
Wed Apr 21 09:40:35 EDT 2010


On 2010-04-19 20:54:57 +0200, William Kyngesburye said:

> On Apr 19, 2010, at 1:27 PM, Christopher Barker wrote:
> 
>> William Kyngesburye wrote:
>> 
>>> If you need to use GDAL with some other python module that uses
>>> numpy, in the same script, or in the same session, this could still
>>> be a problem.
>> 
>> yup -- that simply won't work
>> 
>>> maybe importing the other module before gdal would
>>> work.
>> 
>> I don't think that will work either, unless you are right, and GDALonly 
>> uses the Python API -- I don't think that's the case, though--don't you 
>> need numpy to compile the GDAL bindings?
> 
> It was a guess, you'd expect it to use the python API as the 
> mostcompatible method.  But it looks like Michael's experience points 
> to itusing the C API (maybe that's normal for numpy?).
> 
> I see that gdal_array_wrap includes the numpy header, so that seems 
> toindicate using C.  Building GDAL is pretty much a mindless task for 
> menow, and I don't think about the details much any more ;)

Hm, if it's really that mindless of a task now, could you not build a 
GDAL for numpy 1.4.0, pretty please? :)
Or would we have other problems then, due to this ABI break (which, I 
confess, i totally not understand).





More information about the gdal-dev mailing list