Questions tagged [qgis-plugins]

Software plugins that add functionality to the QGIS package

711 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
12
votes
0answers
480 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 ...
7
votes
0answers
754 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 ...
5
votes
2answers
387 views

QGIS plugin development environment variables?

I want to develop a plugin gor QGIS3. I downloaded Osgeo4w network installer 64Bit. I created a bat file as following for set my environment variables; @echo off call "%~dp0\o4w_env.bat" call ...
5
votes
0answers
294 views

Is it possible to get the compression level of a GeoTiff?

When creating a GeoTiff and using Deflate or LZW as compression it is possible to select the level of compression from 1 to 9. Is it possible afterwards to see which level was used? I have a lot of ...
5
votes
0answers
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....
4
votes
0answers
95 views

Adding a fixed table to layout in QGIS

I wonder how to add a fixed table into QGIS layout. I've tried this solution but it doesn't work : model = MyOwnQgsFeatureFilterModel(layout) tableEnsemble = QgsLayoutFrame(layout, model) ...
4
votes
0answers
64 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 ...
4
votes
0answers
60 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 ...
4
votes
0answers
173 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 ...
4
votes
1answer
211 views

QGIS QgsTaks finished and completed never called

I'm rewriting a plugin to use QgsTask with this as my first guideline and the update mentioned in this post as a possible solution for my problem. My task runs fine in the background, but def ...
4
votes
0answers
360 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, ...
4
votes
0answers
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 ...
4
votes
0answers
250 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 ...
4
votes
0answers
88 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 ...
4
votes
0answers
228 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 ...
4
votes
0answers
941 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 ...
4
votes
0answers
507 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 ...
4
votes
0answers
692 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
0answers
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
0answers
82 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 ...
4
votes
0answers
907 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
0answers
858 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
0answers
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:...
3
votes
0answers
39 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
0answers
23 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
0answers
47 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 ...
3
votes
0answers
216 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 ...
3
votes
0answers
55 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
0answers
94 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
0answers
79 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
1answer
141 views

QGIS Plugin: Creating a Plugin based on two scripts: where one script is dependent on another

I have recently exported a model to a python script that is actually dependant on another Python Script I have converted from a previous model. Because the First Script/model F1 gets repeated three ...
3
votes
0answers
73 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
0answers
79 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
0answers
209 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 ...
3
votes
0answers
95 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
0answers
323 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 ...
3
votes
0answers
138 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 ...
3
votes
0answers
45 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....
3
votes
0answers
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()....
3
votes
0answers
160 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
0answers
94 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
0answers
83 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 ...
3
votes
0answers
177 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 ...
3
votes
0answers
54 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 ...
3
votes
0answers
573 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
0answers
525 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 ...
3
votes
0answers
246 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 ...
3
votes
0answers
286 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 ...
3
votes
0answers
324 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 ...
3
votes
0answers
179 views

OSM Tools Plugin is broken for QGIS 2.8.6-Wien

When installing OSM Tools for QGIS Wien 2.8.6 I get an error: the plugin is broken python said no module named YAML. YAML is on my Linux Mint box 18 and I can't find documentation with Google or on ...

1
2 3 4 5
15