def createAndLoadTable(self): """ Create the table and load the map data from input table """ self.db.create_table(self.db, self.tableName, "", "map") f = open(self.inputFileName, "r") iMap = Map() lMap = [] while iMap.read(f): lMap.append(iMap) iMap = Map() f.close() self._tMapA = TableMapAdaptator(self.db, self.tableName) self._tMapA.insMapList(lMap)