示例#1
0
文件: gdal.go 项目: 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
}
示例#2
0
文件: gdal.go 项目: colek42/gdal
// Set scaling offset
func (rasterBand RasterBand) SetOffset(offset float64) error {
	return C.GDALSetRasterOffset(rasterBand.cval, C.double(offset)).Err()
}