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

Alessandro Pasotti apasotti at gmail.com
Tue Nov 20 08:47:09 PST 2018


For now, vectors only:

https://github.com/qgis/QGIS/pull/8519


On Tue, Nov 20, 2018 at 4:14 PM <brunos at mailbox.org> wrote:

> Hi Alessandro and Andreass
> Many thanks, it works in the DB-Manager!
> Yes, it would be cool to have it directly in the browser (its a great
> tool!). Mabe even with the whole DB-manager funktionality? We have the Info
> tap (Properties). Nice to have the table and Preview too.... Sorry to ask
> ask cheekily :-)
>
> Bruno
>
> Alessandro Pasotti <apasotti at gmail.com> hat am 20. November 2018 um 15:35
> geschrieben:
>
> On Tue, Nov 20, 2018 at 3:24 PM Andreas Neumann < a.neumann at carto.net>
> wrote:
>
> 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
>
> ______
>
>
>
>
> Thanks Andreas, I worked so much on the browser that I tend to forget
> about DB manager, it would be cool to have it available directly from the
> browser though.
>
> --
> Alessandro Pasotti
> w3:   www.itopen.it
>
>
>
>


-- 
Alessandro Pasotti
w3:   www.itopen.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20181120/c0cb900c/attachment.html>


More information about the Qgis-user mailing list