From 40fd95d5d21d5590902e82121223c593cb9cc78a Mon Sep 17 00:00:00 2001 From: Sanj Date: Sun, 28 Aug 2011 03:01:36 +0530 Subject: [PATCH] adjust imports script for new dump with admin2 field --- gazetteer/places/imports.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gazetteer/places/imports.py b/gazetteer/places/imports.py index c38b44e..a055895 100644 --- a/gazetteer/places/imports.py +++ b/gazetteer/places/imports.py @@ -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