[Qgis-developer] What happens with shapefile spatial indices (QIX) when editing?

Even Rouault even.rouault at spatialys.com
Fri Dec 16 01:58:47 PST 2016


Hi

> 
> I was just wondering about spatial indices for shape files in QGIS. If I
> edit a shapefile with an index (QIX), lets say move a point, and then save
> the layer. What will happen to the spatial index?

Should be deleted.

> 
> If I create a point shape file I QGIS 2.18.1, create a spatial index, add a
> point, save the layer, then the QIX file is gone. Shouldn't it be updated
> to match the geometry changes instead?

Ideally, but the update of an existing .qix isn't implemented, so for now, you'd have to 
recreate it from scratch each time, which could take some time.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20161216/0d0abb42/attachment.html>


More information about the Qgis-developer mailing list