Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing -lco parameter in gdal console call #27102

Closed
qgib opened this issue Jun 26, 2018 · 2 comments
Closed

Missing -lco parameter in gdal console call #27102

qgib opened this issue Jun 26, 2018 · 2 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms

Comments

@qgib
Copy link
Contributor

qgib commented Jun 26, 2018

Author Name: João Gaspar (@jonnyforestGIS)
Original Redmine Issue: 19274
Affected QGIS version: 3.2
Redmine category:processing/ogr


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.


@qgib
Copy link
Contributor Author

qgib commented Jun 27, 2018

Author Name: Alexander Bruy (@alexbruy)


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

@qgib
Copy link
Contributor Author

qgib commented Jun 27, 2018

Author Name: João Gaspar (@jonnyforestGIS)


Hi Alexander,
thank you for the explanation.

Regards,
Joao


  • status_id was changed from Open to Closed

@qgib qgib closed this as completed Jun 27, 2018
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

1 participant