Esempio n. 1
0
File: gdal.go Progetto: kikht/gdal
// Set the no data value for this band
func (rasterBand RasterBand) SetNoDataValue(val float64) error {
	err := C.GDALSetRasterNoDataValue(rasterBand.cval, C.double(val))
	if err != 0 {
		return error(err)
	}

	return nil
}
Esempio n. 2
0
File: gdal.go Progetto: colek42/gdal
// Set the no data value for this band
func (rasterBand RasterBand) SetNoDataValue(val float64) error {
	return C.GDALSetRasterNoDataValue(rasterBand.cval, C.double(val)).Err()
}