Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Making formatting consistent
- Loading branch information
Showing
with
7 additions
and
1 deletion.
-
+7
−1
python/plugins/processing/algs/gdal/Buffer.py
|
@@ -121,7 +121,13 @@ def getConsoleCommands(self, parameters, context, feedback, executing=True): |
|
|
|
|
|
other_fields = ',*' if other_fields_exist else '' |
|
|
|
|
|
arguments = [output, ogrLayer, '-dialect', 'sqlite', '-sql'] |
|
|
arguments = [ |
|
|
output, |
|
|
ogrLayer, |
|
|
'-dialect', |
|
|
'sqlite', |
|
|
'-sql' |
|
|
] |
|
|
if dissolve or fieldName: |
|
|
sql = 'SELECT ST_Union(ST_Buffer({}, {})) AS {}{} FROM "{}"'.format(geometry, distance, geometry, other_fields, layerName) |
|
|
else: |
|
|