Step 4 - Copy Scripts to Loader Python folder & create Batch file

Copy Scripts to Loader Python folder

Copy the following files which are used to import the AddressBase Premium data and create views over that data:

  • run_import.py
  • vw_addressbase_import.sql
  • vw_addressbase_address_point.sql
  • vw_addressbase_addresses_postal.sql
  • vw_addressbase_addresses_geo.sql

from the AddressBase Premium Importer folder:

d:\astun\tools\addressloader 

 

to  the Loader Python folder:

d:\astun\tools\loader-addressbase\python

Create Batch file to Import the data

Create a batch file called addressbase.bat as per the example below, to run the importer script and place it in the  loader-addressbase folder.

 

addressbase.bat
cd /D %~dp0
cd python
c:\python27\python run_import.py loader.config