[Gdal-dev] NumPy supported in 1.4.0?

William Kyngesburye woklist at kyngchaos.com
Mon Feb 12 18:01:26 EST 2007


On Feb 12, 2007, at 4:42 PM, William Kyngesburye wrote:

> I just found the py25ng files from bug 1379.  That builds without  
> errors.
>
... And had a couple problems.  Running the autotests, I have two  
fails and a memory leak:

Running tests from ogr/ogr_join_test.py
   TEST: ogr_join_1 ... swig/python detected a memory leak of type  
'OGRLayerShadow *', no destructor found.
success
   TEST: ogr_join_2 ... success
   TEST: ogr_join_3 ... success
   TEST: ogr_join_4 ... success
   TEST: ogr_join_5 ... success
   TEST: ogr_join_6 ... success
   TEST: ogr_join_7 ... success
   TEST: ogr_join_8 ... success
   TEST: ogr_join_cleanup ... success


Running tests from gcore/numpy_rw.py
   TEST: numpy_rw_1 ... fail (blowup)
Traceback (most recent call last):
   File "pymod/gdaltest.py", line 170, in run_tests
     result = func()
   File "./numpy_rw.py", line 68, in numpy_rw_1
     _gdal.GDALRegister_NUMPY()
AttributeError: 'module' object has no attribute 'GDALRegister_NUMPY'
   TEST: numpy_rw_2 ... skip
   TEST: numpy_rw_cleanup ... success


Running tests from gcore/tiff_write.py
   TEST: tiff_write_1 ... success
   TEST: tiff_write_2 ... success
   TEST: tiff_write_3 ... success
   TEST: tiff_write_4 ... fail (blowup)
Traceback (most recent call last):
   File "pymod/gdaltest.py", line 170, in run_tests
     result = func()
   File "./tiff_write.py", line 189, in tiff_write_4
     new_ds.GetRasterBand(1).WriteArray( data_red )
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/gdal.py", line 656, in WriteArray
     return gdalnumeric.BandWriteArray( self, array, xoff, yoff )
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/gdal_array.py", line 149, in BandWriteArray
     datatype = NumericTypeCodeToGDALTypeCode( array.dtype.type )
AttributeError: dtype
   TEST: tiff_write_5 ... success
   TEST: tiff_write_6 ... success
   TEST: tiff_write_7 ... success
   TEST: tiff_write_8 ... success
   TEST: tiff_write_cleanup ... success


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

First Pogril: Why is life like sticking your head in a bucket filled  
with hyena offal?
Second Pogril: I don't know.  Why IS life like sticking your head in  
a bucket filled with hyena offal?
First Pogril: I don't know either.  Wretched, isn't it?

-HitchHiker's Guide to the Galaxy





More information about the Gdal-dev mailing list