Skip to content
Permalink
Browse files

Whitespace fix

  • Loading branch information
nyalldawson committed Jan 18, 2016
1 parent 1e3172e commit 7e90d5773f866634a2818ba21759f3bdaa36bc55
@@ -58,6 +58,7 @@ def __init__(self, alg):
QgsMapLayerRegistry.instance().layerWasAdded.connect(self.mainWidget.layerAdded)
QgsMapLayerRegistry.instance().layersWillBeRemoved.connect(self.mainWidget.layersWillBeRemoved)


class GdalParametersPanel(ParametersPanel):

def __init__(self, parent, alg):
@@ -143,5 +143,3 @@ class LogEntry:
def __init__(self, date, text):
self.date = date
self.text = text


@@ -86,7 +86,6 @@ def __init__(self, alg):
QgsMapLayerRegistry.instance().layerWasAdded.connect(self.mainWidget.layerAdded)
QgsMapLayerRegistry.instance().layersWillBeRemoved.connect(self.mainWidget.layersWillBeRemoved)


def runAsBatch(self):
dlg = BatchAlgorithmDialog(self.alg)
dlg.show()
@@ -223,7 +223,6 @@ def setValueInWidget(self, widget, value):
elif isinstance(widget, CrsSelectionPanel):
widget.setAuthId(value)


def save(self):
toSave = []
for row in range(self.tblParameters.rowCount()):
@@ -85,4 +85,3 @@ def updateForOptions(self, options):
pass
self.options = options
self.setSelectedItems(selectedoptions)

@@ -89,20 +89,23 @@ def getVectorLayers(shapetype=[-1], sorting=True):
else:
return vector


def canUseVectorLayer(layer, shapetype):
if layer.type() == QgsMapLayer.VectorLayer and layer.dataProvider().name() != "grass":
if (layer.hasGeometryType() and
(shapetype == ALL_TYPES or layer.geometryType() in shapetype)):
return True
return False


def canUseRasterLayer(layer):
if layer.type() == QgsMapLayer.RasterLayer:
if layer.providerType() == 'gdal': # only gdal file-based layers
return True

return False


def getAllLayers():
layers = []
layers += getRasterLayers()

0 comments on commit 7e90d57

Please sign in to comment.
You can’t perform that action at this time.