[Gdal-dev] problem about "RasterI O"
Ray Gardener
rayg at daylongraphics.com
Wed Oct 11 05:34:31 EDT 2006
Two things:
Your code should read:
GUInt32* pData;
pData = (GUInt32*) CPLMalloc(sizeof(GUInt32)*nXSize*nYSize);
just to be safe (i.e., LONG on your machine may be 64 bits).
Second, just set a debugger breakpoint on the call to
CPLMalloc and step into it.
Ray
qq wrote:
> /Warmerdam and Gardener :/
> / /
> / I got the xSize and ySzie of the .tif file with GetXSize() nad
> GetYSize().THe/
> /xSize is 4833 and the ySize is 4141. The file is about 70M. Is the file
> large?/
> /Thanks for your help!/
> //
> / /
>
>
>
>
>
>
>
> ÃÀ Å® ¿Ö ²À °Ü ¼Ò Ðã ( ×é ͼ )
> ¶À ¼Ò Åû ¶ ! С ×Ê Å® ÈË 8 ¸ö ¾ø ¶¥ Òþ ÃØ µÄ Ȥ Ê ( ×é ͼ )
> <http://adtaobao.allyes.com/main/adfclick?db=adtaobao&bid=600,597,58&cid=29985,198,1&sid=32501&show=ignore&url=http://www.taobao.com/vertical/lady/pro.php>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev
More information about the Gdal-dev
mailing list