Commit 3acff114 authored by Eliot Blennerhassett's avatar Eliot Blennerhassett

Fix lon > 180 in output (for Chathams)

parent 400d424b
......@@ -107,14 +107,16 @@ def generate_osmchange_place(place, dbcursor, outdir,
generator="osmlinzaddr.py")
for r in lrows:
(linz_id, housenumber, street, x, y) = r
(linz_id, housenumber, street, lon, lat) = r
if lon > 180.0:
lon = lon - 360
create = ET.SubElement(osmchange, "create")
dnode = {
'id': "-%d" % linz_id,
'changeset': '0',
'lat': "%8.8f" % y,
'lon': "%8.8f" % x,
'lat': "%8.8f" % lat,
'lon': "%8.8f" % lon,
}
node = ET.SubElement(create, "node", dnode)
......
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