Skip to content
Permalink
Browse files

[processing] fix ofssfet curve algorithm

  • Loading branch information
alexbruy committed Dec 28, 2016
1 parent 102ee87 commit e1af0716ea801298fb8af9acf351338a24e19d48
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/algs/gdal/ogr2ogronesidebuffer.py
@@ -113,12 +113,12 @@ def getConsoleCommands(self):
if operation == 0:
sql = "SELECT ST_Union(ST_SingleSidedBuffer({}, {}, {})), * FROM '{}'".format(geometry, distance, leftright, layername)
else:
sql = "SELECT ST_Union(ST_OffsetCurve({}, {}, {})) * FROM '{}'".format(geometry, distance, leftright, layername)
sql = "SELECT ST_Union(ST_OffsetCurve({}, {})) * FROM '{}'".format(geometry, distance, layername)
else:
if operation == 0:
sql = "SELECT ST_SingleSidedBuffer({},{},{}), * FROM '{}'".format(geometry, distance, leftright, layername)
else:
sql = "SELECT ST_OffsetCurve({}, {}, {}), * FROM '{}'".format(geometry, distance, leftright, layername)
sql = "SELECT ST_OffsetCurve({}, {}), * FROM '{}'".format(geometry, distance, layername)

if field is not None:
sql = '"{} GROUP BY {}"'.format(sql, field)

0 comments on commit e1af071

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