Bug report #19274

Missing -lco parameter in gdal console call

Added by João Gaspar over 6 years ago. Updated over 6 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Processing/OGR
Affected QGIS version:3.2 Regression?:No
Operating System:Windows 7 64-bits Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:27102

Description

If you put parameters in Additional Creation Options box they don't assume the -lco in gdal/ogr console call.

See attach.
After the full fill the gdal/ogr call show this
ogr2ogr -f "CSV" "SEPARATOR=TAB WRITE_BOM=NO" C:/Users/jfgaspar/Desktop/teste/test.csv path_to_data_file layer_name

The right thing is:
ogr2ogr -f "CSV" -lco "SEPARATOR=TAB WRITE_BOM=NO" C:/Users/jfgaspar/Desktop/teste/test.csv path_to_data_file layer_name

The workaround is include the -lco before the parameters in the box of Additional Creation Options.

Tested in the tool Convert Format, Buffer Vectors, Clip Vector by Extent.

ogr2ogr_convert.PNG (28.3 KB) João Gaspar, 2018-06-26 10:41 PM

History

#1 Updated by Alexander Bruy over 6 years ago

For raster algorithms this already fixed. For vector algorithms, you should specify command-line switch by yourself, as there are several different types of creation options for vector algorithms: -lco, -dsco, -oo, -doo

#2 Updated by João Gaspar over 6 years ago

  • Status changed from Open to Closed

Hi Alexander,
thank you for the explanation.

Regards,
Joao

Also available in: Atom PDF