/
Step 3 - Configure Loader Settings

Step 3 - Configure Loader Settings

 

Edit the loader.config file in d:\astun\tools\loader-addressbase\python to use the AddressBase Import.

These instructions are based on having iShare on the d: drive, it may be necessary to use a different folder structure depending upon your environment.


  • Point Loader to the SourceOutput and Tmp folders created in Step 1. Note: no spaces. e.g.


Loader Directories
src_dir=d:\\astun\\tools\\loader-addressbase\\source
out_dir=d:\\astun\\tools\\loader-addressbase\\output
tmp_dir=d:\\astun\\tools\\loader-addressbase\\tmp


  • Update the ogr_cmd in the loader.config file so that the postgres credentials map to those of the addressbase database e.g.


ogr_cmd
ogr_cmd=ogr2ogr --config GML_EXPOSE_FID NO -append -skipfailures -f PostgreSQL PG:'dbname=addressbase active_schema=addressbase_temp host=localhost user=[YOUR USERNAME] password=[YOUR_PASSWORD]' $file_path


  • Update the prep_cmd to use the OS AddressBase Premium preparation logic e.g.

 

prep_cmd
prep_cmd=python prepgml4ogr.py $file_path prep_osgml.prep_addressbase_premium

 

  • Update the gfs_file command to specify the appropriate schema for the data e.g.

 

gfs_file
gfs_file=../gfs/addressbase_premium_postgres.gfs



Related content

Step 1 - Download installers & create folders
Step 1 - Download installers & create folders
More like this
Step 4 - Copy Scripts to Loader Python folder & create Batch file
Step 4 - Copy Scripts to Loader Python folder & create Batch file
More like this
AddressBase Premium Importer Installation & Configuration
AddressBase Premium Importer Installation & Configuration
More like this
Step 5 - Copy AddressBase Premium files to Loader Source folder
Step 5 - Copy AddressBase Premium files to Loader Source folder
More like this
Step 6 - Create Task to Import AddressBase data using Loader
Step 6 - Create Task to Import AddressBase data using Loader
More like this
AddressBase Premium GML Importer
AddressBase Premium GML Importer
More like this