I am making a buffer analisys in a standalone script. Is it possible to automatically during the analisys add index to the output vector layer (".qix" file)?
I tried to add after the analisys like in QGIS2:
layer_out = QgsVectorLayer(out, out[-7:-4],'ogr')
where out is a path to shapefile, out[-7:-4] the shapefile name. However in QGIS 3.2 Bonn, I got the error message:
AttributeError: 'QgsVectorLayer' object has no attribute 'createSpatialIndex'
If an automated way of creating index during analisys is not possible, how to create it after it in standalone script?