[gdal-dev] Gdal 1.9 read problem

netcadturgay turgay.osna at netcad.com.tr
Wed Dec 12 07:21:47 PST 2012


I want to tile a file as scale independent. Also because output projection
may not be as same as source projection, I use to the AutoCreateWarpedVRT
function. But it reads the file very slow. Can you help me about this
problem? Or is there any other solution?

*Example Code:*
*Fast:*
Dataset ds = Gdal.Open("")
ds.ReadRaster(0, 0, ds.RasterXSize, ds.RasterYSize, buffer1, bufSize,
bufSize, 3, new int[] { 3, 2, 1 }, 0, 0, 0);

*Slow:*
Dataset dsWarp = Gdal.AutoCreateWarpedVRT(ds, ds.GetProjection(), wktWgs84,
ResampleAlg.GRA_Bilinear, 0);
dsWarp.ReadRaster(0, 0, dsWarp.RasterXSize, dsWarp.RasterYSize, buffer2,
bufSize, bufSize, 3, new int[] { 3, 2, 1 }, 0, 0, 0);



--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Gdal-1-9-read-problem-tp5022521.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list