[Qgis-user] rename layer of geopackage in qgis 3.4

Andreas Neumann a.neumann at carto.net
Tue Nov 20 06:24:04 PST 2018


Hi Alessandro, 

It is possible to rename tables in the DB manager. After connecting to
the Geopackage you can rename by right-clicking on the layer. I just
tried and it worked. Although it failed right after renaming to add the
renamed layer - after closing the connection and reconnecting, I could
add the layer fine. 

So it seems to work with minor glitches. 

Andreas 

On 2018-11-20 15:19, Alessandro Pasotti wrote:

> On Tue, Nov 20, 2018 at 2:50 PM <brunos at mailbox.org> wrote: 
> 
>> Hy there 
>> 
>> Maybe I don't get the simple way: How can I rename a layer of a geopackage in QGIS 3.4.1? I'm speaking of the layer of the database (.gpkg), not the name of the layer-reference in the layer panel in QGIS. I can create a new layer in the Browser and I can delete it. How to rename it? 
>> Thanks
> 
> You can't. 
> 
> This is not implemented (yet), but there is a workaround in latest QGIS master: from the browser you can  right-click on the layer and choose "Export Layer" -> "To File ..." and select the same geopackage, and give the layer a different name, then you can delete the original one. 
> 
> -- 
> Alessandro Pasotti
> w3:   www.itopen.it [1] 
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

 

Links:
------
[1] http://www.itopen.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20181120/9902fc80/attachment.html>


More information about the Qgis-user mailing list