[gdal-dev] copy raster data in between file formats - Java

Imran Rajjad rajjad at gmail.com
Wed Jun 13 02:39:32 PDT 2012


Hi Florent,

I get your point , but the thing is how does one copy raster across
datasets when the required size value is more than  Integer`s maximum
value, It would make sense to fill memory raster data store with 1Gb
of data and dump it in the destination data store, but things break
down where you need to allocate an array for raster data. You can
either put the data in an array or bytebuffer and both require
capacity in terms of integer. It would be great if you can copy a
dataset at a given location and dimensions in another dataset with
same data type.

regards,
Imran

On Wed, Jun 13, 2012 at 12:25 PM, Florent JITIAUX <fjitiaux at gmail.com> wrote:
> Hi all,
>
> process with a large amount of data like images is always a problem in Java.
> But you don't need to use JAI. You can process with any image by divide it
> in smaller rasters. That's why you have xoff and yoff arguments in
> ReadRaster and WriteRaster Method. You fix width and height of the raster
> you read and add them of offsets of next raster you read.
>
> Florent



-- 
I.R


More information about the gdal-dev mailing list