minus34 / gnaf-loader

A quick way to get started with Geoscape's open GNAF & Admin Boundaries
Apache License 2.0
185 stars 66 forks source link

Bugfix: Remove hard-coded schema name #48

Closed bkastner closed 4 years ago

bkastner commented 4 years ago

The schema name "raw_gnaf_202008" was hardcoded which resulted in the following error when specifying a different schema name via the --raw-gnaf-schema argument:

File "gnaf-loader-master\load-gnaf.py", line 616, in create_reference_tables pg_cur.execute(psma.open_sql_file("03-02-reference-populate-localities.sql", settings)) psycopg2.errors.UndefinedTable: relation "raw_gnaf_202008.locality" does not exist

minus34 commented 4 years ago

Thanks for picking that up