def layout(self, columns): fullcol = [(self.column_id, 'bigint'), (self.column_kind, 'char(1)')] fullcol.extend(columns) PGTable.layout(self, fullcol) self.add_geometry_column(self.column_geom, self.srid, 'POINT', with_index=True)
def layout(self, columns): """ Layout the table as specified in PGTable.layout() but it will add a column for the OSM id. The name of the column is specified in 'column_id'. """ fullcol = [(self.column_id, 'bigint PRIMARY KEY')] fullcol.extend(columns) PGTable.layout(self, fullcol)
def layout(self, columns): """ Layout the table as specified in PGTable.layout() but it will add a column for the OSM id. The name of the column is specified in 'column_id'. """ fullcol = [(self.column_id, 'bigint PRIMARY KEY')] fullcol.extend(columns) PGTable.layout(self, fullcol) self.add_geometry_column(self.column_geom, self.srid, 'GEOMETRY', with_index=True)