<html><head></head><body><div dir="auto">You might find something useful in this QGIS deployment script:<br><br><a href="https://www.northrivergeographic.com/qgis-deployment-cli/">https://www.northrivergeographic.com/qgis-deployment-cli/</a><br><br>Alexei</div><br><br><div class="gmail_quote"><div dir="auto">On January 18, 2024 5:48:09 PM GMT, Adam Nielsen via QGIS-User <qgis-user@lists.osgeo.org> wrote:</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail"><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"><div dir="auto">I would like to create a project and then, for example, given a list of<br>files, put all those whose names begin with "OC" in the ocean group, and<br>all others in the root of the project, and finally sort them<br>programmatically, according to values I have in a list of my own.<br><br>I know it is an XML file and I can use an XML cli utility.<br><br>Here I am asking if there is anything already dedicated to QGIS project.<br></div></blockquote><div dir="auto"><br>There is quite extensive support for working with QGIS projects via<br>Python.  You could write a Python script and run it from the CLI.<br><br>Cheers,<br>Adam.<hr>QGIS-User mailing list<br>QGIS-User@lists.osgeo.org<br>List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></div></pre></blockquote></div></body></html>