Quickly helps you to setup GNAF database for Australian address data. As Australian address data is available as open source, companies might be looking for configuring and integrating address data. G-NAF is a database of all the physical addresses in Australia.
more details on G-NAF is available at https://data.gov.au/dataset/geocoded-national-address-file-g-naf
Here, I have tried to simplify the loading process as much as possible. Suggestions and contributions are most welcome.
Follow below steps to load the data to your database:
1) Download the zip file from above link with name "PSMA Geocoded National Address File (G-NAF)ZIP Popular". It will be around 1 gb. From the website find below link:
2) Create Sql database and run G-NAF\Extras\GNAF_TableCreation_Scripts\create_tables_sqlserver.sql (Ignore the drop table scripts)
3) Execute script G-NAF\Extras\GNAF_TableCreation_Scripts\add_fk_constraints.sql
4) Execute script G-NAF\Extras\GNAF_View_Scripts\address_view.sql (You might need to open the .sql file and change "CREATE OR REPLACE VIEW ADDRESS_VIEW" to "CREATE VIEW ADDRESS_VIEW"
5) Download and execute script attached to this gitub account named BulkImportDataSP.sql. This creates stored procedure to bulk import data which is used by SSIS package
6) Execute ALTER DATABASE GNAF SET RECOVERY SIMPLE; Above script disables logging while bulk loading the data which makes bulk load faster
7) Now is the time to actually load the data, either open the solution, configure details and run or directly run the package.
8) To configure, ssisconfig.dtsConfig is available in the package, just change the connection string, run the package file, add the configuration path and execute.
It might show errors "The connection "" is not found. This error ....".Ignore those as we are going to use connection string from the config file.
Screenshots attached at the end of this page.
The package is just 2 step process as below
Step 1. Load Authority Code Data:
Step 2. Load Standard Code Data:
Code released under the MIT license.