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

learn more… | top users | synonyms (1)

0
votes
1answer
31 views

How to do raster layer stack using QGIS processing? [closed]

I tried to do Layer stacking using QGIS processing with the following code import processing ...
1
vote
1answer
56 views

Why did I lose the processing menu in QGIS 2.8?

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 ...
2
votes
0answers
39 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
83 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
52 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
65 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
52 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
143 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
129 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
103 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
34 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
45 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
37 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
70 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 ...
2
votes
1answer
103 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 = ...
3
votes
3answers
394 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
72 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
62 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
120 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 ...
2
votes
1answer
126 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
211 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
64 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
183 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 ...
7
votes
1answer
213 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
52 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
94 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 ...
3
votes
2answers
103 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 ...
1
vote
1answer
118 views

How to add fields to shapefile from standalone script?

When I run the following script via OSGEO4W64 Shell, I receive the following error when trying to run the qgis:fieldcalculator algorithm: 'NoneType' object has no attribute 'mapCanvas' I read ...
0
votes
0answers
47 views

`Execute SQL` in Processing QGIS 2.6

I made a small model with Processing in QGIS 2.6. The final layer should be the result of a SQL query. Now, in the Execute SQL dialog window I can add the query: select name, max(ele) as ele, geom ...
6
votes
2answers
487 views

Cannot run standalone QGIS script

I've been trying, along with this post, to run a script in OSGeo4w Shell, outside of QGIS. But I get the following error: ImportError: No module named qgis.core I have also read the following ...
2
votes
2answers
255 views

How to use QGIS explode lines with Python

I want to access the explode lines function in Python outside of QGIS from a standalone script. What module do I have to load in order to use it? How can I access processing? from qgis.core import * ...
3
votes
0answers
155 views

SAGA is not working within sextante (QGIS processing installed in Ubuntu)

Recently i decided to start working in Ubuntu (version 14.04). My first step was to add the ubuntugis-unestable repository, and then proceed to install SAGA, GRASS, OTB, QGIS and the bindings between ...
1
vote
1answer
115 views

Which DOS method use to convert at-sensor radiance to at-surface values in GRASS (landsat data, i.landsat.toar modul)?

I am trying to calculate surface reflectance values from raw Landsat DN data downloaded from GLOVIS. I have imported Landsat data in GRASS 6 with header by i.landsat.import and reprojected the scene ...
3
votes
1answer
103 views

Getting random values from geometryType() in a standalone PyQGIS script

I am asking this question based on the result I received from this earlier post. The following script only works if I set geometryType() == 3 as that is what is being printed out in the Python console ...
2
votes
1answer
187 views

ImportError: No module named processing

this question may have been discussed before but i was not able to find any answer. I am developing a stand alone python script that will invoke methods from processing module. I am seeing error ...
1
vote
0answers
68 views

QGIS Processing Toolbox: otb provider XML

Good day, I am trying to integrate an OTB application into the processing toolbox. MANUALLY created a XML file for it but get : Could not open OTB algorithm: ...
3
votes
1answer
63 views

How to add documentation for QGIS Processing algorithms?

In the Processing modeler, many of the algorithm help tabs say: Sorry, no help is available for this algorithm. In the QGIS sourcecode, the processing algorithms seem to reside in: ...
4
votes
0answers
93 views

How to submit user scripts for Processing Toolbox (QGIS 2.6)?

QGIS 2.6 change-log says that now there is some kind of repository where users can submit their scripts to make them available for everyone. Unfortunately I was unable to find any details about how to ...
1
vote
0answers
10 views

Logfile or something of a shape

I've a shape which was processed with the qgis geoalgorithm tool "eliminate sliver polygons". My desire is to get a kind of logfile of this certain process. I need to know the whole calculations ...
2
votes
1answer
127 views

Creating points from lines with length and rotation fields using script in QGIS?

I'm about to create a script wich creates points from lines on a specified layer with a length and a rotation field. Geometry: The point goes to the first vertex of the line Attributes: length ...
0
votes
0answers
52 views

What is causing this QGIS processing model to fail at r.mapcalculator

I can't figure this out. I can run a number of tools from the processing toolbox separately with success but when I string them together in a model it keeps failing (image of log below). It looks ...
1
vote
1answer
55 views

Where is the log for advanced Python calculator errors?

There is a specific log file for Advanced Python calculator in QGIS 2.4.0? I got the tab message below point to a log file there I wasn't able to find by myself.
4
votes
1answer
181 views

Is there an issue with Zonal Statistics calculating wrong mean values?

I tried to solve the following issue by myself but without success. On the one hand I have a raster file which is the result of the processing "shapes to grid" tool. On the other hand I have a ...
2
votes
0answers
281 views

QGIS 2.4 Processing (Zonal Statistics) error

In QGis 2.2 all my models (processing model builder) are working fine. When I start the same models in 2.4 I get errors like this: Prepare algorithm 5: Zonal Statistics Running Zonal Statistics ...
2
votes
1answer
46 views

QGIS Processing - Additional Creation Parameter for GdalWarp

I am having a hard time getting the "Additional Creation Parameters" to work when using GdalWarp through the processing toolbox. I am trying to set the nodata value to 0 for the output raster. ...
5
votes
1answer
248 views

QGIS Processing Progress

I have been developing a python plugin that uses Processing algorithm for raster calculations. I want to support the gui with progress bar. How can i connect Processing job to progress bar? I found ...
1
vote
1answer
281 views

“Data source not valid” problems with QGIS processing

I'm having a lot of problems with QGIS processor. Most of the algorithms show me this QGIS log error: La fuente de datos no es válida. (Data source not valid) This happens with SAGA and GRASS ...
5
votes
2answers
398 views

Calculating the average / MEAN of an attribute field in a QGIS model

I need to know how to calculate the average / mean of an attribute field in my point shape file. Is this possible to do with the field calculator? I just found the options min or max but not mean. The ...
0
votes
0answers
116 views

QGIS r.cost / r.drain and errors

I'm trying to find the optimal route of several archaeological sites with Qgis 2.2. I've a DEM and r.walk or r.viewshed executed successfully, but r.cost always fails creating the output, however ...
2
votes
1answer
189 views

Error: Algorithm not found

I wrote the following code to start using QGIS APIs. in a very short script seen below, the "Error: Algorithm not found" is thrown and "print processing.alglist()" is showing none. Any idea why this ...