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

learn more… | top users | synonyms (1)

1
vote
1answer
19 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
34 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
24 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
33 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
69 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
231 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
52 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
52 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
73 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
84 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 = ...
0
votes
0answers
47 views

How to resolve warning messages from standalone script?

The standalone script, loaded from OSGeo4W Shell and copied below, follows a set of steps: Create grid with cells length/width at 200m Clip a polygon layer onto the grid Use Distance to nearest hub ...
2
votes
3answers
185 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
55 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
128 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
161 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
39 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
73 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
86 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
99 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
40 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
318 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
192 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
121 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
76 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
77 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
114 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
63 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
60 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
84 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
9 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
122 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
45 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
52 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
165 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
262 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
42 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
209 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
248 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
330 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
101 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
164 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 ...
1
vote
0answers
45 views

Running algorithm from Processing takes much much longer time than doing it from Qgis GUI

I have a road layer with 32000 features, and I want to find all the intersections. when I use processing->SAGA -> convert polygon/line vertices to points, it is all done in less than 5 seconds. ...
0
votes
1answer
78 views

Generating buffers in a automate way

I would like to creat buffers in a automate form and no matter the way (e.g. script, batches and etc) I am asking if anybody here knows how to do it or if are there scripts ready to do it. My ...
0
votes
0answers
28 views

Call post-execution command manually in QGIS Processing

I wrote myself a Processing Script and it works fine. Now i want to style the outcome (a new raster layer) with a QgsColorRampShader(), but the problem is that Processing adds the output after the ...
1
vote
1answer
62 views

Raster data type as input in processing algorithms

Why the processing algorithms run just with input files located in QGIS desktop? Is there any way to work with directories? I am developing a plugin and I am using processing algorithms but the ...
1
vote
1answer
205 views

Auto increment a new column using Model Builder Field Calculator in QGIS?

I am making a model which requires creating a grid and clipping various layers to it. Using the Create grid function does not provide an ID column, instead it creates 2 columns: "longitude" and ...
1
vote
1answer
577 views

How do I use 'model builder' in QGIS 2.2?

I am trying to learn how to use the 'model builder' in QGIS 2.2. I have used model builder in ArcGIS, but I don't understand how to do it in QGIS 2.2? What I want to do is to make buffers, clip ...
1
vote
0answers
134 views

How to use the raster calculator in the processing modeler of QGIS

I am trying to create a easy way to do raster analysis by building a model for two way raster calculations. I have two raster layers that I want to combine into a single raster. For now I've done this ...
1
vote
0answers
48 views

Error running SEXTANTE in QGIS on Scientific Linux

I've installed SEXTANTE into qgis on my Scientific Linux machine and I am getting the following when attempting to run Warp; INFO|Mon Feb 24 2014 15:56:20|GDAL execution console output|/bin/sh: ...
6
votes
1answer
1k views

How to configure QGIS and SAGA on Ubuntu (12.04 and others)?

During the past weeks, I have tried QGIS to recognize SAGA via the processing toolbox, both being installed from the ubuntugis-unstable repository. I have tried this on several virtual ubuntu ...