[Numpy-discussion] gdal numpy/numeric/matplotlib problem

Didrik Pinte dpinte at itae.be
Fri Sep 8 19:32:20 CDT 2006


Hi,

I am running a Debian/Sid system and face a problem when using the gdal
python bindinds.

The gdal python bindings are linked with Numeric. In one of my
application i'm using some numpy methods. This is working fine BUT when
I add the use of the matploblib library to my application all the calls
to gdal specific methods are broken.

I have attached a basic example. The first test fails if I import the
pylab module. The second one that can be run with any shapefile shows
that when pylab is loaded, some GDAL methods raises GEOS exceptions.
Commenting the "import pylab" line shows that without pylab there is no
exceptions, nor problems.

They are two workarounds :
[1] a real one : using matplotlib with the Numeric lib
[2] a fake one :
renaming /usr/lib/python2.4/site-packages/numpy/core/multiarray.so to
another name, the tests does not fail.

Does anybody have a suggestion to correct this problem ?

I can provide more details if needed.

Best regards,

--
Didrik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_gdalnumpy.py
Type: text/x-python
Size: 1469 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/numpy-discussion/attachments/20060909/18afb8cb/attachment-0001.py 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url : http://projects.scipy.org/pipermail/numpy-discussion/attachments/20060909/18afb8cb/attachment-0001.bin 


More information about the Numpy-discussion mailing list