Ejemplo n.º 1
0
 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'.
     """
     OsmosisSubTable.layout(self, columns)
     self.add_geometry_column(self.column_geom, self.srid,
                              'GEOMETRY', with_index=True)
Ejemplo n.º 2
0
 def __init__(self, db, name, subset, uptable = None):
     OsmosisSubTable.__init__(self, db, 'way', name, subset, uptable = uptable)
Ejemplo n.º 3
0
 def __init__(self, db, name, subset):
     OsmosisSubTable.__init__(self, db, 'way', name, subset)
Ejemplo n.º 4
0
 def __init__(self, db, name, subset, segmenttable, hiertable=None):
     OsmosisSubTable.__init__(self, db, 'relation', name, subset)
     self.segment_table = segmenttable
     self.hierarchy_table = hiertable