Skip to content
Permalink
Browse files

[processing] reproject extent into input CRS where possible

  • Loading branch information
alexbruy committed Oct 11, 2017
1 parent 2c50fd8 commit 67265c64c1ee74a41163ceed5c7254dc466a22fc
@@ -107,7 +107,7 @@ def commandName(self):

def getConsoleCommands(self, parameters, context, feedback):
inLayer = self.parameterAsRasterLayer(parameters, self.INPUT, context)
bbox = self.parameterAsExtent(parameters, self.EXTENT, context)
bbox = self.parameterAsExtent(parameters, self.EXTENT, context, inLayer.crs())
nodata = self.parameterAsDouble(parameters, self.NODATA, context)
options = self.parameterAsString(parameters, self.OPTIONS, context)
out = self.parameterAsOutputLayer(parameters, self.OUTPUT, context)
@@ -75,7 +75,8 @@ def commandName(self):

def getConsoleCommands(self, parameters, context, feedback):
ogrLayer, layerName = self.getOgrCompatibleSource(self.INPUT, parameters, context, feedback)
extent = self.parameterAsExtent(parameters, self.EXTENT, context)
inLayer = self.parameterAsVectorLayer(parameters, self.INPUT, context)
extent = self.parameterAsExtent(parameters, self.EXTENT, context, inLayer.crs())
options = self.parameterAsString(parameters, self.OPTIONS, context)
outFile = self.parameterAsOutputLayer(parameters, self.OUTPUT, context)

0 comments on commit 67265c6

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