Hi<div><br></div><div>I am using QGis 1.8. <br></div><div>The code I am using is identical to the code in the cookbook. I have also tried doing this in the console. Same result.</div><div>When I create a new shapefile layer and add the points as described in the code, they appear correctly. </div>
<div>However with this layer - Which is a Spatialite Layer I cannot see the points at all.</div><div><br></div><div>With regards to the symbology, I have tried new and old symbology, and even loading the layer in a blank project with no custom symbology at all. Same result.</div>
<div>If I use the map tool to create a point with the mouse the point appears, and works correctly. This is causing me to think that the error is in the code. (Perhaps Spatialite requires something extra?)</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Dec 5, 2012 at 8:35 PM, Ian Packham <span dir="ltr"><<a href="mailto:i.packham@ucd.ie" target="_blank">i.packham@ucd.ie</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Justin<br><br>Which version of QGIS are you using? Are you using code exactly as in the cookbook (Using Vector Layers chapter?)?. If not, can you provide the code? Also how did you create the symbology?<span class="HOEnZb"><font color="#888888"><br>
<br>Ian</font></span><div class="HOEnZb"><div class="h5"><br><br>----- Original Message -----<br>From: Justin Hubbard <<a href="mailto:justin@pyrotechsoftware.com" target="_blank">justin@pyrotechsoftware.com</a>><br>
Date: Wednesday, December 5, 2012 1:51 pm<br>Subject: [Qgis-developer] Where are the points?<br>To: qgis-developer <<a href="mailto:qgis-developer@lists.osgeo.org" target="_blank">qgis-developer@lists.osgeo.org</a>><br>
<br><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </font>In my plugin, I am able to create features as per the cookbook. And when I zoom to the layer extent I can see the points are there and they are rendered as per my symbology.<div>
<br></div><div><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </font>However when I try to zoom / Pan to them, they disappear.</div> <div><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </font>If I run QgsFeature.isValid() they all return true. I just cannot understand it.<br>
<div><div><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </font><br></div><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </font>-- <br>
<p><span style="font-family:verdana,geneva;font-size:x-small"><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </font>Warm regards</span><br><strong><span style="font-family:verdana,geneva;font-size:x-small"><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </font>Justin Hubbard</span></strong><br>
 <font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </font><br><strong><span style="font-family:verdana,geneva;font-size:x-small"></span></strong></p></div></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><p><span style="font-family:verdana,geneva;font-size:x-small">Warm regards</span><br><strong><span style="font-family:verdana,geneva;font-size:x-small">Justin Hubbard</span></strong><br>
<br><strong><span style="font-family:verdana,geneva;font-size:x-small">--</span></strong><br></p><table border="0" cellspacing="1" cellpadding="0" style="background-color:rgb(0,51,102);width:250px;height:217px"><tbody><tr>
<td style="margin:0px;padding:1.5pt;font-family:arial,sans-serif;background-color:white"><table border="0" cellpadding="0" style="background-color:white;width:241px;height:207px"><tbody><tr><td colspan="2" style="margin:0px;padding:0.75pt">
<table border="0" cellspacing="0" cellpadding="0" style="width:347px;height:212px"><tbody><tr style="min-height:10.5pt"><td width="14" valign="top" style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt"> </td><td style="margin:0px;padding:0in;min-height:10.5pt">
 <p dir="ltr" style="margin:0px;text-align:justify"> </p></td><td style="margin:0px;padding:0in;min-height:10.5pt"> <p dir="ltr" style="margin:0px;text-align:justify"><span style="font-family:verdana,geneva"><strong><span style="font-size:10pt;color:red">Justin Hubbard</span></strong></span></p>
<p dir="ltr" style="margin:0px;text-align:justify"><span style="font-size:7.5pt;color:rgb(0,51,102)">Software Engineer and Support<br><br></span></p></td></tr><tr style="min-height:10.5pt"><td width="14" valign="top" style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt">
<p style="margin:0px"> </p></td><td style="margin:0px;padding:0in;min-height:10.5pt"><p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:rgb(0,51,102)">  Mobile:</span></p></td><td style="margin:0px;padding:0in;min-height:10.5pt">
<p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:rgb(0,51,102)">  +27 (0)79 827 1657</span></p></td></tr><tr style="min-height:10.5pt"><td width="14" valign="top" style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt">
<p style="margin:0px"> </p></td><td style="margin:0px;padding:0in;min-height:10.5pt"><p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:rgb(0,51,102)">  Fax:</span></p></td><td style="margin:0px;padding:0in;min-height:10.5pt">
<p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:rgb(0,51,102)">  +27 (0)86 540 6016</span></p></td></tr><tr style="min-height:10.5pt"><td width="14" valign="top" style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt">
<p style="margin:0px"> </p></td><td style="margin:0px;padding:0in;min-height:10.5pt"><p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:rgb(0,51,102)">  Email:</span></p></td><td style="margin:0px;padding:0in;min-height:10.5pt">
<p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:navy">  <span style="color:blue"><span style="color:rgb(0,0,204)"><a title="Email Me" href="mailto:robert@plannermunicipalsoftware.co.za" target="_blank">justin@pyrotechsoftware.com</a></span></span></span></p>
</td></tr><tr style="min-height:10.5pt"><td width="14" valign="top" style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt"><p style="margin:0px"> </p></td><td style="margin:0px;padding:0in;min-height:10.5pt"><p style="margin:0px;line-height:10.5pt">
<span style="font-size:7.5pt;color:rgb(0,51,102)">  Web Site:</span></p></td><td style="margin:0px;padding:0in;min-height:10.5pt"><p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:navy">  <span style="color:blue"><span style="color:rgb(0,0,204)"><a title="About Me" href="http://www.plannermunicipalsoftware.co.za/" target="_blank">www.pyrotechsoftware.co</a>m</span></span></span></p>
</td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table><br>
</div>