<div dir="ltr"><div>I guess more better is to use this extremely simple batch and create all the index in one step only.<br>sing the gdal/ogr from osgeo4w.<br><br><a href="http://trac.osgeo.org/gdal/wiki/BatchCreationIndexesForShapefilesOnDOS">http://trac.osgeo.org/gdal/wiki/BatchCreationIndexesForShapefilesOnDOS</a><br>
<br></div>Regards,<br><br><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-27 10:47 GMT+01:00 kimaidou <span dir="ltr"><<a href="mailto:kimaidou@gmail.com" target="_blank">kimaidou@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi list,<br><br></div>I have some concerns about spatial indexes in QGIS. Spatial indexes are very usefull, and for me rather mandatory as soon as you deal with more than 100 features.<br>
<br><br></div>
<div>I would like to share some ideas about them :<br><br></div><div>1) Extend QGIS so that it can create spatial indexes for more vector format. If I am correct, for now only Shapefiles and Database vector layers can have a spatial index created by QGIS . Why not for GeoJson, CSV files, etc ?<br>
<br></div><div>2) If possible, create a spatial index for each vector layer added to the canvas if no one is already present. Since it is a quite fast operation, the small time needed is worth it. <br><br></div><div>3) If possible, update the spatial index (replace the old qix by a new one) every time the vector layer is updated. No need to do so for database layers, but this can be very usefull for big shapefiles. I have seen some people creating a spatial index, then as time passes, they add more and more data into the shapefile but forget to update the spatial index. Sometimes this can lead to some data not displayed in QGIS because QGIs seems to rely on the outdatedSpatial index.<br>
<br></div><div>For me, using spatial indexes is like brushing my teeth : I do it very often without even thinking of it. But many users do not know that spatial indexes exists, or do it but forget to use them as needed. I really think QGIS should help them to improve perfs in the background.<br>
<br></div><div>Regards<br></div><div>Michael<br></div></div>
<br>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br></blockquote></div><br><br clear="all"><br>-- <br>-----------------<br>Andrea Peri<br>
. . . . . . . . . <br>qwerty אטלעש<br>-----------------<br>
</div>