<div dir="ltr">Hi Bernd,<div><br></div><div>The best practice I recommend is to first use the 'Package Layers' algorithm to get all your layers in a geopackage. This saves the styles and data into the geopackage. Then load these into a fresh project  and then save the current project into the same geopackage. You can save processing models, styles etc in your project which also gets packaged. This way you end up with a single geopackage for your project. See the <a href="https://courses.spatialthoughts.com/automating-gis-workflows.html#packaging-your-work">full workflow here</a>.</div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div></div><div><table cellpadding="0" cellspacing="0" style="border-spacing:0px;border-collapse:collapse;color:rgb(68,68,68);width:480px;font-size:10pt;font-family:Arial,sans-serif;line-height:normal"><tbody><tr><td valign="top" style="padding:10px 0px 12px;width:160px;vertical-align:top"><a href="https://spatialthoughts.com/" style="background-color:transparent;color:rgb(51,122,183)" target="_blank"><img border="0" alt="Logo" width="141" src="https://spatialthoughts685850346.files.wordpress.com/2019/12/spatial_thoughts_logo.png" style="border:0px;vertical-align:middle;width:141px;height:auto"></a></td><td style="padding:6px 0px;width:320px"><table cellpadding="0" cellspacing="0" style="border-spacing:0px;border-collapse:collapse;background-color:transparent"><tbody><tr><td style="padding:0px;font-size:12pt;font-family:Arial,sans-serif;font-weight:bold;color:rgb(61,60,63)"><span style="color:rgb(0,175,239)">Ujaval Gandhi</span></td></tr><tr><td style="padding:0px 0px 11px;font-size:10pt;font-family:Arial,sans-serif;color:rgb(61,60,63)"><span style="color:rgb(0,175,239)">Spatial Thoughts</span></td></tr><tr><td style="padding:0px;font-size:10pt;font-family:Arial,sans-serif;color:rgb(155,155,155)"><span>mobile: +91-8095684687</span></td></tr><tr><td style="padding:0px;font-size:10pt;font-family:Arial,sans-serif;color:rgb(155,155,155)"><span>email: </span><span style="color:rgb(23,147,210)"><a href="mailto:ujaval@spatialthoughts.com" target="_blank">ujaval@spatialthoughts.com</a></span></td></tr><tr><td style="padding:6px 0px 0px"><span style="display:inline-block;height:22px"><span><a href="https://www.linkedin.com/in/spatialthoughts/" style="background-color:transparent;color:rgb(51,122,183)" target="_blank"><img alt="LinkedIn icon" border="0" width="23" height="23" src="https://codetwocdn.azureedge.net/images/mail-signatures/generator/elegant-logo/ln.png" style="border:0px;vertical-align:middle;height:20px;width:20px"></a>  </span><span><a href="https://twitter.com/spatialthoughts" style="background-color:transparent;color:rgb(51,122,183)" target="_blank"><img alt="Twitter icon" border="0" width="23" height="23" src="https://codetwocdn.azureedge.net/images/mail-signatures/generator/elegant-logo/tt.png" style="border:0px;vertical-align:middle;height:20px;width:20px"></a>  </span></span></td></tr></tbody></table></td></tr><tr><td colspan="2" style="padding:8px 0px 0px;border-top:1px solid rgb(23,147,210);width:480px;font-family:Arial,sans-serif;color:rgb(155,155,155);text-align:justify"><span>Subscribe to our newsletter <a href="http://bit.ly/spatialthoughts-newsletter" target="_blank">http://bit.ly/spatialthoughts-newsletter</a></span></td></tr></tbody></table><br></div></div></div></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 7, 2020 at 4:18 PM Alessandro Pasotti <<a href="mailto:apasotti@gmail.com">apasotti@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Oct 7, 2020 at 12:27 PM Bernd Vogelgesang<br>
<<a href="mailto:bernd.vogelgesang@gmx.de" target="_blank">bernd.vogelgesang@gmx.de</a>> wrote:<br>
><br>
> From what I now read and tried, that solution seems to be far from what Andre wants.<br>
<br>
What the Andre wants can be achieved by saving the filesystem-based<br>
data in a directory under the project's directory and then setting the<br>
project's option to store datasource paths as relative, if that<br>
doesn't work it's a bug.<br>
Then you can make a zip/tar.gz of the project and the underlying data<br>
and send the zip.<br>
<br>
<br>
> It seems, you can save it TO a gpkg and not AS a gpkg.<br>
> So in case your complete project data is not already stored within a gpkg, it won't collect and dump it as QConsolidate does. (correct?)<br>
><br>
<br>
Correct.<br>
<br>
<br>
> Maybe someone could shed a light about an best-practice-approach, how to organize and store the data so this tool will give a smooth workflow. (thinking e.g. of how to deal with big permanent datasets on networks drives etc. )<br>
><br>
> Cheers,<br>
><br>
> Bernd<br>
><br>
> On 07.10.20 11:56, Andreas Neumann wrote:<br>
><br>
> For storing the .qgs file in a geopackage you can simply do "Project"<br>
> --> "Save As" --> "Geopackage".<br>
> I think you could even have multiple .qgs project files in a single<br>
> Geopackage.<br>
> Andreas<br>
> On 2020-10-07 11:50, Richard Duivenvoorde wrote:<br>
><br>
> On 10/7/20 11:45 AM, Andre Ulrich wrote:<br>
><br>
> Dear community,<br>
><br>
> I want to export a QGIS project. In this project there are a few layers (the path for each layer is set according to where the data is saved on my computer). I can open the project on my computer and all the layers are available.<br>
> But when I send the project (and all the data for the layers - everything is in one repository) to a colleague, he can not view the layers (because the paths are still set according to my computer). One can fix this in a few minutes by setting up the correct paths, but this is very annoying. And once the paths are set correctly, all the symbology from the layer properties is lost (or reset to some standard).<br>
><br>
> Is there a way to save a QGIS project and all the related data as one file (so that another person, who opens this file on its own computer, does not have to set up all the paths and edit the symbology)?<br>
><br>
><br>
> Try the QConsolidate plugin from Alex Bruy:<br>
> <a href="https://github.com/alexbruy/qconsolidate" rel="noreferrer" target="_blank">https://github.com/alexbruy/qconsolidate</a><br>
> available from his plugin repo (or github)<br>
> <a href="https://plugins.bruy.me/qconsolidate.html" rel="noreferrer" target="_blank">https://plugins.bruy.me/qconsolidate.html</a><br>
><br>
> It is also possible to export your data to an geopackage yourself, as you can also save symbology for layers into a geopackage, and..., wel you would need to sent 2 files then: the gpkg with you data+symbology and your QGIS project file<br>
> (was there a plugin to write your projectfile into a gpkg?)<br>
><br>
> HTH<br>
><br>
> Regards,<br>
><br>
> Richard Duivenvoorde<br>
><br>
> _______________________________________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
><br>
><br>
> _______________________________________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
><br>
> _______________________________________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
<br>
<br>
<br>
-- <br>
Alessandro Pasotti<br>
QCooperative:  <a href="http://www.qcooperative.net" rel="noreferrer" target="_blank">www.qcooperative.net</a><br>
ItOpen:   <a href="http://www.itopen.it" rel="noreferrer" target="_blank">www.itopen.it</a><br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote></div>