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

Alessandro Pasotti apasotti at gmail.com
Tue Nov 20 06:35:28 PST 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20181120/f8e7a9ef/attachment.html>


More information about the Qgis-user mailing list