<div dir="ltr"><div>Hi Jorge, <br></div><div>cool tips thanks!<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 21 janv. 2019 à 17:27, Jorge Gustavo Rocha <<a href="mailto:jgr@di.uminho.pt">jgr@di.uminho.pt</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
Just 0,20 € for editing the *.qgs file inside the *.qgz.<br>
<br>
Windows users:<br>
<br>
7zip is able to edit the file in place. By default, it uses Notepad,<br>
which is not very useful. But you con configure a nice editor (notepad++<br>
or another) in the 7zip options. I don't use Windows, but I've launched<br>
one just to check this option and it works.<br>
<br>
Linux users (or distributions using vim)<br>
<br>
vim can open the *.qgz file and then edit the *.qgs in place. That's<br>
what I do.<br>
<br>
You just need to tell vim zip plugin that the *.qgz are also zipped files.<br>
<br>
Edit once the ~/.vimrc and add the line:<br>
au BufReadCmd *.qgz call zip#Browse(expand("<amatch>"))<br>
<br>
Afterwards, you just need to:<br>
1) vim project.qgz<br>
and it open the project. Hit enter on top of the project.qgs file and<br>
make your changes.<br>
<br>
sed (or for some kind of scripting)<br>
<br>
Sometimes I need to use sed to do several find/replace. Do do that, I<br>
have a folder /mnt/qgis owned by my user.<br>
<br>
To change the project:<br>
1) fuse-zip edicaoavancada.qgz /mnt/qgis<br>
<br>
2) Do command line editing...<br>
sed -i "s|<layername>\([^<]\+\)</layername>|<layername>\1<br>
2017</layername>|g" /mnt/qgis/edicaoavancada.qgs<br>
<br>
3) recreate the qgz file<br>
fusermount -u /tmp/qgis<br>
<br>
This does not solve any of the problems mentioned, but allows me to do<br>
all kind of editing/scripting of top of the zipped project file.<br>
<br>
Regards,<br>
<br>
Jorge Gustavo<br>
<br>
Às 15:19 de 21/01/19, Paolo Cavallini escreveu:<br>
> Sorry I was not clear: I meant that in the list you can find several<br>
> issues deriving from qgz, as already pointed out.<br>
> All the best.<br>
> <br>
> On 21/01/19 16:12, Régis Haubourg wrote:<br>
>> Hi Paolo,<br>
>> I think you issue list is a bit pessimistic. Looking a issues<br>
>> mentionning qgz in the subject, we find only 3-4 issues:-- <br>
> Paolo Cavallini - <a href="http://www.faunalia.eu" rel="noreferrer" target="_blank">www.faunalia.eu</a><br>
> <a href="http://QGIS.ORG" rel="noreferrer" target="_blank">QGIS.ORG</a> Chair:<br>
> <a href="http://planet.qgis.org/planet/user/28/tag/qgis%20board/" rel="noreferrer" target="_blank">http://planet.qgis.org/planet/user/28/tag/qgis%20board/</a><br>
> _______________________________________________<br>
> QGIS-Developer mailing list<br>
> <a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
> <br>
<br>
J. Gustavo<br>
-- <br>
Jorge Gustavo Rocha<br>
Departamento de Informática<br>
Universidade do Minho<br>
4710-057 Braga<br>
Tel: +351 253604480<br>
Fax: +351 253604471<br>
Móvel: +351 910333888<br>
skype: nabocudnosor<br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div>