[Qgis-user] Layer definition file

Áron Gergely aron.gergely at rasterra.nl
Wed Jun 26 11:30:04 PDT 2019


Hi Antal,

Yes, it is possible to save the styling of the layer in a GeoPackage.
And to me it seems like it works the same as in QGIS 3.6.

Here is a walkthrough:

Suppose you have a vector layer in a GeoPackage that you opened in QGIS, 
you styled it and now you want to save that style:

In the layer tree window, right click on the layer -> properties.

Click the "Symbology" tab and go to the bottom of the window, click on 
Style -> Save style...

A new window will pop up with a roll-down menu "Save Style" on top.

there you should select "In Database (GeoPackage)"

You can then input a name and the description (optional) for the style 
you are saving.

Also, if you tick on "save as default style" QGIS will automatically 
style that layer accordingly whenever (and whatever machine) you open 
that layer from the GeoPackage.

Once happy, click OK and that should be it.

If you inspect the geopackage afterwards you will see that there is a 
new table called "layer_styles"
where the styling is saved in both QML and SLD, in the correspondingly 
named fields.

Cheers,
Áron

On 26/06/2019 04:58, kosza.antal wrote:
> Hi everyone,
>
> There is a way, to store the layer definition file in geopackage, with 
> qgis 3.8?
>
> _______________________________________________
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20190626/f0559fb6/attachment.html>


More information about the Qgis-user mailing list