Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [qgis-modeler]

An application of QGIS used to develop models utilizing a large variety of powerful Geoprocessing tools via a GUI.

Filter by
Sorted by
Tagged with
1
vote
0answers
47 views

File overwrite error 22 in qgis graphical modeler while running modeler more than once [closed]

File overwrite error 22 'invalid file' in qgis graphical modeler while running modeler more than once, when system is restarted in there is no temporary file in qgis workspace then model runs fine and ...
2
votes
1answer
202 views

Adding output to existing shapefile using Modeler

now I try to automatize the creation of variable distance buffers for a line vector-layer with the help of the Graphic Modeler in QGIS. I don't want to save the buffer results as a new shapefile but ...
1
vote
1answer
123 views

Multiplying rasters by integers in processing modeler

I need to multiply several rasters by integers as a part of a multiple steps process. For this reason I'm using QGIS' Processing Modeler. I'm looking for something similar to the Raster calculator, ...
1
vote
0answers
38 views

How to workaround truncation of text description for elements in qgis-modeler 2.18.15?

I am trying to make a QGIS processing workflow through the Graphical Modeler (QGIS 2.18.15). I have completed it, and wish to export it as a *.PNG. However, the elements and algorithms I added to the ...
3
votes
1answer
211 views

Using aggregate function in QGIS graphical modeler?

I'm looking to create five fields of grouped means within 33 shapefiles. I'm using the Graphical Modeler to save me using the Field Calculator 5 x 33 times. The new fields are the means of the ...
2
votes
1answer
257 views

Accessing input layer properties from QGIS Modeler?

So I start my model by dragging an input layer, which in my case it happens to be a vector layer. Let's call it inputVectorLayer. Later on in the model I want to refactor this layer using the Refactor ...
2
votes
0answers
100 views

Run graphical modeler on multiple pairs of selected features

I have a shapefile of 10,000+ county polygons. Of these, I've identified ~5,000 that are geographically too small, and I want to combine with their immediate nearest neighbor, naming the combined ...
1
vote
0answers
97 views

Automatically reclassify grid into 5 classes using Processing

I am using the graphical modeler of QGIS to rasterize a vector, and then reclassify it automatically into 5 values, without the intervention of the user. I have reviewed the reclassify algorithm of ...
1
vote
1answer
108 views

Error with graphical modeler QGIS “not all arguments converted during string formatting”

I'm new to QGIS Graphical Modeler. I've used ArcMap model builder before and now trying out the Graphical Modeler in QGIS2.18.15. I tried creating a simple model where I create a buffer for a line ...
1
vote
0answers
48 views

Python error on previously working model

I have a model built that's adding columns to a vector layer and creating a fixed width buffer layer. Everything was working fine, but now when I go to edit the model it won't open and I'm receiving ...
2
votes
0answers
216 views

Handing a Bounding Box (bbox) to an overpass query

I would like to incorporate the results of overpass-queries into a model, which in the end gives me a clipped union of these results (all roads within a specific area). The challenge is to automate ...
0
votes
1answer
133 views

QGIS - Script for Process Modeler, Output = Extent

just played arround a little bit with the process modeler and scripts to automate a simple workflow. I have created a simple script that should get the extent of the current layer, and then increase ...
1
vote
2answers
133 views

Restart autoincremental numbering by unique values

I'm using the graphic modeler and 'Add unique value index field' algorithm to assign IDs to unique records in a vector layer which works great, but then I want to add a 2nd field that will ...
1
vote
0answers
73 views

Python IndentationError when trying to edit graphical modeler in QGis. Can it be fixed?

I am trying to edit a model I built in the QGis graphical modeler and I get the following error. IndentationError: unindent does not match any outer indentation level 2017-11-27T14:53:42 1 ...
1
vote
1answer
182 views

create a model that allows the user to set parameters in algorithms

I am trying to create a model in the graphical modeler of QGIS in which the user can configure the parameters of some algorithms, as in the Model Builder. Is it possible in QGIS?
1
vote
0answers
311 views

How do you use the parent algorithm tools in Extract by location process modeler algorithm?

I am trying to get the Extract by Location algorithm to work in the process modeler but I can not figure out which algorithms to include in the parent algorithm in order to get it to work. I've ...
2
votes
1answer
260 views

Dissolve by group and get the lowest or highest in other field

I've got the next table of attributes: I want to perform a dissolve by the first column (date) and get: - Earliest value by group in the second column. - Latest value by group in the third column. ...
2
votes
1answer
400 views

QGIS batch processing does not allow the output from an algorithm as the input to a subsequent algorithm

Using QGIS 2.18.14, Windows 10, I need help with Batch Processing. I have created this simple model with just two algorithms, a reproject followed by polygon centroids: When I try to run this model ...
3
votes
1answer
3k views

Split a vector layer based on attribute value?

I have read the question and comments on: Splitting shapefile into separate files for each feature using QGIS/GDAL/SAGA? that can be seen here: Splitting shapefile into separate files for each ...
1
vote
0answers
548 views

How to use v.net.connect & v.net.distance in QGIS graphical modeler?

I have been attempting to run the v.net.distance GRASS algorithm on vector layers in QGIS (2.18.12, on Windows) unsuccessfully. I assume that to prior to using this algorithm, you must connect each ...
1
vote
0answers
82 views

Processing Model in a standalone PyQGIS script [duplicate]

I have the same problem as in Why can't I use processing algorithms in a standalone PyQGIS script? I know the question is not really up-to-date but does someone have an answer? I've defined a ...
2
votes
2answers
629 views

How to get extent of raster in QGIS Modeler?

In my journey to solve a different question, I've decided to create a QGIS processing model to automatically correlate rasters to a projection (UTM) grid. The inputs are a raster file and the UTM ...
4
votes
0answers
79 views

Model script works in QGIS 2.14 but not 2.18 [closed]

I created a model that worked fine in QGIS 2.14. With help I included a script in the model that prevented the model from running unless a feature was selected. But after upgrading to 2.18 the model ...
3
votes
1answer
121 views

Deleting input shapefile after being used in QGIS modeler

I have a shapefile that is being used as an input into the start of a model. The model is very simple but makes up a much larger model. The input is reprojected in the first step but is not needed ...
1
vote
0answers
192 views

Extract by location not working in qgis modeler

I am trying to extract lines to a new layer that don't fall 100% within a polygon. I want to leave out anything that does. I can not get extract by location to work in the modeler, it does work when ...
2
votes
1answer
935 views

Fix Processing AttributeError: 'NoneType' object has no attribute 'getCopy'

I have a problem with processing plugin of QGIS 2.13 and in particular with its Modeler. When I have tried an operation, this is the log error: *An error has occurred while executing Python code: ...
2
votes
2answers
765 views

Select by location is not working in the processing modeler

When I run the modeler in qgis 2.14 I get no results from the select by location algorithm. I tried outputting my buffer polygon and using the select by location plugin and it worked fine. I have ...
1
vote
1answer
111 views

Missing toolbar menu from Processing Modeler QGIS

Does anyone know how to I may have turned off the algorithms and inputs tool menus in the modeler? I have not been able to figure out how to get it turned back on.
3
votes
1answer
154 views

QGIS Graphic Modeler not including all GRASS algorithms - How to include v.out.ogr?

I'm using QGIS 2.18,12 with the GRASS module 7.2.1 on Windows. When building a model in QGIS , I am not able to see all the algorithms possible under thr GRASS module, that are indeed available within ...
1
vote
1answer
425 views

How to refer to a variable using field calculator in QGIS modeler

I need to use a variable inside field calculator in modeler in Qgis and don't know how @variable and variable doesn't work.
2
votes
1answer
353 views

'Select by Attribute' works outside of Graphic Modeler, but not within

I'm setting up a graphic modeler to handle three vector layers and one raster layer. In the end, I hope to vectorize the raster and merge the other three into one coverage. The raster file is a slope ...
4
votes
1answer
110 views

Decimal Numbers in the Graphical Modeler

How do I set up an input field that accepts decimal numbers in the QGIS graphical modeler?
2
votes
1answer
186 views

Vector Grid, Graphical Modeler & Input Extent

I created my process in QGIS graphic interface with treatments. In my process I need to create a vector grid. This algorithm allows a vector layer to define my extent. But in the graphical modeler I ...
4
votes
1answer
132 views

QGIS 2.99.0-149 modeler inputs Feature Source vs. Vector Layer

In QGIS 2.99.0 modeler, there is a obviously a new input type called Feature Source, wich does what Vector Layer did in previous versions (but Vector Layer is still available): New behaviour, as can ...
1
vote
1answer
203 views

QGIS 2.99.0 Providers not available in processing options

I just wanted to have a deeper look at the graphical modeller in QGIS 2.99.0-147, and I stumbled upon the providers not available under Settings|Options...|Processing|Providers as shown in the ...
5
votes
0answers
133 views

Creating Viewsheds in Graphic Modeler

I am trying to use Graphic Modeler to run viewsheds. As I can’t appear to use the Viewshed Analysis plugin tool in Graphic Modeler and I instead need to use the GRASS command r.viewshed. I am ...
7
votes
1answer
210 views

QGIS Graphical Modeler Add Specific files

When I create a model in the Graphical Modeler Tool I need to add layers using ‘Add File’. When I run the script, I have to add the same files each time (Which can lead to adding numerous files). ...
2
votes
1answer
229 views

QGIS treatment modeler to python script

I'm trying to make a little tool who do a concave hull, and calculate its surface in a new field. I'm not a python pro, so I began with treatment modeler like this : It works very well ! But I have ...
7
votes
1answer
273 views

Two Selections from one Layer in Processing Modeller

I have the following problem: I try to do two parallel selections. For this I have applied before the "extract by location" algorithm. Now I would like to execute in the next step from this layer two ...
2
votes
0answers
139 views

How to make a database to be a model parameter in QGIS?

I built a model in QGIS that imports vector into PostGIS database. My only problem is that I can choose which database I would like to import my data into but only if I rightclick on the model and ...
5
votes
1answer
193 views

How to use Replace function in a custom script?

I would like to use Replace function in a QGIS model but it doesn't work as I wish. I was working with Joseph's brilliant solution (using a custom script in a model) but I couldn't find out how to ...
5
votes
2answers
582 views

Run QGIS Model on selected features only?

Would it be possible to run a script in a QGIS model so that it only runs on selected features from an input layer? I don't want to use the option in the toolbox options as I have other models that ...
3
votes
1answer
136 views

Ensure model runs from a specific layer?

I have some models for various routines but I really want them to run on a specific layer. I don't want to be able to run the model with any input layer as if done so by accident it can mean crashing ...
3
votes
2answers
176 views

Copying features from one class to another using QGIS modeler?

How do I copy some features from one class to another in QGIS modeller? In ArcGIS it was just "Copy features", but I cannot find it in QGIS.
0
votes
0answers
44 views

Losing CRS by using grass tools in the modeler

maybe this question has been already answered by somebody. I'm using the graphical modeler alot. A main issue is that some tools (I guess it's the grass tools) are producing results without the ...
1
vote
1answer
457 views

How do I use “execute SQL” from QGIS graphical modeler?

I have a points layer representing road gullies and a non-spatial table of gully inspection data, both stored in a postGIS database. I would like to create a QGIS model to perform some repetitive ...
4
votes
1answer
681 views

Programmatically naming outputs from the QGIS Modeler?

I am attempting my first use of the modeler from the Graphical Modeler from the Processing menu in QGIS (2.18.3). I made a simple model for using meanshift segmentation. It just has a raster input and ...
5
votes
1answer
520 views

QGIS Count lines in polygon ( to be part of a graphical model )

My problem is very easy to understand but I can't find a solution. I'm actually working on the spreading of a local optic fibre network. These fibres will be contained in plastic tubes buried in ...
1
vote
1answer
243 views

Different buffer distance left and right form line?

I'm trying to make different buffer zones, left and right from the line. I made processing model (picture). I can do this with this module, but I can not specify the value that I want. I am executing ...
2
votes
2answers
290 views

Simplifying processing modeler?

I'm running a process that requires me to change the amount of data input depending on the situation. With my current system I need to have a separate model depending on the number of files I need to ...