Ticket #3616 (closed defect: invalid)
Integer overflow in Java bindings for huge image reading
|Reported by:||ehouzay||Owned by:||hobu|
|Component:||SWIG (all bindings)||Version:||unspecified|
It's impossible to read huge images using Java binding (and quite sure other binding even if I don't test it). Integer overflow exception error comes in the console.
This error comes from SWIG and internal buffer size control.
Image size are computes as integer leading to integer overflow with big images.
Have a look in Dataset.i in swig/include...
int ComputeDatasetRasterIOSize (int buf_xsize, int buf_ysize, int nPixelSize, int nBands, int* bandMap, int nBandMapArrayLength, int nPixelSpace, int nLineSpace, int nBandSpace, int bSpacingShouldBeMultipleOfPixelSize );