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.

  • 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 2 '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 2 '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 2 '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 2 '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 2 '16 at 14:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.