mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[processing]code cleaning
This commit is contained in:
parent
2d601445d7
commit
865cb6208d
@ -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):
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user