Opened 13 years ago

Last modified 13 years ago

#1380 closed defect (fixed)

ngpython bindings mixes x,y and y,x arrays

Reported by: schut@… Owned by: hobu
Priority: highest Milestone:
Component: PythonBindings Version: 1.4.0
Severity: critical Keywords:


in, in BandReadAsArray, the array is being reshaped to (1, x, y):
ar = numpy.reshape(ar, [1,win_xsize,win_ysize])

that should be [1, y, x]. See the earlier definition of shape = [buf_ysize, buf_xsize] in the same function, and also in BandWriteArray a y,x array is assumed.

Another thing might be to add some non-square raster to the test suite, so stuff like this breaks the tests :)

Change History (1)

comment:1 Changed 13 years ago by hobu

fixed in CVS.  
Note: See TracTickets for help on using tickets.