<!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 &lt;legend&gt; block)<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;legendlayer open="true" checked="Qt::Checked"
    name="teststack" &gt;<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filegroup open="true" hidden="false" &gt;<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;legendlayerfile isInOverview="0" <b>layerid="teststack20100829204340464"</b>
    visible="1" /&gt;<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/filegroup&gt;<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/legendlayer&gt;<br>
    <br>
    Second section (in the &lt;projectlayers&gt; block)<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;maplayer minimumScale="0" maximumScale="1e+08"
    minLabelScale="0" maxLabelScale="1e+08" geometry="Polygon"
    type="vector" hasScaleBasedVisibilityFlag="0"
    scaleBasedLabelVisibilityFlag="0" &gt;<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>&lt;id&gt;teststack20100829204340464&lt;/id&gt;</b><br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;datasource&gt;./teststack.shp&lt;/datasource&gt;<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;layername&gt;teststack&lt;/layername&gt;<br>
    <br>
    If you want to delete a layer you have to delete the block
    &lt;legendlayer&gt; ... &lt;/legendlayer&gt; and the block
    &lt;maplayer&gt; ... &lt;/maplayer&gt;<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>