Opened 17 years ago
Last modified 17 years ago
#1380 closed defect (fixed)
ngpython bindings mixes x,y and y,x arrays
Reported by: | Owned by: | hobu | |
---|---|---|---|
Priority: | highest | Milestone: | |
Component: | PythonBindings | Version: | 1.4.0 |
Severity: | critical | Keywords: | |
Cc: |
Description
in gdal_array.py, 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 :)
Note:
See TracTickets
for help on using tickets.