for enum, (pfi, x, y) in enumerate(sc):
            ufi = list(ri_rtree.nearest((x, y, x, y)))[0]

            sbc.add_row((pfi, ufi))

            if enum % 100000 == 0:
                logging.info(enum)
                sbc.flush()
        logging.info(enum)


if __name__ == '__main__':

    sys.argv.append('--estamap_version=DEV')

    with log.LogConsole():

        logging.info('parsing args')
        args = docopt(__doc__)

        logging.info('variables')
        estamap_version = args['--estamap_version']
        log_file = args['--log_file']
        log_path = args['--log_path']

        with log.LogFile(log_file, log_path):
            logging.info('start')
            try:
                ###########

                calc_address_gnaf_roadinfra(estamap_version)
Пример #2
0
            service='sde:sqlserver:TDB03',
            database=vm.database_name,
            account_authentication="OPERATING_SYSTEM_AUTH",
            version="dbo.DEFAULT",
            save_version_info="SAVE_VERSION",
        )


if __name__ == '__main__':

    sys.argv.append('--vicmap_version=20180524')
    sys.argv.append(
        '--auth_file=M:\\development\\ESRI\\Authorisation\\10.2\\ArcGISforServerAdvancedEnterprise_server_209415_Full.ecp'
    )

    with log.LogConsole(level='WARNING'):

        logging.info('parsing args')
        args = docopt(__doc__)

        logging.info('variables')
        vicmap_version = args['--vicmap_version']
        auth_file = args['--auth_file']
        log_file = args['--log_file']
        log_path = args['--log_path']

        with log.LogFile(log_file, log_path):
            logging.info('start')
            try:
                create_VMsde_db(vicmap_version, auth_file)
            except Exception as err: