[Qgis-developer] Where are the points?
Justin Hubbard
justin at pyrotechsoftware.com
Wed Dec 5 22:47:41 PST 2012
Hi
I am using QGis 1.8.
The code I am using is identical to the code in the cookbook. I have also
tried doing this in the console. Same result.
When I create a new shapefile layer and add the points as described in the
code, they appear correctly.
However with this layer - Which is a Spatialite Layer I cannot see the
points at all.
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.
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?)
On Wed, Dec 5, 2012 at 8:35 PM, Ian Packham <i.packham at ucd.ie> wrote:
> Justin
>
> 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?
>
> Ian
>
>
> ----- Original Message -----
> From: Justin Hubbard <justin at pyrotechsoftware.com>
> Date: Wednesday, December 5, 2012 1:51 pm
> Subject: [Qgis-developer] Where are the points?
> To: qgis-developer <qgis-developer at lists.osgeo.org>
>
> > 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.
>
> > However when I try to zoom / Pan to them, they disappear.
> > If I run QgsFeature.isValid() they all return true. I just cannot
> understand it.
> >
> > --
>
> > Warm regards
> *> Justin Hubbard*
> >
> **
>
--
Warm regards
*Justin Hubbard*
*--*
*Justin Hubbard*
Software Engineer and Support
Mobile:
+27 (0)79 827 1657
Fax:
+27 (0)86 540 6016
Email:
justin at pyrotechsoftware.com <robert at plannermunicipalsoftware.co.za>
Web Site:
www.pyrotechsoftware.co <http://www.plannermunicipalsoftware.co.za/>m
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20121206/7961978e/attachment.html>
More information about the Qgis-developer
mailing list