示例#1
0
def main():
	print 'Retrieving data...'
	reader.fetchData()
	#print 'Creating Earth KML...'
	#makeKML( True )
	print 'Creating data.js...'
	makeData()
	print 'Creating Maps JSON...'
	makeJson( 'democrat' )
	makeJson( 'republican' )
	print 'Checking in Maps JSON...'
	os.system( 'svn ci -m "Vote update" fl_text_output_for_mapping.csv data.js results_democrat.js results_republican.js' )
	print 'Done!'
示例#2
0
def main():
    print 'Retrieving data...'
    reader.fetchData()
    #print 'Creating Maps KML...'
    #makeKML( False )
    print 'Creating Earth KML...'
    makeKML(True)
    print 'Creating JSON...'
    makeJson('democrat')
    makeJson('republican')
    print 'Creating data.js...'
    makeData()
    print 'Done!'
示例#3
0
def main():
	print 'Retrieving data...'
	reader.fetchData()
	#print 'Creating Maps KML...'
	#makeKML( False )
	print 'Creating Earth KML...'
	makeKML( True )
	print 'Creating JSON...'
	makeJson( 'democrat' )
	makeJson( 'republican' )
	print 'Creating data.js...'
	makeData()
	print 'Done!'
示例#4
0
def main():
    print "Retrieving data..."
    reader.fetchData()
    # print 'Creating Earth KML...'
    # makeKML( True )
    print "Creating data.js..."
    makeData()
    print "Creating Maps JSON..."
    makeJson("democrat")
    makeJson("republican")
    print "Checking in Maps JSON..."
    os.system(
        'svn ci -m "Vote update" nv_text_output_for_mapping.csv data.js results_democrat.js results_republican.js'
    )
    print "Done!"
示例#5
0
def main():
    print 'Retrieving data...'
    reader.fetchData()
    #print 'Creating Earth KML...'
    #makeKML( True )
    print 'Creating data.js...'
    makeData()
    print 'Creating Maps JSON...'
    makeJson('democrat')
    makeJson('republican')
    print 'Checking in Maps JSON...'
    os.system(
        'svn ci -m "Vote update" fl_text_output_for_mapping.csv data.js results_democrat.js results_republican.js'
    )
    print 'Done!'