示例#1
0
文件: gdal.go 项目: kikht/gdal
// Fill this band with a constant value
func (rasterBand RasterBand) Fill(real, imaginary float64) error {
	err := C.GDALFillRaster(rasterBand.cval, C.double(real), C.double(imaginary))
	if err != 0 {
		return error(err)
	}

	return nil
}
示例#2
0
文件: gdal.go 项目: colek42/gdal
// Fill this band with a constant value
func (rasterBand RasterBand) Fill(real, imaginary float64) error {
	return C.GDALFillRaster(rasterBand.cval, C.double(real), C.double(imaginary)).Err()
}