Exemple #1
0
// Set scaling offset
func (rasterBand RasterBand) SetOffset(offset float64) error {
	err := C.GDALSetRasterOffset(rasterBand.cval, C.double(offset))
	if err != 0 {
		return error(err)
	}

	return nil
}
Exemple #2
0
// Set scaling offset
func (rasterBand RasterBand) SetOffset(offset float64) error {
	return C.GDALSetRasterOffset(rasterBand.cval, C.double(offset)).Err()
}