mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	Merge pull request #2006 from NaturalGIS/grass7_better_default_raster_resolution
better GRASS7 default raster resolution and fix r.composite
This commit is contained in:
		
						commit
						c79dd9d15b
					
				@ -194,7 +194,7 @@ class Grass7Algorithm(GeoAlgorithm):
 | 
			
		||||
                            )
 | 
			
		||||
 | 
			
		||||
        if cellsize == 0:
 | 
			
		||||
            cellsize = 1
 | 
			
		||||
            cellsize = 100
 | 
			
		||||
        return cellsize
 | 
			
		||||
 | 
			
		||||
    def processAlgorithm(self, progress):
 | 
			
		||||
@ -359,18 +359,19 @@ class Grass7Algorithm(GeoAlgorithm):
 | 
			
		||||
                outputCommands.append('g.region raster=' + out.name
 | 
			
		||||
                                      + uniqueSufix)
 | 
			
		||||
                if self.grassName == 'r.composite':
 | 
			
		||||
                    command = 'r.out.tiff -t --verbose' # FIXME r.out.tiff deprecated, use r.out.gdal
 | 
			
		||||
                    command = 'r.out.gdal -c createopt="TFW=YES,COMPRESS=LZW"'
 | 
			
		||||
                    command += ' input='
 | 
			
		||||
                    command += out.name + uniqueSufix
 | 
			
		||||
                    command += ' output="' + filename + '"'
 | 
			
		||||
                    commands.append(command)
 | 
			
		||||
                    outputCommands.append(command)
 | 
			
		||||
                else:
 | 
			
		||||
                    command = 'r.out.gdal -c createopt="TFW=YES,COMPRESS=LZW"'
 | 
			
		||||
                    command += ' input='
 | 
			
		||||
 | 
			
		||||
                if self.grassName == 'r.horizon':
 | 
			
		||||
                    command += out.name + uniqueSufix + '_0'
 | 
			
		||||
                elif  self.grassName == 'r.composite':
 | 
			
		||||
                    commands.append(command)
 | 
			
		||||
                    outputCommands.append(command)
 | 
			
		||||
                else:
 | 
			
		||||
                    command += out.name + uniqueSufix
 | 
			
		||||
                    command += ' output="' + filename + '"'
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user