Esempio n. 1
0
def copy_gps(log_name, source_workspace, target_workspace, state_of_interest):
    logger = MC.setup_logging(log_name)
    logger.info("Starting program...")

    logger.info(state_of_interest)
    logger.info(source_workspace + " --> " + target_workspace)

    MC.arcfm_disable()

    copy_fcs_by_state(logger, source_workspace, target_workspace, state_of_interest)

    MC.arcfm_cleanup()

    MC.send_finished_email(log_name)

    logger.info("Finished program")
Esempio n. 2
0
    del sCur, iCur

    mc.write_gisid_seed(gisid)

    # time.sleep(10)
    # MC.enable_editor_tracking(target_workspace, fc)


#
# start of program
#
log_name = 'migrate6'
logger = mc.setup_logging(log_name)
logger.info("Starting program...")

mc.arcfm_disable()

states = ["OH", "PA", "VA"]

for gps_state in states:
    p_workspace = mc.get_prod_workspace()
    r2d2_prod = mc.get_r2d2_prod_workspace(gps_state)
    logger.info(p_workspace + "-->" + r2d2_prod)

    move_workarea(logger, p_workspace, r2d2_prod, gps_state)

mc.arcfm_cleanup()

logger.info("Finished program")