Beispiel #1
0
// 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
}
Beispiel #2
0
// 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()
}