I have some 50 GML files in my downloads folder, each within a child folder such as:
Downloads\Adur\Land_Registry_Cadastral_Parcels.gml
Downloads\Abertawe_-_Swansea\Land_Registry_Cadastral_Parcels.gml
Downloads\Allendale\Land_Registry_Cadastral_Parcels.gml
etc...
I want to import all 50 GML files into a public schema as a batch command. I want to name each table as per the child folder (Adur, Abertawe_-_Swansea, Allendale etc) rather than the GML file itself. The DB has the PostGIS extension enabled. I'm using pgAdmin 4 as my visual SQL DB and expecting an idiot's guide on how to do this.
-
1If using QGIS this can be done in the DB Manager with PostGIS connectionMapperz– Mapperz ♦2021年04月04日 21:17:19 +00:00Commented Apr 4, 2021 at 21:17
-
I see I can open the SQL query window there too but I wouldn't know what to type!James B– James B2021年04月05日 08:56:58 +00:00Commented Apr 5, 2021 at 8:56
-
Install QGIS. Then you have multiple import optionsBera– Bera2021年04月06日 06:49:37 +00:00Commented Apr 6, 2021 at 6:49
1 Answer 1
Loading via DBManager in QGIS
use the Import Layer/File
Importing takes about 50 seconds.
This method allows for multiple files to be selected. (Or just merge all .gml files in QGIS)
-
Thanks Mapperz, this is the last resort I would have defaulted to myself - as you found and downloaded the inspire dataset for one local authority, you'll appreciate that merging all freehold titles for the UK will take some time!James B– James B2021年04月06日 10:55:46 +00:00Commented Apr 6, 2021 at 10:55