示例#1
0
文件: gdal.go 项目: kikht/gdal
// Adds a mask band to the dataset
func (dataset Dataset) CreateMaskBand(flags int) error {
	err := C.GDALCreateDatasetMaskBand(dataset.cval, C.int(flags))
	if err != 0 {
		return error(err)
	}

	return nil
}
示例#2
0
文件: gdal.go 项目: colek42/gdal
// Adds a mask band to the dataset
func (dataset Dataset) CreateMaskBand(flags int) error {
	return C.GDALCreateDatasetMaskBand(dataset.cval, C.int(flags)).Err()
}