<div dir="ltr"><br><div class="gmail_quote">On Fri, Oct 10, 2008 at 5:43 PM, Carson Farmer <span dir="ltr">&lt;<a href="mailto:carson.farmer@gmail.com">carson.farmer@gmail.com</a>&gt;</span> wrote:<br>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div bgcolor="#ffffff" text="#000000"><div class="Ih2E3d"><blockquote type="cite">
  <blockquote type="cite">
    <pre>When creating a MultiPolyline geometry, I am able to combine several
Polylines to form a single Multipolyline. However, when attempting to write
this out to a shapefile using QgsVectorFileWriter, the resulting file
contains no entries. I have inspected the Multipolylines, and they appear to
be valid, and the QgsGeometry is created without a problem.

Somewhere between feature.setGeometry(multi_geom) and writer.addFeature(),
the geometry information appears to be rendered invalid?
    </pre>
  </blockquote>
  <pre>fixed in r9469 :-)
  </pre>
</blockquote></div>
Again this is great, tested and works great for lines... However, the
same problem appears to be occurring with points.<br>
I will implement it as you have suggested below for now, but perhaps
this is something that should be fixed as well, or perhaps I am just
doing something wrong with the points :-p</div></blockquote></div><br>It seems to be working fine for me with points too - can you paste me a simple example when it doesn&#39;t work? You can also take a look at the debugging output from QGIS - if writer&#39;s addAttribute() function fails, it should give some debugging message.<br>
<br>Martin<br><br></div>