osc_generator/edit_environment.py
def clear_existing_attributes(self):
        """
        Clears all existing attribues in layer
        """
        current_features = [feat.id() for feat in self._layer.getFeatures()]
        self._data_provider = self._layer.dataProvider()
        self._data_provider.deleteFeatures(current_features)

        Clears all existing attribues in layer
        
Clears all existing attribues in layer
Clears all existing attribues in layer
def clear_existing_attributes(self):
        current_features = [feat.id() for feat in self._layer.getFeatures()]
        self._data_provider = self._layer.dataProvider()
        self._data_provider.deleteFeatures(current_features)
def clear_existing_attributes ( self ) : current_features = [ feat . id ( ) for feat in self . _layer . getFeatures ( ) ] self . _data_provider = self . _layer . dataProvider ( ) self . _data_provider . deleteFeatures ( current_features )
Clears all existing attribues in layer
Clears all existing attribues in layer
"""
        Clears all existing attribues in layer
        """
self