Questions tagged [qgis-plugins]

Software plugins that add functionality to the QGIS package

782 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
14 votes
1 answer
644 views

Remove reference to raster layer object PyQGIS

I am developing a plugin to load a set of raster files on QGIS. When there is a large number of files to be loaded, the main UI freezes. So I use QgsTask to move the creation of raster layers to a ...
  • 156
8 votes
0 answers
943 views

Add private plugin repository to QGIS 3.4

I want to add a repository to my QGIS 3.4 which is on a private server. The repository contains all files needed (plugin.xml and metadata.txt for example) and has the structure as described here: Is ...
  • 525
7 votes
0 answers
369 views

Programmatically Enable/disable input parameters in a QGIS Processing plugin

Is there a way to enable/disable a parameter by a checkbox in the processing interface? In my screenshot below, I would like to disable the Output Wall Aspect Raster when the Calculate wall aspect ...
  • 196
7 votes
0 answers
1k views

QGIS plugins not installing

I'm trying to install plugins on a fresh install of QGIS 2.18.12. I can connect to the plugins repository but trying to install any plugin fails with the error message: Failed to unzip plugin package....
6 votes
0 answers
453 views

Unable to install QGIS Plugins on Windows

I've installed QGIS 3.16 Hannover on my laptop about three days ago (Windows 10 Home 1909) and am unable to install any plugins, nor get access to any of the core plugins save four. When going to ...
6 votes
0 answers
93 views

QGIS plugins for creating circular route on footpath network

I'm looking for a way to create random circular walks of a specified distance from a given point. The end result will be similar to https://routeshuffle.com/ and http://www.routeloops.com/, but along ...
6 votes
0 answers
2k views

CadTools plugin functionality in QGIS 3 beyond Advanced Digitising Panel?

I've recently migrated to QGIS 3.6.0, and I've realised that the wonderful CadTools plugin is not compatible with QGIS 3. I tried to use the Advanced Digitising Panel, but it's cumbersome and not ...
5 votes
0 answers
183 views

Where does QGIS download plugin .zip files prior to install?

I have a QGIS Python plugin we use internally. I've released a new version - edited the "metadata.txt" file, zipped it, replaced the .zip package on our web host, updated our plugins.xml ...
5 votes
0 answers
98 views

Is it safe to access layer object(e.g. QgsVectorLayer) in background task(QgsTask) in QGIS3

I was confused if it's safe for developers to access QgsVectorLayer in a background task(QgsTask), like reading data from layers? Because descriptions in PyQGIS cookbook are different with different ...
  • 457
5 votes
0 answers
464 views

Error with ROI Semi Automatic Classification Plugin QGIS 3.4

I have troubles for making ROI with SCP plugin in QGIS 3.4. I dowloaded some landsat images with the plugin and trying to create ROI. To do it, I made a Bandset with DOS1 atmospheric correction, ...
5 votes
1 answer
451 views

QGIS Python Plugin - Prevent Dialog From Closing Immediately after OK Clicked

I've generated a QGIS plugin using the QGIS Plugin Builder v3.0.3. One issue I am encountering with it is - as soon as I click the "OK" button (that invokes the run method) - the dialog closes. Is ...
  • 5,671
5 votes
0 answers
268 views

Get signal on delete group on QGIS 2.18.16

I tried : QgsProject.instance().layerTreeRoot().willRemoveChildren.connect(self.onWillRemoveChildren) It works if I delete a group within in the root node. But if I delete a layer within a group ...
  • 180
5 votes
0 answers
96 views

How to determine Kc value and apply it to r.sun?

As outlined in this link ( r.sun delievering unrealistic Values ) to get realistic values of kilowatt / meter-2, you must multiply the results by a "clear sky factor (Kc)". The link comments recommend ...
5 votes
0 answers
256 views

QGIS Custom Qt Widgets on OSX

When I install QGIS on windows I get a bunch of custom widgets in Qt Designer On OSX I can't figure out how to get those same widgets to appear in Qt Designer. I have set my environment variables ...
  • 563
5 votes
0 answers
1k views

module object has no attribute classFactory

I asked this question several days ago on the QGIS developer list but didn't get any love. I'm hoping someone can help me resolve this error. I have a custom repo and a custom plugin that I'm ...
4 votes
0 answers
3k views

Problem with font size depending on screen resolution - QT

I developed a QGIS plugin by designing the interface with QT Designer. The inferface appears correctly on my computer (left image). However, on some computers, I encounter size problems, especially ...
4 votes
0 answers
364 views

QGIS Plugin reload is incomplete

I am developing a QGIS Plugin in PyCharm. I use the QGIS Plugin "Plugin reloader" to reload the plugin when I want to test the plugin. But changes in the code are not applied on running the plugin ...
  • 549
4 votes
0 answers
280 views

Getting rectangle coordinates created in custom QgsMapTool Class of PyQGIS?

I am developing a QGIS (QGIS 3.6) dockwidget plugin where the user creates a rectangle (boundingbox) on the canvas and the plugin sends the rectangles coordinates attached to a HTTP request to my FME ...
  • 899
4 votes
0 answers
470 views

Create lines to connect vertices in QGIS

I have a file that marks street edges and want to connect "crossing" points automatically. Image 1 shows the street edge, Image 2 shows the desired result. Is there a plugin or method I can use to ...
4 votes
0 answers
1k views

QGIS crash using QThread in a plugin script

I recently wrote a Python script that works with raster data and makes some time-consuming operations. My script uses QThread to update a QList and a QProgressBar and everything works fine if I run ...
  • 41
4 votes
0 answers
581 views

Why PyQt http request works in QGIS console, but not in a plugin?

I want to send http request in a QGIS plugin using PyQt. I found in this post working syntaxes to do so, but something odd occurs. The script given in the question works both in the console and in my ...
  • 343
4 votes
0 answers
745 views

QGIS canvas refresh & rendering control from plugin?

Plugin Description I have been working on a plugin which essentially doing the same as "GPS information" live tracking but with capability of displaying two GPS streams. I am comparing streams and ...
4 votes
0 answers
83 views

QGIS plugin window qt creator formatting is ineffective

I am developing a QGIS plugin. I have assigned the QGIS main window as the parent window of custom plugin using: QtGui.QDialog.__init__(self, iface.mainWindow()) But after doing so the problem is ...
  • 127
4 votes
0 answers
964 views

Seeking QGIS plugin with functions like ArcScan?

Is there a QGIS plugin which does raster scanning, like ArcScan. Typical QGIS Vectorization returns very bad outputs that have thousands of 'islands'. I require a clean and efficient vectorization ...
4 votes
0 answers
971 views

QGIS-Python Need to check if layer is in current extent and make it active

I'm putting together a plugin for QGIS. The user inputs a county and a coordinate pair. The plugin then adds in the county data and zooms to the given coordinates. The problem is that there are ...
4 votes
0 answers
479 views

Get signal on edited feature?

Regarding my pyqgis plugin 2.2 , I've implemented signal on a vector layer event successfully. For instance, whenever i create a new feature, i can read a new basic message appeared via QGIS logging ...
  • 839
4 votes
1 answer
1k views

Using Processing Framework in QGIS

I am writing a plugin for QGIS 2.0, and I want to use the processing framework to call some functions. When I open the Python console inside QGIS, I am able to call it like this: >> import ...
4 votes
0 answers
2k views

Changing feature's geometry?

I'm creating my layer like this: crs = core.QgsCoordinateReferenceSystem(4326, core.QgsCoordinateReferenceSystem.EpsgCrsId) uri = "Polygon" uri += '?crs=' + crs.authid() uri += '&field=id_tsk:...
  • 285
3 votes
0 answers
271 views

Running the method of QGIS plugin on a seperate thread

I am working on a QGIS plugin. The plugin has a main class running all the operations. I was trying to add a progress window in it. The window should load when a button is clicked running a method ...
3 votes
0 answers
214 views

Inconsistent QNEAT3 OD matrix (m:n layers as lines) results

I am running QNEAT3 on QGIS 3.22.4-Białowieża to determine the shortest path from one location to another along a stream network, but the results are inconsistent. This is being run as part of a ...
  • 605
3 votes
0 answers
78 views

Disabling checkbox in layers list while exporting in qgis2web

Is there a possibility to disable the checkbox on certain layers in the layers list (Leaflet export)? I found something similar already here: qgis2web - show specific layers in layer list but ...
3 votes
0 answers
74 views

Geometry checker not removing overlap between features

I have a polygon shapefile layer (CRS EPSG:27700 British National Grid) that has a deliberate overlap and gap between features. When using the Geometry Checker Plugin (V0.1) in QGIS 3.10.9 I am ...
3 votes
0 answers
127 views

How to split a polygon in 9 equal parts but I want to use different orientation on QGis?

I want to split a polygon of a terrain that I generated through coordinates on QGis. But at the same time, I want to do perform such an activity by testing different orientations for the terrains ...
3 votes
0 answers
238 views

Polygon Divider QGIS Plugin creates less equal parts (polygons) than asked

I've installed QGIS 3.16 for Windows. I digitised a polygon layer (limits of a city) and used the Polygon divider plugin to divide it in 10 equal parts (polygons). However, as a result, it created ...
3 votes
0 answers
171 views

How to detect snapping event while editing layer in QGIS? (For custom topological control)

QGIS 3.14 - plugin. I have a requirement to draw lines which must start and end snapped to point geometries of another layer. I need to be able to detect a vertex snap event while drawing linear ...
3 votes
0 answers
126 views

File locked after removing the layer , in Python code for a plugin for QGIS

I try to remove the layer, to re-generate it with the same name, but when the plug is started the layer is loaded, removeMapLayer does not unlock the file, and it is locked. I have seen several ...
3 votes
0 answers
163 views

Automatically installing plugins on QGIS, deploying QGIS plugins on an IT infrastructure

My company is preparing a default QGIS configuration file (qgis_global_settings.ini) for deploying on a great number of MS Windows workstations. We have selected a few QGIS plugins we want to be ...
3 votes
0 answers
106 views

No Vector Menu Available QGIS 3.4

I've installed QGIS 3.4 on my Mac. I don't have any vector or processing menu. In the "plugins" menu under settings, I have the following: "The settings on this tab are only applicable for Python ...
3 votes
0 answers
631 views

Exporting to QField from QGIS?

In creating an export from QGIS 3.8.0 Zanzibar to Qfield using the sync plugin, I am encountering a strange error. Each time I run the export, several of the layers I have in a geopackage in QGIS ...
  • 31
3 votes
0 answers
205 views

Plugins that works with high resolution screens

I've written a plugin for QGIS (GeoDataFarm) and I've been using QT creator for all ui files of the plugin, which have worked fine for me. However, I just got an email from someone that tested my ...
  • 1,868
3 votes
0 answers
51 views

How to plot distances distances in meters in QGIS?

My goal is to plot circles on QGIS canvas by taking distances in kilometers from MySQL base. This is code I use: from PyQt4.QtCore import * from PyQt4.QtGui import * from qgis.core import * from qgis....
  • 145
3 votes
0 answers
1k views

Canceling task currently running in background using PyQGis?

I am trying to close QgsProject on loading layer (if password and username from QgSProject - datasource are incorrect) before QgsCredentialDialog is shown. on signal : QgsProject.instance()....
  • 892
3 votes
0 answers
177 views

Hiding Layer Source using PyQGIS

I am developing a plugin for QGIS that loads the layers of a WFS. For security reasons I would like the user could not know the layer source. How can I remove the path of the layer in Vector ...
3 votes
0 answers
98 views

QGIS plugin "Load raster to PostGIS"

I tried to find QGIS plugin "Load raster to PostGIS" but I could not find anything in Plugins section in QGIS. Is there any external resource where is possible download this plugin and after that ...
3 votes
0 answers
87 views

QChainage only works on first part of merged line

I'm trying to merge a number of lines into a single line for chainage purposes. Each individual line is created using OpenRouteService, then merged into a longer continuous shape using Edit > Merge ...
  • 31
3 votes
0 answers
231 views

Line perpendicular to the maximum axis of an irregular polygon (sinkholes) QGIS 3

I am performing a morphometric analysis of dolines using QGIS 3. The analysis consists of determining the longest axis (the union of the two most distant points of the polygon) and the shortest axis ...
  • 85
3 votes
0 answers
128 views

QGIS turn right click -- "Toggle Editing" off

In QGIS3, Interface customization I have turned off the mEditMenu but when a user right clicks on a dateset they still see "Toggle Editing". Is it possible to remove this? and also any keyboard ...
  • 7,894
3 votes
0 answers
608 views

QGIS 3.4 Processing Python Scripts folder default configuration is lost

I have lost the default configuration of the 'Processing Python Scripts folder' on QGIS 3.4 and in consecuence some Python processing scripts and plugins cannot work properly because they cannot find ...
3 votes
0 answers
560 views

Running an external QGIS Python Plugin with a Processing Script

I am working on a python script in the processing environment of QGIS 2.18. My goal is to run few tools one after another in an automated chain. One of these tools is the external Plugin 'Join ...
  • 31
3 votes
0 answers
318 views

QGIS 3 - Save processing output to memory and turn into numpy array?

I'm currently developing a python plugin for QGIS 3. In short, the code conducts among others a viewshed algorithm, turns the output in a numpy array and calculates some spatial metrics the user can ...
  • 31

1
2 3 4 5
16