예제 #1
0
파일: gdal.go 프로젝트: kikht/gdal
// 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
}
예제 #2
0
파일: gdal.go 프로젝트: colek42/gdal
// Adds a mask band to the current band
func (rasterBand RasterBand) CreateMaskBand(flags int) error {
	return C.GDALCreateMaskBand(rasterBand.cval, C.int(flags)).Err()
}