Spatial data processing framework that brings advanced analysis capabilities to QGIS.

learn more… | top users | synonyms (2)

0
votes
0answers
26 views

Qgis network analysis why find vertex return always -1

I'm trying to compute the shortest path between points using the QGIS networkanalysis library. But the graph.findVertex always return -1. Basically what I'm trying to do is : 1/ Given a set of ...
0
votes
0answers
11 views

Launch processing tool user interface using python command

I am trying to launch the user interface of a processing algorithm using Python script but I cannot find a simple way for it (aside double clicking on it in the process toolbox of course). The plugin ...
0
votes
0answers
23 views

Merge layers (SAGA) ERROR

with QGIS 2.10 it is not possible to merge vector layers with the "Processing-Saga" tool (merge layers). The following error log comes up: Algorithmus Merge layers startet... shapes_tools "Merge ...
2
votes
1answer
29 views

How to calculate the 3D length of line segment in QGIS?

I've been looking through all of the GRASS commands in the QGIS 2.10 processing toolbox and it seems like one of these must be able to do this but I haven't found one yet. There is 'v.sample' which ...
1
vote
1answer
35 views

How to get PostGIS DB name from QGIS layer?

I'm writing a custom Processing script that needs to know which database connection a vector layer resides in. I can't find anywhere in the API a function to return this information from a layer. So I ...
1
vote
1answer
36 views

Is there a way to integrate my own custom tools into the Processing toolbox in QGIS?

Is there a way to integrate my own custom tools into the Processing toolbox in QGIS? I believe I have found where to strategically hack the stock processing scripts to ensure it picks up my custom ...
1
vote
0answers
18 views

Processing Model .model from Ubuntu to windows and “vice versa” Python Error

I have prepared a processing model in Qgis 2.10 under ubuntu 15.04, I tried to test it on a Windows(7) pc with Qgis 2.10 and I got a Python error message, Then I tried the opposite way, I prepared ...
1
vote
1answer
62 views

Where did Processing Algorithms go?

I have recently installed QGIS 2.8.2 on my Windows 8.1 laptop with the stand alone .exe installer. The processing toolbox is missing the GDAL/OGR, GRASS, QGIS algorithms, Saga and the Orfeo Toolbox ...
1
vote
0answers
29 views

Where to find Advanced Python Field Calculator qgis sintax documentation

I am trying to follow some tutorials using Advanced Python field calculator, but when I enter the formula value = $geom.area() / < area> I get syntax error as in picture, while if I substitute ...
0
votes
2answers
31 views

QGIS Processing Scripts Shared Code

I'm on a Windows 7 machine with QGIS 2.8 installed via OSGeo4W. I'm developing several processing scripts that make use of a few common pieces of code. Rather than maintain the code in each individual ...
1
vote
1answer
39 views

Processing modeler: how to dissolve a vector layer and sum the attributes

I have a complex workflow prepared in the processing modeler, but I'm missing one step to link all the model. As said, I need to dissolve a polyline vector in a single line vector that has as ...
1
vote
0answers
11 views

How to pass a token value to QGIS processing modeler?

There are various places in the Processing modeler where I would like to pass the value of a variable. We're iterating through a bunch of features in an input layer. After the processing, we will have ...
1
vote
0answers
70 views

Grass 7 no longer works via the Processing Toolbox in QGIS

When I try to execute a Grass 7 algorithm via the Processing Toolbox in QGIS 2.10, 2.8.2 or 2.8.1, I get the following error: Missing dependency. This algorithm cannot be run :-( QGIS ...
1
vote
0answers
20 views

Is it possible update a shapefile instead create a new one when using Processing?

Using Processing to add or calculate a field it's always necessary create a new shapefile? Is there a way to just update and keep using same layer?
2
votes
1answer
54 views

Processing algorithm fails from Python script

I'm trying to write a Python script performing a geoalgorithm. What is surprising me is the following: I first test the algorithm by QGIS (2.8) interface. In my case, the GRASS interpolator ...
0
votes
0answers
43 views

Does Processing plugin v2.10.1 not recognise SAGA?

Version 2.9.3 of the Processing plugin works fine, I can run the SAGA tools successfully. Updating the Processing plugin to version 2.10.1 results in SAGA disappearing entirely from the toolbox. The ...
2
votes
0answers
24 views

QGIS: distance matrix different outputs

In one of my plugins I would like to use the distance geoprocessing algorithm. When running this algorithm from the menu Vector->Analysis Tools->Distance Matrix I get a different output than running ...
1
vote
2answers
84 views

Why is SAGA from the Processing Plugin not recognised?

Similar to this post: SAGA algorithms don't work in QGIS 2.8 except the fact that SAGA does not appear at all in the Processing Toolbox: As a check, I used the Python Console with the following ...
1
vote
0answers
39 views

compare column to atributes in a loop in pyqgis processing

I am creating a script in processing qgis. I am running the interpolation algorithm.I have two tables table A and table B. Table A contains attributes like A_test,B_test up to Z_test. Table B contains ...
1
vote
0answers
22 views

Translate old QGIS (2.2) Sextante model to newer version

Hey there (I guess Victor :-)) I really like the processing toolbox and have realized several models. I also developed some bigger models in QGIS 2.2 / with the former processing toolbox. Since the ...
2
votes
2answers
77 views

How to run Processing qgis:extractbylocation?

I try to use the processing 'qgis:extractbylocation' in QGIS 2.8.2 from the QGIS algorithm provider. import processing # import the layers by a given uri inputlayer = QgsVectorLayer(uriTr.uri(), ...
2
votes
1answer
25 views

Last SEXTANTE (Processing) update results in missing RScripts examples

I have installed today the new version of the Processing plugin on QGIS 2.8 (on Windows 7 x64) and I cannot anymore find the RScripts example that were available (and functioning) before the udpate. ...
1
vote
1answer
77 views

Cannot install “Processing” plugin on MacOS + QGIS 2.9.3, fresh install

I have just installed a new MacBook Pro and QGIS, everything is fine but this strange error if I try updating or reinstalling the "Processing" plugin. The plugin is broken. Python said: cannot ...
2
votes
0answers
42 views

QGIS' Join Attributes by Location not working from Python script

I have a shapefile with points, and a shapefile with polygons. I want to sum the attribute value of all points that are within a certain polygon, and I'd like to do this for each polygon in my ...
2
votes
1answer
36 views

How to clip a raster by extent using Processing from the Python console?

I want to clip a raster by extent in QGIS with the python console. Here is the description given in the documentation. You have to use the following input parameter: Input layer Nodata value ...
2
votes
1answer
46 views

How to add my own GRASS algorithms to Processing?

I need to use algorithm r.bioclimatic from GRASS in QGIS but I see that this algorithm don't exist in Processing Toolbox. A search a way of add this algorithm to Processing and in GRASS and Sextante ...
3
votes
1answer
42 views

How to access CRS of shapefile in standalone script?

I'm trying to access the CRS of a layer and use this to create a grid. I followed the answer in this post which works great in QGIS but I would like it to work in a standalone script. Here is a ...
1
vote
1answer
43 views

How to downgrade from Processing 2.6 to 2.2?

I have QGIS 2.8.2 installed and Processing Toolbox 2.6. I want to test a thing and I need to install processing Toolbox 2.2 in QGIS 2.8.2. Is it possible? How can I do that?
1
vote
2answers
70 views

How to use subprocess module to run QGIS toolbox modules

I've been trying to use subprocess for a while now, but can't get it to work when calling QGIS modules. Here's my script: import subprocess call("processing.runalg('gdalogr:merge', ...
0
votes
0answers
95 views

QGIS 2.8.X problem. Couldn't load plugin processing due to an error when calling its classFactory() method

I am running windows 7 64 bit and I have a problem with the processing plugin in QGIS 2.8. Following error appears when starting: ...
1
vote
0answers
45 views

Merge vector layers problem with german names (ä, ü, ö…)

When I'm trying to merge (saga merge layers tool) some shape files I get an error log 'ascii' codec can't decode byte 0xfc in position 91: ordinal not in range(128) See log for more details ...
0
votes
0answers
6 views

Unlock a file after using GRASS runalg

I am not allowed to supress a shp file after using: processing.runalg("grass:v.surf.idw","the_file_i_want_to_delete.shp",12,2,"Arithmetic",False,"-125,-65,23,50",0.2,-1,0.001,"output") Any idea? I ...
3
votes
1answer
129 views

How do I set up the R Script folder in QGIS 2.8.1 Processing Toolbox (Advanced Interface)?

I am currently lacking the R Script folder in my processing toolbox under the advanced interface tab. I suspect this could be a result of the firewall in my company's wifi. I already have R ...
1
vote
1answer
106 views

Missing processing menu in QGIS?

I'm sure there is a really simple explanation to this but haven't found any pointers on this forum or elsewhere. I seem to have lost the 'processing' menu from QGIS and can't figure out how/why!? Any ...
1
vote
0answers
59 views

Is there any way to set a processing extent for QGIS:Voronoipolygon?

I was playing around with the QGIS:voronoipolygons command line function from QGIS and noticed that there was no option for setting the processing extent. This causes QGIS to pick the minimum extent ...
1
vote
0answers
89 views

Is there way to define processing extent in QGIS?

Is it possible to define the extent of a processing tool, like it is in the "Environments" in ArcGIS? For example "Same as Display, or "Same as Layer..".
2
votes
0answers
81 views

Is it possible to use memory layers in QGIS processing algorithms?

I am building a QGIS plugin that connects to a MySQL database in the local network, and then adds a subset of one of the tables to an in-memory layer; the subset is based on data currency (only taking ...
2
votes
1answer
181 views

Processing plugin Python error on startup of QGIS 2.8.1

I've been running QGIS with no issues for several versions now, but after I upgraded to 2.8.1 Wien I had trouble running two plugins: qgis2leaf (which I believe depends on Processing) and Processing. ...
1
vote
1answer
62 views

How to remove “ERROR 1” messages from a standalone QGIS script?

I am running a standalone script for QGIS which creates a high resolution grid and clips shapefiles onto it. Works perfect if the cell width and height have a high values (in my case, >200m for both). ...
1
vote
1answer
85 views

QGIS processing script: Move points by specified distance and add segment

I try to move points (they come as WGS84, but I'm not sure if it works with unprojected CRS) by a specified distance and connect original and new point with a line segment with the below script, but ...
1
vote
0answers
69 views

Put output of SAGA algorithm of Processing model in R script

I'm trying to combine the Variogram Cloud model of SAGA with an R script inside a Processing model. First, the R script is: ##Vector processing=group ##showplots ##Layer=table ##X=Field Layer ...
2
votes
1answer
151 views

Standalone script looping incorrectly?

Following on from my previous question, I would like the script to do the following (includes illustration): Search for the first shapefile (Paris (O).shp) in Country_France > Original files and ...
2
votes
2answers
160 views

How to use `layer.getFeatures()` in a standalone script?

I am following the QGIS Cookbook and this post where it concerns reading attributes from layers. I would like to exploit this method and implement it into a standalone script. Essentially, I want to ...
3
votes
2answers
206 views

Using folder wildcards to copy files with Python

I would like to copy the data of one specific shapefile from a specific folder ("Grid") to a number of folders containing the name "Country". The country shapefiles would keep their original name. ...
1
vote
1answer
43 views

Rename output shapefiles in PyQGIS

I have a shapefile which resides in a folder, gets processed and the output is saved in another folder. Before the output, I would like to rename the shapefile slightly differently from the original: ...
0
votes
1answer
46 views

Script not processing shapefiles from one folder to another

I am working on a script which takes shapefiles from one folder called "Original files", process them and then output the results into another folder named "Processed files. I asked a question on how ...
1
vote
1answer
49 views

Can you change the layer name of an output vector from a processing script in QGIS?

I define an input csv file and an output like so in my processing script: ##Input_CSV_File=file ##Output_Shapefile=output vector The output shapefile is added to the map automatically when the ...
1
vote
2answers
167 views

How to replace VectorWriter with QgsVectorFileWriter?

Within QGIS 2.8.1 I found within the Processing Toolbox a script called "Points on crossing lines" which should exactly as it is named. Unfortunately it needs processing.core.VectorWriter which I ...
1
vote
1answer
115 views

Use raster memory layer from QGIS processing result

I want to apply subsequent QGIS raster processing algorithms in a python script. I want to use memory layers for intermediate calculation results since I am only interested in the end result. As ...
2
votes
1answer
145 views

Why processing.runalg(“gdalogr:rasterize”…) is not creating out files when running in the QGIS 2.6.0 console?

I want to use the QGIS python scripting functions to turn to rasterize a point vector using many different dimensions. Right now my code looks like this: import processing RasterPixelSize = ...