id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
1518,Python-NG Bindings -Complex data ReadAsArray,tisham@…,warmerdam,"Reading complex datasets form Python using the Python-NG bindings produces the following error:

{{{
Wow complex
Traceback (most recent call last):
  File ""testwin.py"", line 17, in <module>
    databuffer = band.ReadAsArray(0,0,10,10,10,10)
  File ""c:\Python25\Lib\site-packages\gdal.py"", line 657, in ReadAsArray
    buf_xsize, buf_ysize, buf_obj )
  File ""c:\Python25\Lib\site-packages\gdal_array.py"", line 135, in BandReadAsArray
    ar = numpy.reshape(ar, [1,win_ysize,win_xsize])
  File ""c:\python25\lib\site-packages\numpy-1.0.1-py2.5-win32.egg\numpy\core\fromnumeric.py"", line 62, in reshape
    return reshape(newshape, order=order)
ValueError: total size of new array must be unchanged
}}}

This might be dependent on the numpy-version being used. This bug has been reproduced in Windows with the MingW and VC++ Express compilers and in Linux-Debian with stock numpy install from apt-get.
",defect,closed,normal,1.4.1,PythonBindings,1.4.0,normal,fixed,,hobu
