1

Question says it all. Looking to use the Raster > Analysis > Grid (Interpolation) tool in a python workflow, but need to be able to run it with the default of no specified algorithm. I can only find GDAL/OGR interpolation methods that already specify the algorithm in the processing toolbox.

GIS_Canuck
  • 299
  • 1
  • 9
  • You may need to directly call gdal_grid since the option to not specify an algorithm is not available in the Processing toolbox. – Joseph Dec 02 '16 at 10:41
  • @Joseph Where would I find documentation on which parameters to use (other than the gdal_grid instructions for use in the command line)? I'm assuming processing.runalg("qgis:analysis:gdal_grid", [input points],[interpolation field],[output raster]) isn't enough? – GIS_Canuck Dec 02 '16 at 14:17
  • Don't think that's possible to do as the processing plugin only lists those 4 tools. My guess would be you would need to call gdal_grid directly but I haven't used this. Here is a list of available gdal analysis tools. – Joseph Dec 02 '16 at 14:24
  • @Joseph Looking for other means of achieving the same results. Do you have any experience with calling plugins from processing scripts? Would be interested in using the "Raster Interpolation" plugin instead, as it seems to be giving me expected results – GIS_Canuck Dec 02 '16 at 14:32
  • Unfortunately, I do not. There are a number of other posts in calling that very same plugin from the python console. See How to call the interpolation plugin from the python console? and the linked posts. – Joseph Dec 02 '16 at 14:36
  • Thanks for the help anyway. I think I'm going to use the SAGA IDW Interpolation tool from the processing toolbox. Makes life easier, and I'm starting to get similar results as from the gdal_grid. – GIS_Canuck Dec 02 '16 at 14:40
  • Most welcome and nice one, hope you get the results you're looking for ;) – Joseph Dec 02 '16 at 14:41

0 Answers0