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
GDAL/OGR Convert Format, persistent/unwanted default output format #26755
Comments
Author Name: Nyall Dawson (@nyalldawson) The output format is automatically set based on the output file extension. It may be a silly question, but have you tried converting to a .gpx file destination? |
Author Name: Nyall Dawson (@nyalldawson)
|
Author Name: Lance Evans (Lance Evans) I had not as I'm trying to get temporary layer result. If I specify a GPX file for output, as opposed to leaving blank to create a temporary layer, it fails. Processing log gives: ERROR 4: Failed to create GPX file "somepath/outtest.gpx". ERROR 1: GPX driver failed to create "somepath/outtest.gpx" The line layer being used as input can be saved as a GPX file with no issues, but I can't seem to complete conversion with GDAL Convert Format/ogr2ogr. |
Author Name: Nyall Dawson (@nyalldawson) What's the gdal command when you try to export as gpx? |
Author Name: Lance Evans (Lance Evans) Using Convert Format from the Processing Toolbox, using no Additional Creation Options, and path/gpxtest.gpx as the converted file name, the console call shows: After running, the log shows the following was executed: |
Author Name: Nyall Dawson (@nyalldawson) Fixed in master
|
Author Name: Lance Evans (Lance Evans)
Original Redmine Issue: 18923
Affected QGIS version: 3.0.2
Redmine category:processing/ogr
{ INPUT: 'output_7', OPTIONS: '-f "GPX"', OUTPUT: 'C:/somepath/gdal_convertformat_1_gpxout.shp' }
GDAL command:
ogr2ogr -f "ESRI Shapefile" -f "GPX" "C:/somepath/gdal_convertformat_1_gpxout.shp" C:/somepath/INPUT.shp INPUT
Similarly, using the Convert Format from the Processing Toolbox and only adding [-f "GPX"] to the additional creation options yields the following in the console call:
ogr2ogr -f "ESRI Shapefile" -f "GPX" "C:/somepath/OUTPUT.shp" path_to_data_file layer_name
Finally, for QGIS 3, there appears to be no means of modifying the GDAL command window. The Processing Toolbox Convert Format shows the resulting command window, but it is not editable.
The text was updated successfully, but these errors were encountered: