Example #1
0
File: gdal.go Project: kikht/gdal
// 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
}
Example #2
0
File: gdal.go Project: colek42/gdal
// Set scaling offset
func (rasterBand RasterBand) SetOffset(offset float64) error {
	return C.GDALSetRasterOffset(rasterBand.cval, C.double(offset)).Err()
}