<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Hi Agus,<br>
<br>
I'm no specialist on qgs files but from what I've done in the past
here is my comments:<br>
The layers in a qgs file are spread in two sections (if you have not
created composer outputs).<br>
The first section will give you the name of the layer and an ID. The
second section starts by the ID.<br>
e.g.<br>
<br>
First section (in the <legend> block)<br>
<legendlayer open="true" checked="Qt::Checked"
name="teststack" ><br>
<filegroup open="true" hidden="false" ><br>
<legendlayerfile isInOverview="0" <b>layerid="teststack20100829204340464"</b>
visible="1" /><br>
</filegroup><br>
</legendlayer><br>
<br>
Second section (in the <projectlayers> block)<br>
<maplayer minimumScale="0" maximumScale="1e+08"
minLabelScale="0" maxLabelScale="1e+08" geometry="Polygon"
type="vector" hasScaleBasedVisibilityFlag="0"
scaleBasedLabelVisibilityFlag="0" ><br>
<b><id>teststack20100829204340464</id></b><br>
<datasource>./teststack.shp</datasource><br>
<layername>teststack</layername><br>
<br>
If you want to delete a layer you have to delete the block
<legendlayer> ... </legendlayer> and the block
<maplayer> ... </maplayer><br>
<br>
If you have composer blocks I recommend you delete all of them as
they could be the culprits that make the qgs crash.<br>
<br>
HTH<br>
Benoit<br>
<br>
<br>
<br>
On 18/10/2010 07:56, Agustin Lobo wrote:
<blockquote
cite="mid:AANLkTinKpsnuzxVTL2YwazMF14RBTAyGXbzrmpu3iA2K@mail.gmail.com"
type="cite">
<pre wrap="">Hi!
I've tried to open a qgs file made with qgis 1.4 on qgis 1.5
(ubuntu binaries on ubuntu 9.10) but qgis 1.5 crashes before
completing the loading of all layers.
Is there any way I can debug the qgs file? In particular,
I would like to edit the qgs file and delete after a given layer,
but guess that there is a part at the end that I should keep.
Thanks
Agus
_______________________________________________
Qgis-developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
</pre>
</blockquote>
</body>
</html>