adjust imports script for new dump with admin2 field

This commit is contained in:
Sanj 2011-08-28 03:01:36 +05:30
parent 911a72d0b4
commit 40fd95d5d2

View File

@ -36,9 +36,9 @@ def import_gazetteer(f, limit):
fcode = None
ft.feature_type = fcode
ft.admin1 = row[3]
ft.admin2 = row[4]
ft.geometry = Point(float(row[6]), float(row[5]))
ft.admin1 = row[4]
ft.admin2 = row[5]
ft.geometry = Point(float(row[7]), float(row[6]))
ft.save()
print "saved " + ft.preferred_name
i += 1