Skip to content
Permalink
Browse files

Merge pull request #2566 from radosuav/processing_fixes

[Processing] Three small fixes
  • Loading branch information
volaya committed Dec 15, 2015
2 parents 08a8b60 + 9096a64 commit 4fbf4cf3ad069359ab494800f4cefec7e39a5a4b
@@ -161,7 +161,7 @@ def getFileFilter(self, alg):

def getDefaultFileExtension(self, alg):
supported = alg.provider.getSupportedOutputRasterLayerExtensions()
default = ProcessingConfig.getSetting(ProcessingConfig.DEFAULT_OUTPUT_VECTOR_LAYER_EXT)
default = ProcessingConfig.getSetting(ProcessingConfig.DEFAULT_OUTPUT_RASTER_LAYER_EXT)
ext = default if default in supported else supported[0]
return ext

@@ -148,7 +148,8 @@ def addToRegion(self, layer, first):
def useLayerExtent(self):
CANVAS_KEY = 'Use canvas extent'
extentsDict = {}
extentsDict[CANVAS_KEY] = iface.mapCanvas().extent()
extentsDict[CANVAS_KEY] = {"extent": iface.mapCanvas().extent(),
"authid": iface.mapCanvas().mapRenderer().destinationCrs().authid()}
extents = [CANVAS_KEY]
layers = dataobjects.getAllLayers()
for layer in layers:
@@ -277,6 +277,10 @@ def getWidgetFromParameter(self, param):
bools = self.getAvailableValuesOfType(ParameterBoolean, None)
for b in bools:
item.addItem(self.resolveValueDescription(b), b)
if param.default:
item.setCurrentIndex(0)
else:
item.setCurrentIndex(1)
elif isinstance(param, ParameterSelection):
item = QComboBox()
item.addItems(param.options)

0 comments on commit 4fbf4cf

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