In the context of QGIS/PyQGIS, I would like to hide the unselected features after performing for example a simple selection.
feature = layer.getFeatures().next()layer.setSelectedFeatures([feature.id()])
After running this commands a feature becomes highlighted. Besides, I'd like to hide the unselected features. How can I do that?
I believe this is possible because the Query Builder performs a filter that hides the undesired features.
Thank you very much.Alex
أكثر...
feature = layer.getFeatures().next()layer.setSelectedFeatures([feature.id()])
After running this commands a feature becomes highlighted. Besides, I'd like to hide the unselected features. How can I do that?
I believe this is possible because the Query Builder performs a filter that hides the undesired features.
Thank you very much.Alex
أكثر...