Linked Questions

0
votes
0answers
109 views

Unable to use QGIS 3 algorithm `qgis:mergeshapeslayers` in standalone code [duplicate]

I use QGIS 3.0.2, Windows 7, OSGeo4W64 to combine the shape files in the stand-alone code, but the output file is not created and the error message does not appear. Calling help information about ...
15
votes
2answers
10k views

Accessing `processing` 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
2answers
946 views

Why does QGIS 3.2 “native:extractvertices” algorithm not work properly in standalone script?

I execute standalone python code (almost identical to the code in the accepted answer): The output file does not contain data, and I get this error message: Warning 6: Normalized/laundered field ...
3
votes
1answer
1k views

Failed to create memory layers in QGIS application on Linux

I have written a python class which reads properties of map layers from an XML file and creates appropriate memory layers. I have developed and tested this code with QGIS 2.8.2 on a Windows 7 machine (...
4
votes
2answers
412 views

pyQGIS 3.0 script not running with processing import

I have problems using version 3 of QGIS with Python 3. I followed different tutorials like this one : how to use pyqgis processing runalg clipvectorsbypolygon But it seems to be working only with ...
3
votes
1answer
463 views

How to adjust Python code from PyQGIS 2 to 3 to create a buffer on a shapefile

I am starting to learn PyQGIS and following tutorials online. However, I have QGIS 3.0 and most of the tutorials use QGIS version 2. I am trying to do a buffer on a point shapefile, but only have the ...
0
votes
1answer
247 views

Using processing algorithm 'native:hublines' in standalone QGIS application

I am trying to make hub lines between two vector files. I succeed manually to do that (in QGIS 3.0) and in a PyQGIS 2.18. But my code doesn't work in PyQGIS 3.0. Here it is: output = '/home/user/...
3
votes
2answers
147 views

Call QGIS geoprocessing tools from command line (terminal, bash-script)

Is there any possibility to call tools found in the QGIS processing toolbox from the command line, other than using python? It is my understanding that if you use any GDAL tools, the QGIS gui is ...
2
votes
1answer
338 views

Import Processing Toolbox in PyQGIS 3.0

I am trying to import processing toolbox in my standalone PyQGIS application. But I am in trouble. I follow this instruction: Importing QGIS Processing in stand-alone python script? and this Using ...
4
votes
1answer
201 views

Updating Algorithm list in pyqgis3?

I am attempting to run a union operation in a standalone pyqgis script and I'm receiving this error: Algorithm qgis:union not found The union operation fails with this code: params = { 'INPUT' ...
1
vote
1answer
166 views

Running qgis processing algorithm in qgis plugin

I try to run a qgis native algorithm in a qgis plugin and I can't make it work. I follow espescially this answer on a GIS SE question. I will add my whole code at the end of the question, since I do ...
1
vote
1answer
158 views

PyQGIS scripts outside of QGIS GUI running processing algorithms from GRASS provider

I'm writing a script that I would like to work outside of QGIS GUI. The script uses the processing algorithm standalone just fine for the native algorithms, however I am experiencing errors when ...
1
vote
1answer
95 views

Contour Plugin Processing Algorithm is not detected in PyQGIS 3 Standalone

I was trying to access processing algorithm using PyQGIS 3 on a standalone script. I found this solution and tried it but when I list the processing algorithm using print(QgsApplication....
0
votes
0answers
101 views

Can the tools in QGIS be used in python code?

Can the tools in QGIS, e.g. Vector>>>Geometry Tool>>>Extract Vertices be used in Python code? For example, to run through a shapefile to get all the points for for polygons within ...
1
vote
1answer
52 views

Find QGIS algorithm path

According to Using QGIS3 Processing algorithms from standalone PyQGIS scripts (outside of GUI) I try to implement the existing "Split Lines with Lines" algorithm into a QGIS Plugin. To do this I need ...

15 30 50 per page