Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

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.

 

 

Code Block
# Use the OS AddressBase Premium preparation logic
prep_cmd=python prepgml4ogr.py $file_path prep_osgml.prep_addressbase_premium
 
 
# OS AddressBase Premium gfs file to specify appropriate schema for the data
gfs_file=../gfs/addressbase_premium.gfs

 


  • Point Loader to the the Source, Output and  and Tmp folders  folders created in Step 2in Step 1. Note: no spaces. e.g.


Code Block
titleLoader 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 the ogr_cmd in  in the loader.config file so that the postgres credentials map to those of the addressbase database e.g.

...


Code Block
titleogr_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.

 

Code Block
titleprep_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.

 

Code Block
titlegfs_file
gfs_file=../gfs/addressbase_premium_postgres.gfs