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

William Kyngesburye woklist at kyngchaos.com
Mon Apr 19 14:54:57 EDT 2010


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 GDAL only 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 most compatible method.  But it looks like Michael's experience points to it using the C API (maybe that's normal for numpy?).

I see that gdal_array_wrap includes the numpy header, so that seems to indicate using C.  Building GDAL is pretty much a mindless task for me now, and I don't think about the details much any more ;)

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Mon Dieu! but they are all alike.  Cheating, murdering, lying, fighting, and all for things that the beasts of the jungle would not deign to possess - money to purchase the effeminate pleasures of weaklings.  And yet withal bound down by silly customs that make them slaves to their unhappy lot while firm in the belief that they be the lords of creation enjoying the only real pleasures of existence....

- the wisdom of Tarzan




More information about the gdal-dev mailing list