def gettable(self): ''' Get attribute table. :returns: (*PyTableData') Attribute table. ''' r = self.layer.getAttributeTable().getTable() return np.datatable(r)
def read_table(self): ''' Read data table from dataset. ''' dt = self.dataset.getDataInfo().readTable() return np.datatable(dt)