adjust imports script for new dump with admin2 field
This commit is contained in:
parent
911a72d0b4
commit
40fd95d5d2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user