示例#1
0
 public static void WriteIntBlock(OSGeo.GDAL.Band rasterBand,
                                  BandBlock <int> block)
 {
     rasterBand.WriteRaster(block.XOffset, block.YOffset,
                            block.UsedPortionXSize, block.UsedPortionYSize,
                            block.Buffer,
                            block.UsedPortionXSize, block.UsedPortionYSize,
                            block.PixelSpace, block.LineSpace);
 }
示例#2
0
 public static void ReadDoubleBlock(OSGeo.GDAL.Band rasterBand,
                                    BandBlock <double> block)
 {
     rasterBand.ReadRaster(block.XOffset, block.YOffset,
                           block.UsedPortionXSize, block.UsedPortionYSize,
                           block.Buffer,
                           block.UsedPortionXSize, block.UsedPortionYSize,
                           block.PixelSpace, block.LineSpace);
 }
 public static void ReadShortBlock(OSGeo.GDAL.Band  rasterBand,
                                   BandBlock<short> block)
 {
     rasterBand.ReadRaster(block.XOffset, block.YOffset,
                           block.UsedPortionXSize, block.UsedPortionYSize,
                           block.Buffer,
                           block.UsedPortionXSize, block.UsedPortionYSize,
                           block.PixelSpace, block.LineSpace);
 }
示例#4
0
 public void ReadBlock(BandBlock <T> block)
 {
     readBlock(gdalBand, block);
 }
 public void WriteBlock(BandBlock <T> block)
 {
     writeBlock(gdalBand, block);
 }
 public static void WriteByteBlock(OSGeo.GDAL.Band rasterBand,
                                   BandBlock<byte> block)
 {
     rasterBand.WriteRaster(block.XOffset, block.YOffset,
                            block.UsedPortionXSize, block.UsedPortionYSize,
                            block.Buffer,
                            block.UsedPortionXSize, block.UsedPortionYSize,
                            block.PixelSpace, block.LineSpace);
 }