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

learn more… | top users | synonyms (2)

1
vote
1answer
36 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
27 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
21 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
60 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
21 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
50 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
32 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 ...
1
vote
1answer
33 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
38 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
39 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
33 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
62 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
67 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
36 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
5 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 ...
2
votes
1answer
94 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
95 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
54 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
81 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
68 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
150 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
58 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
78 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
67 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
149 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
146 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
163 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
38 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
46 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
1answer
109 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
101 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
131 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 = ...
2
votes
0answers
23 views

Extract from a linestring layer, groups of linestrings to a multilinestring objects layer

I've got a linestring layer with thousands of linestrings. I want to extract groups of linestrings to individual multilinestring objects. In the following picture you can see a part of the layer ...
3
votes
3answers
509 views

SAGA installation in QGIS 2.8 on debian linux

I install QGIS 2.8 in debian (linux) through nightly jessie (qgis testing) and I see that SAGA is not in processing toolbox, so I install saga gis software but still it doesn't appear in processing. ...
0
votes
1answer
79 views

Cannot rename output file using standalone script for QGIS

I would like to rename all output files after my script has finished processing them by adding "(A)" after their file name (eg. Layer.shp -> Layer (A).shp). I received an answer from this post on the ...
1
vote
1answer
152 views

QGIS (2.6.1) Processing Toolbox InitGui error after changing /Users folder on Mac OSX

Using: Mac OSX 10.9.4 QGIS 2.6.1 I had previously installed QGIS and had everything running fine. My home directory was /Users/rowanbado, but for another application I had to add an ...
1
vote
1answer
73 views

How to exclude a certain attribute from being added to the Processing script output layer?

I have a working script to split a layer by field attributes and save the single features as files: ##[User scripts]=group ##input=vector ##class_field=field input ##output=output file from ...
0
votes
0answers
164 views

Couldn't load plugin processing in QGIS: Access is denied for R

Couldn't load processing plugin due to flowing error. Any help? thanks. Couldn't load plugin processing due an error when calling its initGui() method Traceback (most recent call last): File ...
1
vote
2answers
129 views

How to batch process .txt files with X,Y data (in Arc or QGIS)?

I have a long list of .txt files that I need to convert to feature class. I can bring the table into ArcMap, right-click, Display X,Y Data, and it converts to a feature no problem. Is anyone aware ...
2
votes
1answer
179 views

How can I iterate over several layers and run a process using PyQGIS?

I am trying to find road intersections within each of my memory Polyline layers (which are named road_layer_i for i in (0-99)) so this is what I tried: import processing self=qgis.utils layers = ...
2
votes
3answers
236 views

Why script works on my computer but not on another?

The script below works perfectly fine in my computer. But when running the script on another computer, I receive an error: Error: Algorithm not found The computer has similar specifications to ...
1
vote
0answers
77 views

Using processing using other output (result from another algorithm) as input

I have a problem. I am developing a standalone app in python and I need to use processing algorithms. I was able to use one algorithm without erros but I need to run other processing algorithm which ...
2
votes
1answer
249 views

Run processing toolbox outside QGIS in standalone app

I am developing a standalone app in Python, using QGIS libraries including processing algorithms. I am developing in Linux environment and I put the libraries in a folder. Also I put the processing ...
2
votes
1answer
70 views

QGIS 2.4 graphical modeler add field: error executing algorithm

I have to add more than 20 fields to a lot of shapefiles. I used to do it with the tablemanager plugin. Beside it is time consuming, misstakes can be made. So I want to automate that procedure ...
7
votes
1answer
253 views

Why the order of imports matters in a standalone PyQGIS processing script?

I've come across a weird issue while running standalone PyQGIS processing scripts. The order of imports in the script affects its normal execution. You can reproduce the problem by opening a Python ...
1
vote
2answers
57 views

How can I disable logs being created in standalone python script?

When I run the following script in QGIS 2.6.1, it produces a folder called 'processing', which contains a log, in the directory it reads files from. And since the script reads files from several ...
2
votes
1answer
112 views

How to get shapefile extent from standalone script?

I am trying to obtain the extent of a polygon in a shapefile. I am running a standalone script which will create a grid based on the extent of the polygon. I have tried 2 methods: one from the ...
1
vote
0answers
97 views

Problems using the SAGA in processing framework with qgis 2.6.1 (ubuntu) [closed]

I've got problems using saga in the processing framework within qgis 2.6.1 and SAGA 2.1.4 To solve this problem I was obliged to correct the line 352 of the python file ...
3
votes
2answers
117 views

How to add today's date into an attribute table using QGIS Processing modeler?

I am looking for a way to use the Processing modeler to add a date field to an output dataset in QGIS 2.6.1 I have tried using the field calculator algorithm without success. (Also the advanced ...