[Qgis-developer] Where are the points?

Pēteris Brūns pb at sungis.lv
Thu Dec 6 00:36:25 PST 2012


Hi,

try to open your Spatialite db and add layer without plugin. If then 
also are missing some geometries can be problems with your Spatialite 
database indexes.

Regards,

On 2012.12.06. 10:22, Tim Sutton wrote:
> Hi
>
>
> On Thu, Dec 6, 2012 at 8:47 AM, Justin Hubbard 
> <justin at pyrotechsoftware.com <mailto:justin at pyrotechsoftware.com>> wrote:
>
>     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?)
>
>
> Justin it is always better to provide code samples (as plain text)  - 
> it makes it much easier to help you as we can see exactly what you are 
> doing....
>
>
> Did you commit your changes to the dataset?
>
> Regards
>
> Tim
>
>
>     On Wed, Dec 5, 2012 at 8:35 PM, Ian Packham <i.packham at ucd.ie
>     <mailto: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
>         <mailto: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
>         <mailto: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 <tel:%2B27%20%280%2979%20827%201657>
>
>     	
>
>       Fax:
>
>     	
>
>     +27 (0)86 540 6016 <tel:%2B27%20%280%2986%20540%206016>
>
>     	
>
>       Email:
>
>     	
>
>     justin at pyrotechsoftware.com
>     <mailto:robert at plannermunicipalsoftware.co.za>
>
>     	
>
>     Web Site:
>
>     	
>
>     www.pyrotechsoftware.co <http://www.plannermunicipalsoftware.co.za/>m
>
>
>
>     _______________________________________________
>     Qgis-developer mailing list
>     Qgis-developer at lists.osgeo.org <mailto:Qgis-developer at lists.osgeo.org>
>     http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
>
>
> -- 
> Tim Sutton - QGIS Project Steering Committee Member (Release Manager)
> ==============================================
> Please do not email me off-list with technical
> support questions. Using the lists will gain
> more exposure for your issues and the knowledge
> surrounding your issue will be shared with all.
>
> Visit http://linfiniti.com to find out about:
>  * QGIS programming and support services
>  * Mapserver and PostGIS based hosting plans
>  * FOSS Consulting Services
> Skype: timlinux
> Irc: timlinux on #qgis at freenode.net <http://freenode.net>
> ==============================================
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer


-- 
Pēteris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20121206/007808c9/attachment.html>


More information about the Qgis-developer mailing list