1

I have the following script that it keeps on crashing. How can I find a solution to this issue?

import pandas as pd 
import processing 
from PyQt5.QtCore import * 
from PyQt5.QtGui import *

resol=0.0007

uri = 'file:///'+FolderPath.csv?delimiter=,&crs=epsg:4326&xField=longitude&yField=latitude' csv_file = QgsVectorLayer(uri, FolderPath, 'delimitedtext') QgsProject.instance().addMapLayer(csv_file)

parameters_Red = {
    'input' : csv_file,
    'npoints' : 1000,
    'power' : 2,
    'column' : 'Value',
    'rcolumn' : '128:000:000',
    'GRASS_REGION_PARAMETER' : 'Xcoord1, Xcoord2, Ycoord1,Ycoord2 [EPSG:4326]',
    'GRASS_REGION_CELLSIZE_PARAMETER' : resol,
    'GRASS_RASTER_FORMAT_OPT' : '',
    'GRASS_RASTER_FORMAT_META' : '',
    'GRASS_SNAP_TOLERANCE_PARAMETER' : 1,
    'GRASS_MIN_AREA_PARAMETER' : 0.1,
    'error':'TEMPORARY_OUTPUT',
    'output' : 'FolderPath/GRASS_OUTPUT1.tif'}

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

`
  • If you remove all the parameters and algorithm, is the layer loaded? – Gabriel De Luca Jan 8 at 2:07
  • Yes the layer is loaded perfectly, even the code is running but it crashes stopping the script afterward. – Lush_coding Jan 8 at 2:09

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.