1

I have a point shapefile I am trying to run the GRASS v.surf.idw tool on in python. Here is a link to the data: https://github.com/tanyahelena/qgis_data

I have a short script which runs. I don't get an error message, but I also get no result. What am I doing wrong?

import processing

parameters = {
    'input' : '/Users/ep9k/Desktop/qgis_data-master/area3_testdata_clipped.shp',
    'npoints' : 12,
    'power' : 2,
    'column' : 'PDOP',
    'GRASS_REGION_PARAMETER' : '-116.04415744105579,-116.0047567429083,37.029018114312905,37.054281406967974 [EPSG:4326]',
    'GRASS_REGION_CELLSIZE_PARAMETER' : 0,
    'GRASS_RASTER_FORMAT_OPT' : '',
    'GRASS_RASTER_FORMAT_META' : '',
    'GRASS_SNAP_TOLERANCE_PARAMETER' : -1,
    'GRASS_MIN_AREA_PARAMETER' : 0.0001,
    'output' : '/Users/ep9k/Desktop/GRASS_OUTPUT.tif'}

processing.runAndLoadResults('grass7:v.surf.idw', parameters)

I have been able to run the tool using the 'IDW Interpolation' tool, native to QGIS but I struggle with GRASS tools.

closed as off-topic by PolyGeo May 31 at 10:22

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This problem cannot or can no longer be reproduced. Changes to the system or to the asker's circumstances may have rendered the question obsolete, or the question does not include a procedure to enable potential answerers to reproduce the same symptoms. Such questions are off-topic as they are unlikely to help future readers, but editing them to include more details can lead to re-opening." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Are you running "QGIS Desktop 3.x with GRASS 7.x.exe"? – Joseph May 24 at 9:52
  • I'm using QGIS 3.4 and GRASS 7.4. Sorry I did not clarify that – Erich Purpur May 24 at 11:05
  • 1
    That's fine, your code works on QGIS 3.6 though so perhaps you could try updating your version? – Joseph May 24 at 11:12
  • I upgraded to 3.6 and it worked. Thanks @Joseph – Erich Purpur May 25 at 15:55