I'm trying to script the import of a KMZ file into my PostGIS 2.2.1 enabled PostgreSQL 9.5.1 database and am running into a problem where it's not importing all of the (several dozen) layers. I think it's because within the KMZ file, there's another KMZ file and it's tripping the import up. Below is the command, but my question is: is there a way to exclude certain layers/files within the KMZ during the import process?
ogr2ogr -overwrite -f "PostgreSQL" PG:"host='hostname' user=postgres dbname='databaseName' schemas=schemaName password=pw" -nln "tableName" "path\to\file\filename.kmz"
I see where you can select certain fields within each layer using the
-select trigger, but is there something similar for entire layers?
here's what the unzipped kmz looks like in QGIS: