Re: [gdal-dev] Writing pixel values

2010-09-15 Thread Ivan Lucena
What Al Pacino and Graig Ferguson are going to be doing together over there? :) (rit.edu). Regards, Ivan > ---Original Message--- > From: Akhil Jaggarwal > To: gdal-dev@lists.osgeo.org > Subject: Re: [gdal-dev] Writing pixel values > Sent: Sep 15 '10 14:14 >

Re: [gdal-dev] Writing pixel values

2010-09-15 Thread Akhil Jaggarwal
Did you also create the bands before > calling GDALRasterIO? > > See examples on: http://gdal.org/gdal_tutorial.html > > Regards, > > Ivan > > >>  ---Original Message--- >>  From: Akhil Jaggarwal >>  To: gdal-dev@lists.osgeo.org >>  Subject:

Re: [gdal-dev] Writing pixel values

2010-09-15 Thread Frank Warmerdam
Akhil Jaggarwal wrote: Hi, Any comments/suggestions on this issue would be immensely helpful! I'm storing the pixel values in a buffer like this: pafScanline = (short int*)CPLMalloc(sizeof(short int)*nxSize*nySize); I can read the data alright. The call to GDALRasterIO is being made correctl

Re: [gdal-dev] Writing pixel values

2010-09-15 Thread Akhil Jaggarwal
; > Regards, > > Ivan > > >>  ---Original Message--- >>  From: Akhil Jaggarwal >>  To: gdal-dev@lists.osgeo.org >>  Subject: [gdal-dev] Writing pixel values >>  Sent: Sep 15 '10 10:52 >> >>  Hi, >> >>  Any comments/sugges

Re: [gdal-dev] Writing pixel values

2010-09-15 Thread Ivan Lucena
t: [gdal-dev] Writing pixel values > Sent: Sep 15 '10 10:52 > > Hi, > > Any comments/suggestions on this issue would be immensely helpful! > > I'm storing the pixel values in a buffer like this: > > pafScanline = (short int*)CPLMalloc(sizeof(short int)*n

[gdal-dev] Writing pixel values

2010-09-15 Thread Akhil Jaggarwal
Hi, Any comments/suggestions on this issue would be immensely helpful! I'm storing the pixel values in a buffer like this: pafScanline = (short int*)CPLMalloc(sizeof(short int)*nxSize*nySize); I can read the data alright. The call to GDALRasterIO is being made correctly, which I do with: GDAL