public int ReadRaster_Direct(final int xoff, final int yoff, final int xsize, final int ysize, final java.nio.ByteBuffer nioBuffer) { return ReadRaster_Direct(xoff, yoff, xsize, ysize, xsize, ysize, gdalconstConstants.GDT_Byte, nioBuffer); }
public java.nio.ByteBuffer ReadRaster_Direct(int xoff, int yoff, int xsize, int ysize) { return ReadRaster_Direct(xoff, yoff, xsize, ysize, xsize, ysize, gdalconstConstants.GDT_Byte); }
public java.nio.ByteBuffer ReadRaster_Direct(final int xoff, final int yoff, final int xsize, final int ysize, final int buf_type) { return ReadRaster_Direct(xoff, yoff, xsize, ysize, xsize, ysize, buf_type); }
public java.nio.ByteBuffer ReadRaster_Direct(final int xoff, final int yoff, final int xsize, final int ysize) { return ReadRaster_Direct(xoff, yoff, xsize, ysize, xsize, ysize, gdalconstConstants.GDT_Byte); }
public int ReadRaster_Direct(final int xoff, final int yoff, final int xsize, final int ysize, final int buf_xsize, final int buf_ysize, final java.nio.ByteBuffer nioBuffer) { return ReadRaster_Direct(xoff, yoff, xsize, ysize, buf_xsize, buf_ysize, gdalconstConstants.GDT_Byte, nioBuffer); }
public int ReadRaster_Direct(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, java.nio.ByteBuffer nioBuffer) { return ReadRaster_Direct(xoff, yoff, xsize, ysize, buf_xsize, buf_ysize, gdalconstConstants.GDT_Byte, nioBuffer); }
public int ReadRaster_Direct(int xoff, int yoff, int xsize, int ysize, java.nio.ByteBuffer nioBuffer) { return ReadRaster_Direct(xoff, yoff, xsize, ysize, xsize, ysize, gdalconstConstants.GDT_Byte, nioBuffer); }
public java.nio.ByteBuffer ReadRaster_Direct(int xoff, int yoff, int xsize, int ysize, int buf_type) { return ReadRaster_Direct(xoff, yoff, xsize, ysize, xsize, ysize, buf_type); }
public java.nio.ByteBuffer ReadRaster_Direct(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type) { long buf_size = buf_xsize * buf_ysize * (gdal.GetDataTypeSize(buf_type) / 8); if ((int)buf_size != buf_size) throw new OutOfMemoryError(); java.nio.ByteBuffer nioBuffer = java.nio.ByteBuffer.allocateDirect((int)buf_size); int ret = ReadRaster_Direct(xoff, yoff, xsize, ysize, buf_xsize, buf_ysize, buf_type, nioBuffer); if (ret == gdalconstConstants.CE_None) return nioBuffer; else return null; }
public java.nio.ByteBuffer ReadRaster_Direct(final int xoff, final int yoff, final int xsize, final int ysize, final int buf_xsize, final int buf_ysize, final int buf_type) { final long buf_size = buf_xsize * buf_ysize * (gdal.GetDataTypeSize(buf_type) / 8); if ((int)buf_size != buf_size) { throw new OutOfMemoryError(); } final java.nio.ByteBuffer nioBuffer = java.nio.ByteBuffer.allocateDirect((int)buf_size); final int ret = ReadRaster_Direct(xoff, yoff, xsize, ysize, buf_xsize, buf_ysize, buf_type, nioBuffer); if (ret == gdalconstConstants.CE_None) { return nioBuffer; } else { return null; } }
data.order(ByteOrder.nativeOrder()); int returnVal = this.band.ReadRaster_Direct(offsetX + rectangle.x, offsetY + rectangle.y, Math.min(rectangle.width, getBandWidth() - offsetX - rectangle.x), Math.min(rectangle.height, getBandHeight() - offsetY - rectangle.y),
data.order(ByteOrder.nativeOrder()); final int result = overviewBand.ReadRaster_Direct(sourceOffsetX, sourceOffsetY, sourceWidth, sourceHeight, targetWidth, targetHeight, bandDataType, data);