[GIS] Bulk conversion and import of OS MasterMap .gz files to .shp in ArcGIS Desktop

arcgis-desktopconvertfile-geodatabasegmlshapefile

I have 91 .gz files procured from the Ordnance Survey and would like to import them all to ArcGIS as shapefiles. I know that the Quick Import tool in the Data Interoperabilty extension performs the process correctly for each file (using these steps), but it would be too tedious to do that for the 91 gz files into 91 file geodatabases.

How can I automate this process so that the files are converted and each subsequent feature class is merged into the resultant layers in one file geodatabase?

I'm in my early days of python scripting.

Inside the .gz files, there are GML files. So the question is how to batch convert these GML files to a single feature class (e.g. inside FGDB) or shapefile.

Best Answer

You could use python to extract the shps of each .gz file and use feature class to feature class method to import them into the destination geodatabase. The Q/A below is one example how to extract contents of many .gz files in a directory.

python script to copy and extract .gz files

Related Question