<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Anna,</p>
<p>The export layer just export data. When you do a "Save Vector
Layer as..." only the data is copied to the new GeoPackage.</p>
<p>Right now, you have to:</p>
<p>i) Export data (and add it as a layer)<br>
</p>
<p>ii) Copy and paste the style(s) fro the old layer to the new
layer</p>
<p>iii) Save the style(s) in the new GeoPackage, one by one<br>
</p>
<p>iv) Distribute the GeoPackage with the data and all the styles.
If you save more than one style, you are able to selected which
one to apply (Layer Properties → Style → Load style "from database
(GeoPackage)" and you see the list of "Other styles on the
database", on the bottom of the dialog, with a name and
description.)<br>
</p>
<p>Would you like to also save all layers styles when you export a
layer? I think that does make sense. I don't know if anyone else
already requested this. Can you search
<a class="moz-txt-link-freetext" href="https://github.com/qgis/QGIS/issues">https://github.com/qgis/QGIS/issues</a> and create a new feature
request, if necessary?</p>
<p>Regards,</p>
<p>Jorge Gustavo<br>
</p>
<div class="moz-cite-prefix">Às 10:34 de 13/06/19, Anna Muñoz
escreveu:<br>
</div>
<blockquote type="cite"
cite="mid:CAL9bcQKXesDsjaMMh-5B-1Ny_GaCGABVwjUFJz-pxb_CpioQkA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hello, <br>
<br>
I am working in QGIS 3.4 with a geopackage file (SQLite
database) containing geographic information (points, lines and
polygons). <br>
In QGIS, I have defined by hand a style for every layer in
geopackage (gpkg). <br>
It's a time consuming task so I have saved layer styles in QML
file, and also in the
GPKG file. <br>
When I open my GPKG file in another QGIS session it works well
showing every layer with their style.<br>
<br>
Questions:<br>
<br>
1. I have problems when export the styled gpkg to another gpkg.<br>
The output file doesn't contain the layer_styles table so the
styles definitions are lost. <br>
It doesn't matter if I export completely the gpkg stylized or
only selected features. <br>
Of course I can apply QML file but I would like to have the
symbology stored in the geopackage.<br>
<br>
Maybe I have to check any specific option to export the gpkg
file?<br>
<br>
2. By other hand, I defined different styles (3 or more) to the
same layer<br>
and I saved these styles to the geopackage (they are well
stored in layers_styles table).<br>
<br>
When I open my gpkg file in another QGIS session, only the
default style is applied to the layer (tha's ok). <br>
But, loading other styles from sqlite database doesn't apply
to the layer and QGIS doesn't show any error message.<br>
<br>
How can I use other styles saved in gpkg?<br>
<br>
Thank you in advance for your time !<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
</blockquote>
<div class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div class="moz-signature">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<div class="moz-signature">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<div class="moz-signature">
<div class="moz-signature">
<div class="moz-signature"><img
src="cid:part1.01C893C9.0EC005E7@geomaster.pt"
alt="Logo" width="50" height="50" align="left"><span
class="im"><b><font size="+2"><font size="-2"> </font>Geomaster,
LDA</font></b></span><br>
<div class="moz-signature">
<div class="moz-signature"> <b><font size="-2"
color="#999999">VENHA DESCOBRIR O CAMINHO DO
OPEN SOURCE CONNOSC</font></b><b><font size="-2"
color="#999999">O<br>
<br>
</font></b>
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<title></title>
<div class="moz-signature">
<div class="moz-signature">
<div class="moz-signature">
<div class="moz-signature">
<div class="moz-signature">
<div class="moz-signature">
<table width="450" height="126"
cellspacing="1" cellpadding="2"
border="0">
<tbody>
<tr>
<td width="150" valign="top"
height="50"><font size="-1"><span
class="im"><font size="-2"> </font><br>
Avenida Barros e Soares<br>
N.º 423, 4715-214 Braga<br>
VAT/NIF</span><span
class="im"> 510 906 109<br>
Phone</span><span class="im">
+351 253 680 323<br>
</span>Site <a
href="http://geomaster.pt"
rel="noreferrer"
target="_blank"
data-saferedirecturl="https://www.google.com/url?hl=pt-PT&q=http://geomaster.pt&source=gmail&ust=1532515644545000&usg=AFQjCNEUP4MdlcHYefwCgfNLz4DspDBtXA">geomaster.pt</a><br>
GPS 41.53322, -8.41929</font><br>
<span class="im"></span></td>
<td width="25" valign="top"
align="right"><font size="-1"><span
class="im"></span></font>
<hr width="2" size="100"
align="right"></td>
<td width="150" valign="top"
nowrap="nowrap" height="50"><font
size="-1"><font size="-1"><font
size="-2"> </font><br>
Jorge Gustavo Rocha</font><br>
<font size="-2"
color="#999999">CTO<br>
<br>
</font>Mobile</font><font
size="-1"><span class="im">
+351 910 333 888<br>
Email <a class="moz-txt-link-abbreviated" href="mailto:jgr@geomaster.pt">jgr@geomaster.pt</a></span></font></td>
</tr>
</tbody>
</table>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>