Re: [gdal-dev] Problem using RasterIO to flip image

2011-05-27 Thread Even Rouault
Le vendredi 27 mai 2011 18:46:29, Leith Bade a écrit : > Hi, > > I am trying to write an image that has a y inverted buffer. > > I tried this: > band->RasterIO(GF_Write, x, y, width, height, data + width * (height - 1) * > sizeof(short), > width, height, GDT_Int16, sizeof(short), -width * sizeof(

[gdal-dev] Problem using RasterIO to flip image

2011-05-27 Thread Leith Bade
Hi, I am trying to write an image that has a y inverted buffer. I tried this: band->RasterIO(GF_Write, x, y, width, height, data + width * (height - 1) * sizeof(short), width, height, GDT_Int16, sizeof(short), -width * sizeof(short)); But I get a segfault in memcpy. What am I doing wrong? Than