The problem appears with vector layers that contain geometries that containing duplicate node(s), it’s considered as an invalid geometry ?
When I select all features from the bounding box of the vector layer, lines of features that has a null geometry are not selected in the attribute table (I don’t have a problem with this shapefile). Thanks, Nejia De : Junior [mailto:del...@gmail.com] Envoyé : mercredi 21 janvier 2015 13:47 À : Nejia Ben Nasr Cc : 'qgis-developer' Objet : Re : [Qgis-developer] Problem when using spatial index weird, it worked for others. And if you spatially select all your features, are all the lines in the attribute table being selected? You haven't answered about checking geometry validity... Envoyé depuis mon HTC ----- Reply message ----- De : "Nejia Ben Nasr" <nejia.benn...@spaceyes3d.com> Pour : "'Junior'" <del...@gmail.com> Cc : "'qgis-developer'" <qgis-developer@lists.osgeo.org> Objet : [Qgis-developer] Problem when using spatial index Date : mer., janv. 21, 2015 13:30 Yes, even if I delete the .qix before saving !! Thanks, Nejia De : Junior [mailto:del...@gmail.com] Envoyé : mercredi 21 janvier 2015 13:23 À : Nejia Ben Nasr Cc : 'qgis-developer' Objet : Re : [Qgis-developer] Problem when using spatial index And if you delete the .qix before saving? And then recreate it... Envoyé depuis mon HTC ----- Reply message ----- De : "Nejia Ben Nasr" <nejia.benn...@spaceyes3d.com> Pour : "'Junior Delaz'" <del...@gmail.com> Cc : "'qgis-developer'" <qgis-developer@lists.osgeo.org> Objet : [Qgis-developer] Problem when using spatial index Date : mer., janv. 21, 2015 13:14 I already tried to save to anther shapefile and edit it (add, modify, remove features …) the .qix was automatically created and I get the same problem Thanks, Nejia De : Junior Delaz [mailto:del...@gmail.com] Envoyé : mercredi 21 janvier 2015 12:21 À : Nejia Ben Nasr Cc : qgis-developer Objet : Re: [Qgis-developer] Problem when using spatial index Some users [1] have already encountered this issue and i understood that it may be related to non correspondance between the number of rows in the .dbf file and number of geometry (some rows had no geometry). A simple "Save As.." to another shapefile has solved the problem. [1] http://georezo.net/forum/viewtopic.php?id=95143 (in french, sorry ) 2015-01-21 9:16 GMT+01:00 Nejia Ben Nasr <nejia.benn...@spaceyes3d.com>: Hi, Do you think that this problem is often caused by geometry problems? Thanks, Nejia De : Junior [mailto:del...@gmail.com] Envoyé : mardi 20 janvier 2015 13:41 À : Nejia Ben Nasr; 'qgis-developer' Objet : Re : [Qgis-developer] Problem when using spatial index Hi, Nejia, what about the validity of the geometry of your features? You can check with the tool in Vector menu > Geometry tools > check geometry validity Envoyé depuis mon HTC ----- Reply message ----- De : "Nejia Ben Nasr" < <mailto:nejia.benn...@spaceyes3d.com> nejia.benn...@spaceyes3d.com> Pour : "'qgis-developer'" < <mailto:qgis-developer@lists.osgeo.org> qgis-developer@lists.osgeo.org> Objet : [Qgis-developer] Problem when using spatial index Date : mar., janv. 20, 2015 13:03 I use QGIS 2.6.1 De : qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] De la part de Nejia Ben Nasr Envoyé : mardi 20 janvier 2015 09:39 À : qgis-developer Objet : [Qgis-developer] Problem when using spatial index Hi all, I load a shapefile, then I create a spatial index to maximize speed of zoom and navigate in the map. The problem is: when I zoom to any area feature appear and other doesn’t. And it seems To me that the spatial index is automatically created even when I delete the .qix file Best regards, Nejia
_______________________________________________ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer