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
|
fcode = None
|
||||||
|
|
||||||
ft.feature_type = fcode
|
ft.feature_type = fcode
|
||||||
ft.admin1 = row[3]
|
ft.admin1 = row[4]
|
||||||
ft.admin2 = row[4]
|
ft.admin2 = row[5]
|
||||||
ft.geometry = Point(float(row[6]), float(row[5]))
|
ft.geometry = Point(float(row[7]), float(row[6]))
|
||||||
ft.save()
|
ft.save()
|
||||||
print "saved " + ft.preferred_name
|
print "saved " + ft.preferred_name
|
||||||
i += 1
|
i += 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user