Exemple #1
0
print 'load poly'
#load shape file
zips_load = Zip_Backfill.import_zip(args.shape_file)

if args.openaddresses:

	print 'run test'
	
	Self_Check.write_openaddresses_test(temp_rand, args.output, zips_load[0], zips_load[1])

else:

	temp_backfill = random.randint(10000000,99999999)

	print 'backfill'

	Zip_Backfill.write_zip(temp_rand, temp_backfill, zips_load[0], zips_load[1])

	print 'run test'

	if args.google: write_test(temp_backfill, args.output, args.google, False, False, False)

	if args.reverse: write_test(temp_backfill, args.output, args.reverse, True, False, False)

	if args.zip: write_test(temp_backfill, args.output, args.zip, False, True, False)

	if args.mapbox: write_test(temp_backfill, args.output, args.mapbox, False, False, True)

	os.remove(temp_backfill)

os.remove(temp_rand)
Exemple #2
0
# load shape file
zips_load = Zip_Backfill.import_zip(args.shape_file)

if args.openaddresses:

    print "run test"

    Self_Check.write_openaddresses_test(temp_rand, args.output, zips_load[0], zips_load[1])

else:

    temp_backfill = random.randint(10000000, 99999999)

    print "backfill"

    Zip_Backfill.write_zip(temp_rand, temp_backfill, zips_load[0], zips_load[1])

    print "run test"

    if args.google:
        write_test(temp_backfill, args.output, args.google, False, False, False)

    if args.reverse:
        write_test(temp_backfill, args.output, args.reverse, True, False, False)

    if args.zip:
        write_test(temp_backfill, args.output, args.zip, False, True, False)

    if args.mapbox:
        write_test(temp_backfill, args.output, args.mapbox, False, False, True)