Commit 0da92809 authored by Eliot Blennerhassett's avatar Eliot Blennerhassett

Remove unused code

parent 034758b1
......@@ -38,23 +38,7 @@ def generate_osmchange(dbfile, outdir,
con = db.connect(dbfile)
cur = con.cursor()
if True:
q = '''select * from linz_not_osm'''
else:
# Select subset by place
q = 'select * from places'
places = list(cur.execute(q))
place = places[2000]
if place[0] is None:
q = '''select * from linz_not_osm
where c is NULL and s="{1}"
'''.format(*(place))
else:
q = '''select * from linz_not_osm
where c="{0}" and s="{1}"
'''.format(*(place))
q = '''select * from linz_not_osm'''
rows = cur.execute(q)
......@@ -92,7 +76,7 @@ def generate_osmchange(dbfile, outdir,
tree = ET.ElementTree(osmchange)
path = outdir + "/linz_addr_%04d_%s.osc" % (block, fn)
print("Writing", num_nodes, "to", fn)
print(fn, ":", num_nodes, "nodes")
tree.write(path, pretty_print=True)
if finished:
......@@ -109,14 +93,9 @@ def generate_osmchange(dbfile, outdir,
num_nodes = 1
osmchange = ET.Element('osmChange', version="0.6",
generator="osmlinzaddr.py")
if suburb != prev_suburb:
print('city', city, 'suburb/hamlet', suburb)
prev_suburb = suburb
create = ET.SubElement(osmchange, "create")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment