Bug report #18013
Incorrect GDAL parameters generated in Grid Interpolate tool (via menu or Processing)
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | |||
Category: | Processing/GDAL | ||
Affected QGIS version: | 2.18.16 | Regression?: | No |
Operating System: | Windows 10 x64 | Easy fix?: | Yes |
Pull Request or Patch supplied: | No | Resolution: | fixed/implemented |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 25909 |
Description
When the GDAL based Interpolate function is run, the GDAL command generated does not match the parameters chosen in the tool dialog:
The attached screenshot shows the menu based Raster > Analysis > Grid (Interpolation)... dialog configuration. This is using the IDW interpolator with output in GeoTIFF, however the command line generated is as follows:
gdal_grid -l BathyODN_BNG -a invdist:power=2.0:smothing=0.0:radius1=0.0:radius2=0.0:angle=0.0:max_points=0:min_points=0:nodata=0.0 -of GMT C:/Local/Advanced_QGIS/Exercises/Data/Vector/Bathy/BathyODN_BNG.shp C:/Local/BathyInterp_InvDist.tif
Note that the smoothing parameter is misspelled, and also the output format (-of) is set to 'GMT', not 'GTiff' as requested. The latter generates an error when the tool is run.
When the same command is executed through Processing GDAL/OGR > [GDAL] Analysis > Grid (Inverse distance to a power), the same smothing -> smoothing typo is present, and the GDAL '-of' parameter is omitted entirely, meaning that a GeoTIFF is always generated regardless of the format and extension chosen in the dialog.
Associated revisions
[processing] fix typo in the parameter name (refs #18013)
[processing] pass '-of' parameter to gdal_grid algorithms (fix #18013)
History
#1
Updated by Giovanni Manghi over 6 years ago
- Status changed from Open to Feedback
Try the equivalent tool in the Processing toolbox, "gdaltools" is not mantained anymore and has been dropped in QGIS3.
#2
Updated by Andy Harfoot over 6 years ago
- Status changed from Feedback to Open
See the last paragraph in the original description - a similar set of errors arise in the equivalent Processing tool.
#3
Updated by Giovanni Manghi over 6 years ago
- Assignee set to Giovanni Manghi
- Category changed from GDAL Tools to Processing/GDAL
#4
Updated by Alexander Bruy over 6 years ago
- % Done changed from 0 to 100
- Status changed from Open to Closed
Applied in changeset qgis|b8e69075a680ef9eed5f2e297680f982d7f0864b.
#5
Updated by Giovanni Manghi over 6 years ago
- Resolution set to fixed/implemented