[processing]code cleaning

This commit is contained in:
Victor Olaya 2013-09-20 12:44:47 +02:00
parent 2d601445d7
commit 865cb6208d
2 changed files with 2 additions and 7 deletions

View File

@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
__author__ = 'Victor Olaya'
__date__ = 'August 2012'
@ -24,11 +23,9 @@ __copyright__ = '(C) 2012, Victor Olaya'
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'
from PyQt4.QtCore import *
from qgis.core import *
from processing.tools import dataobjects, vector
from processing.core.ProcessingLog import ProcessingLog
from processing.tools import vector
def buffering(progress, writer, distance, field, useField, layer, dissolve, segments):

View File

@ -22,7 +22,6 @@ __copyright__ = '(C) 2013, Victor Olaya'
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'
from processing.tools import dataobjects
from processing.core.ProcessingConfig import ProcessingConfig
from qgis.core import *
from PyQt4.QtCore import *
@ -37,8 +36,7 @@ def features(layer):
def __init__(self, layer):
self.layer = layer
self.iter = layer.getFeatures()
self.selection = False;
##self.layer.dataProvider().rewind()
self.selection = False;
if ProcessingConfig.getSetting(ProcessingConfig.USE_SELECTED):
self.selected = layer.selectedFeatures()
if len(self.selected) > 0: