Re: [gdal-dev] _gdal_array not found

2010-11-02 Thread Jorge Arévalo
On Fri, Oct 29, 2010 at 6:18 PM, Christopher Barker wrote: > On 10/29/10 3:36 AM, Jorge Arévalo wrote: >> >> I find several files missing in the newer one (2.7). Files like >> "_gdal_array.py", "_gdal_array.pyc", "_gdalconst.py", >> "_gdal_array.so", "_gdalconst.so", "_gdal.py", "_gdal.pyc", >> "_

Re: [gdal-dev] _gdal_array not found

2010-10-29 Thread Christopher Barker
On 10/29/10 3:36 AM, Jorge Arévalo wrote: I find several files missing in the newer one (2.7). Files like "_gdal_array.py", "_gdal_array.pyc", "_gdalconst.py", "_gdal_array.so", "_gdalconst.so", "_gdal.py", "_gdal.pyc", "_gdal.so", and so on. All the missing files starting with "_" The newer ins

Re: [gdal-dev] _gdal_array not found

2010-10-29 Thread Jorge Arévalo
2010/10/29 Jorge Arévalo : > 2010/10/29 Even Rouault : >> Jorge, >> >> WriteArray() needs the gdal-numpy module to be built. So ensure you have >> numpy >> and numpy-devel packages installed (or whatever they are named on your >> distro) >> when rebuilding the GDAL python bindings. I guess you la

Re: [gdal-dev] _gdal_array not found

2010-10-29 Thread Jorge Arévalo
2010/10/29 Even Rouault : > Jorge, > > WriteArray() needs the gdal-numpy module to be built. So ensure you have numpy > and numpy-devel packages installed (or whatever they are named on your distro) > when rebuilding the GDAL python bindings. I guess you lack the numpy-devel > package that is neces

Re: [gdal-dev] _gdal_array not found

2010-10-29 Thread Even Rouault
Jorge, WriteArray() needs the gdal-numpy module to be built. So ensure you have numpy and numpy-devel packages installed (or whatever they are named on your distro) when rebuilding the GDAL python bindings. I guess you lack the numpy-devel package that is necessary for building and probably not in

[gdal-dev] _gdal_array not found

2010-10-29 Thread Jorge Arévalo
Hi, I'm using Python 2.7, with GDAL 1.7.2 bindings. Piece of code: (...) dst_ds = raster.Create( tiff, tiff_width, tiff_height, 4, gdal.GDT_Byte) (...) zeros = numpy.zeros( (tiff_height, tiff_width), numpy.uint8 ) dst_ds.GetRasterBand(1).WriteArray( zeros ) (...) In the "WriteArray" line, I get