Skip to content

Commit

Permalink
[processing] indentation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Dec 16, 2014
1 parent 901c764 commit 2363ae5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions python/plugins/processing/algs/gdal/ogr2ogrtopostgis.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,15 @@ def defineCharacteristics(self):
'localhost', optional=False))
self.addParameter(ParameterString(self.PORT, 'Port',
'5432', optional=False))
self.addParameter(ParameterString(self.USER, 'Username',
self.addParameter(ParameterString(self.USER, 'Username',
'', optional=False))
self.addParameter(ParameterString(self.DBNAME, 'Database Name',
'', optional=False))
self.addParameter(ParameterString(self.PASSWORD, 'Password',
'', optional=False))
self.addParameter(ParameterString(self.SCHEMA, 'Schema name',
'public', optional=True))
self.addParameter(ParameterString(self.TABLE, 'Table name, leave blank to use input name',
self.addParameter(ParameterString(self.TABLE, 'Table name, leave blank to use input name',
'', optional=True))
self.addParameter(ParameterString(self.PK, 'Primary Key',
'id', optional=True))
Expand Down Expand Up @@ -188,9 +188,9 @@ def processAlgorithm(self, progress):
arguments.append(dimstring)
arguments.append(ogrLayer)
if index:
arguments.append(indexstring)
arguments.append(indexstring)
if launder:
arguments.append(launderstring)
arguments.append(launderstring)
if append:
arguments.append('-append')
if addfields:
Expand Down Expand Up @@ -223,11 +223,11 @@ def processAlgorithm(self, progress):
arguments.append(regionCoords[1])
arguments.append(regionCoords[3])
if clip:
arguments.append('-clipsrc spat_extent')
arguments.append('-clipsrc spat_extent')
if skipfailures:
arguments.append('-skipfailures')
arguments.append('-skipfailures')
if where:
arguments.append(wherestring)
arguments.append(wherestring)
if len(simplify) > 0:
arguments.append('-simplify')
arguments.append(simplify)
Expand Down
12 changes: 6 additions & 6 deletions python/plugins/processing/algs/gdal/ogr2ogrtopostgislist.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def defineCharacteristics(self):
'EPSG:4326'))
self.addParameter(ParameterString(self.SCHEMA, 'Schema name',
'public', optional=True))
self.addParameter(ParameterString(self.TABLE, 'Table name, leave blank to use input name',
self.addParameter(ParameterString(self.TABLE, 'Table name, leave blank to use input name',
'', optional=True))
self.addParameter(ParameterString(self.PK, 'Primary Key',
'id', optional=True))
Expand Down Expand Up @@ -192,9 +192,9 @@ def processAlgorithm(self, progress):
arguments.append(dimstring)
arguments.append(ogrLayer)
if index:
arguments.append(indexstring)
arguments.append(indexstring)
if launder:
arguments.append(launderstring)
arguments.append(launderstring)
if append:
arguments.append('-append')
if addfields:
Expand Down Expand Up @@ -227,11 +227,11 @@ def processAlgorithm(self, progress):
arguments.append(regionCoords[1])
arguments.append(regionCoords[3])
if clip:
arguments.append('-clipsrc spat_extent')
arguments.append('-clipsrc spat_extent')
if skipfailures:
arguments.append('-skipfailures')
arguments.append('-skipfailures')
if where:
arguments.append(wherestring)
arguments.append(wherestring)
if len(simplify) > 0:
arguments.append('-simplify')
arguments.append(simplify)
Expand Down

1 comment on commit 2363ae5

@gioman
Copy link
Contributor

@gioman gioman commented on 2363ae5 Dec 16, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry for that, I may have to change editor as in the one I used the indentation seemed ok.

Please sign in to comment.