// Delete named dataset func (driver Driver) DeleteDataset(name string) error { cDriver := driver.cval cName := C.CString(name) defer C.free(unsafe.Pointer(cName)) err := C.GDALDeleteDataset(cDriver, cName) if err != 0 { return error(err) } return nil }
// Delete named dataset func (driver Driver) DeleteDataset(name string) error { cDriver := driver.cval cName := C.CString(name) defer C.free(unsafe.Pointer(cName)) return C.GDALDeleteDataset(cDriver, cName).Err() }