mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	formatting fixes
This commit is contained in:
		
							parent
							
								
									24811af85f
								
							
						
					
					
						commit
						be07f239e9
					
				@ -85,7 +85,8 @@ class Ogr2OgrTableToPostGisList(OgrAlgorithm):
 | 
			
		||||
        self.addParameter(ParameterString(self.PK,
 | 
			
		||||
            self.tr('Primary key'), 'id', optional=True))
 | 
			
		||||
        self.addParameter(ParameterTableField(self.PRIMARY_KEY,
 | 
			
		||||
            self.tr('Primary key (existing field, used if the above option is left empty)'), self.INPUT_LAYER, optional=True))
 | 
			
		||||
            self.tr('Primary key (existing field, used if the above option is left empty)'),
 | 
			
		||||
            self.INPUT_LAYER, optional=True))
 | 
			
		||||
        self.addParameter(ParameterString(self.WHERE,
 | 
			
		||||
            self.tr('Select features using a SQL "WHERE" statement (Ex: column="value")'),
 | 
			
		||||
            '', optional=True))
 | 
			
		||||
@ -167,7 +168,7 @@ class Ogr2OgrTableToPostGisList(OgrAlgorithm):
 | 
			
		||||
            arguments.append(schemastring)
 | 
			
		||||
        if len(pk) > 0:
 | 
			
		||||
            arguments.append(pkstring)
 | 
			
		||||
        elif primary_key != None:
 | 
			
		||||
        elif primary_key is not None:
 | 
			
		||||
            arguments.append("-lco FID="+primary_key)
 | 
			
		||||
        if len(table) > 0:
 | 
			
		||||
            arguments.append('-nln')
 | 
			
		||||
@ -179,7 +180,7 @@ class Ogr2OgrTableToPostGisList(OgrAlgorithm):
 | 
			
		||||
        if len(gt) > 0:
 | 
			
		||||
            arguments.append('-gt')
 | 
			
		||||
            arguments.append(gt)
 | 
			
		||||
        if precision is False:
 | 
			
		||||
        if not precision:
 | 
			
		||||
            arguments.append('-lco PRECISION=NO')
 | 
			
		||||
        if len(options) > 0:
 | 
			
		||||
            arguments.append(options)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user