Skip to main content

New answers tagged

0 votes

Save processing modeler output layers to project folder/relative path?

If you want to save all output files to the same folder in the project directory you can enter the expression @project_home || '//output' as output directory in an algorithm. The folder "output&...
brauer-t's user avatar
1 vote

Saving processing results in file with QGIS Modeler

It is possible to save processing results as .gpkg to a dynamic filepath and directly load the newly created layer to the project : The expression I used is: file_path(@csv) ||'/'||base_file_name(@...
brauer-t's user avatar
4 votes

Creating table from polygon or closed polylines in QGIS

You could use the "Create Grid" Tool. In my simple example, I only have one polygon in my layer so I could simply calculate the extent of the grid from the layer: This results in this grid: ...
juto96's user avatar
  • 1,068
1 vote

QGIS Processing SAGA nextgen provider does not find SAGA folder

I work with a network Windows profile. It seems that the plugin tries to run CDM from a UNC path (my Document folder): but it doesn't work. I added cwd = SagaUtils.sagaPath() to the plugin util.py ...
Giovanni's user avatar
  • 113
1 vote

Update processing scripts in QGIS 3

possible workaround, run script in the python console: qgis.utils.run_script_from_file('filepath/filename.py')
S_V's user avatar
  • 11
0 votes

Using memory layer as input with processing runalg in PyQGIS

As simple as: temp_layer = processing.run("native:reprojectlayer", {'INPUT': r'C:\filename1.shp', 'TARGET_CRS': ...
Comrade Che's user avatar
  • 8,208
2 votes
Accepted

Add in content of text file in algorithm dialog in Processing tools text box

To use a custom widget in a processing algorithm you need to create a custom widget class (use QWidget not QDialog) and a widget wrapper class. The WidgetWrapper class needs to have a createWidget() ...
Ben W's user avatar
  • 23.1k
2 votes
Accepted

Running PyQGIS processing algorithms within FME PythonCaller

Try import processing within the input method. The name error processing is appearing undefined so this seems like a scoping problem. Header imports are global, but those in init appear to be only ...
MorrisAJ33's user avatar

Top 50 recent answers are included