i guess that the spatial index should be created as usual, but, as you say, only including selected features if the Processing settings is configured to use only those ones.
I dont see any specific thing about it being a Processing algorithm, other than that. An even if you create it for the whole layer, it should be fine (although less efficient) Any particular problem that you are facing with this? 2016-06-14 12:54 GMT+02:00 Anita Graser <[email protected]>: > Hi, > > Some existing Processing algorithms could be faster by making use of a > spatial index, e.g. http://hub.qgis.org/issues/15012 > > What's the recommended way to implement a spatial index in a processing > algorithm to ensure consistent behavior with other tools (e.g. concerning > using only selected features)? > > Best wishes, > Anita > > > > _______________________________________________ > Qgis-developer mailing list > [email protected] > List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer _______________________________________________ Qgis-developer mailing list [email protected] List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
