chalobest/ChaloBEST — pull request #165 by johnsonc (2013-03-13 14:20:10+00:00)
Title: code changes for Nov 2012 import

Well, the

Primary cleaned csv files are in /home/johnson/shared/chalobest/db_csv_files/

Kindly use this for immediate testing:
Create a database with existing chalobest template, all the postgis stuff should be also imported..

then fire up the django shell and:
from imports import data_mapper as dm
dm.CsvLoader('Road')
dm.CsvLoader('Area')
dm.CsvLoader('Route')
dm.CsvLoader('Stop')

There were some schema differences with the earlier data, the Nov2012 dataset did not have the StopMaster did not have (chowki, depot). both are null as of now and the code was tweaked to allow that(no db schema changes).. The functions incrementally update.. so :+1:

Atlas and the fix_missing values code, and some misc functions are what remain.