I'm trying to create a one-sided buffer from a polyline shapefile using ogr2ogr command line and a virtual file. However, it only creates a .dbf file and not the shapefiles. Here's the code:
ogr2ogr -sql "SELECT ST_Buffer(A.geometry,50, 'right') AS geometry, A.* FROM Polyline A" -dialect SQLITE Buffer.shp input.vrt
I have to mention that this code works fine when not putting the 'right' or 'left' parameters.