Beispiel #1
0
// Adds a mask band to the current band
func (rasterBand RasterBand) CreateMaskBand(flags int) error {
	err := C.GDALCreateMaskBand(rasterBand.cval, C.int(flags))
	if err != 0 {
		return error(err)
	}

	return nil
}
Beispiel #2
0
// Adds a mask band to the current band
func (rasterBand RasterBand) CreateMaskBand(flags int) error {
	return C.GDALCreateMaskBand(rasterBand.cval, C.int(flags)).Err()
}