I have a GeoPackage file that has been renamed, but the layer inside the GeoPackage keeps the original name, is it possible to automatically put the same name on the layer as the file?
Example:
Original GeoPackage file : cidadedesaopaulo.gpkg
Layer name : citiesaopaulo
Renamed GeoPackage file : Cidades-SP_Brasil.gpkg
Layer name : citiesaopaulo
Desired layer name : Cidades-SP_Brasil
There are hundreds of files to change, which will be a lot of work to do manually. How can I automate this process in QGIS?
I'm aware of how GeoPackage works, but this filename pattern (the layer with the same name as the GeoPackage file) is a requirement of my employer. My question is if there is a way to change the layer name so that it has the same name as the GeoPackage. Whether using a programming language or the QGIS graphical modeler.