Questions tagged [qgis-plugins]

Software plugins that add functionality to the QGIS package

Filter by
Sorted by
Tagged with
4
votes
2answers
478 views

Trying to understand QGIS LRS plugin - How to implement?

I have been trying to understand how to implement the LRS plugin but there are many things that does not "click" in my head. Not sure if it is the terminology or the process i dont understand, please ...
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 ...
3
votes
1answer
44 views

Developing QGIS plugin: AttributeError: object has no attribute

I was tasked with making a small plugin for QGIS or add a small functionality to an existing one. What I am trying to do is take the "geocode with web service" from the plugin MMQGIS and add ...
0
votes
1answer
53 views

QGIS: Error code showed up after Landsat 8 TOA and crashed the program (SCP plugin)

Trying to get all bands corrected but it failed every single time in version 3.10 or 3.16. Error codes showed as below:
4
votes
1answer
198 views

How to make plugin icon active?

I am thinking about a new QGIS plugin I'm going to do in near future. So, I have some things, that could be hard for me. One of them is to making the plugin icon active when I click it. For ...
1
vote
1answer
46 views

QGIS join by location not working between two shape files

I am getting this weird error while using join attributes by location in QGIS, I have two layers - Source & Target. I am joining by target to source features using intersect option in join ...
1
vote
2answers
97 views

unsupported operand type(s) for +: 'int' and 'QVariant'

Type error :unsupported operand type(s) for +: 'int' and 'QVariant' Traceback (most recent call last): ,line 260, in rac s=s+ar Code : def rac(): cur_prov = self.dlg.comboBox_2.currentText() ...
2
votes
1answer
146 views

Making depending ComboBoxes using PyQGIS

How do I make comboBoxes depending using PyQGIS? I have two comboBoxes one is for selecting the province and the second is about parks (only the parks that belong to the province will be on the second ...
4
votes
1answer
298 views

"RuntimeError: wrapped C/C++ object of type ContourGeneratorAlgorithm has been deleted" error in QGIS

I have been doing this project for the last few weeks on QGIS 3.4 with no problems and now every time I try and go on it QGIS does not respond and it does not load. I clicked on another project which ...
0
votes
0answers
53 views

Fiona driver error in QGIS Python console when trying to load files using GeoPandas [closed]

I am building a QGIS plugin using Qt Designer but I'm getting a Fiona driver error when trying to load files using GeoPandas (gpd.read_file()). Fiona is installed and working when running the code in ...
4
votes
0answers
172 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
207 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 ...
2
votes
3answers
275 views

Randomising colour for many of polygons in QGIS

Is there a way in QGIS to randomise the colour of all the polygons present in a single layer? I'm currently using QGIS 3.20.3 and a lot of the plugins for this that I've found online are not ...
0
votes
1answer
42 views

QTableWidget hoizontalHeaderItem is returning None

I am developing a tool is Qgis3 using PyQt5. I am adding columns using a button and the setting column names using 'setHorizontalHeaderItem'. But it gives None while trying to read it. Following is ...
4
votes
1answer
223 views

MMQGIS export shapefile to KML not working, error message: 'Unknown geometry type 0'. But Point data being used?

I'm trying to convert a shapefile (created from a CSV) to a KML using the MMQGIS Plugin (as I want to show styling by attributes on Google Earth.) However, when clicking 'apply' it says 'Unknown ...
0
votes
1answer
45 views

Temporal/Spectral Profile Tool: Python error - QGIS 3.16 macOS Catalina

"Temporal/Spectral Profile Tool"-plugin runs into a Python error (below: reports import error in last two lines, entire error message is 14 lines): QGIS 3.16.13 on mac 10.15.7, running Qt 5....
4
votes
2answers
136 views

Manually typing individual field values for all features, in an efficient way

I have a shapefile with a few hundred street lamp posts. There is an attribute, "lamp-id" and I need to enter the lamp id for each feature. A "lamp_id" is three letters and two ...
1
vote
1answer
95 views

Choosing script writer/editor in QGIS Script Runner Preferences

I am a beginner to QGIS and have recently installed QGIS ver.3.82 onto my Windows OS laptop. I have downloaded the Script Runner plugin. I want to use my favorite my script writer/editor (either ...
2
votes
1answer
24 views

QgsLayerTreeNode ignores expansion calls

I'm developing a Python plugin for QGIS. My goal is to add a layer group and then add a vector layer to it. The group is collapsed by default, and I'd like to expand it. But the setExpanded() method ...
6
votes
2answers
131 views

QThread - map not loading after the thread is done

I'm using QThread to run processingBar and heavy job so the user will know it's loading. Everything works fine until the job is done then the map is stuck and not reloading. It looks like I need to ...
0
votes
1answer
86 views

Information [18]: Select at least one signature

While performing run / previewing classified image in SCP, the statement Information [18]: Select at least one signature appears. What is the solution to this?
7
votes
2answers
268 views

Using QGIS plugin from another plugin

I am trying to create a plugin using plugin builder. I have to combine three plugins in order to get the layer I want to work with. 1st plugin: I need to use the 'tools' it provides and its GUI. 2nd ...
26
votes
1answer
6k views

Accessing QGIS plugins in Python?

Is there a way to access QGIS plugins in Python? I'd like to write a script to do some geoprocessing, and I'd like to use the clip, regular points and convex hull tools in fTools, as well as the ...
2
votes
2answers
335 views

Opening Plugin with another Plugin

I would like to open a Plugin with the help of another Plugin. Is it possible, if I want to switch the workflow of different plugins one after the other, that when I click the submit button of one ...
1
vote
1answer
29 views

Error when calculating an OD Matrix using QGIS QNEAT?

I was using QNEAT plugin for QGIS just fine after some very thoughtful recommendation on this web. The first time all went well, but I needed to redo it. Now when I try it I get an error. I can use ...
1
vote
1answer
138 views

qgis2web search attributes

Is it possible to query features based on attributes from the client side of qgis2web? How can this be achieved? I have a single data set that I want to serve over the web, while allowing users to ...
1
vote
1answer
332 views

Checking SAGA version from a python plugin in QGIS 3.4.0

I use QGIS 3.4.0 on Windows and I want to verify SAGA version with processing.algs.saga.SagaUtils.getSagaInstalledVersion(). But I get an error: module 'processing' has no attribute 'algs' This was ...
-1
votes
0answers
17 views

Cannot install RS&GIS Plugin

I cannot install RS&GIS Plugin. I get the error: Couldn't load plugin 'NITK_RS-GIS_17' due to an error when calling its classFactory() method ModuleNotFoundError: No module named 'gdal' ...
3
votes
3answers
4k views

Calculating percentage of overlap of two layers in QGIS 3

I am trying to compare two different vector layers on QGIS 3. They are species distribution maps. I would like to calculate the percentage of overlap of two vector layers. My goal is to determine how ...
2
votes
1answer
156 views

QgsTask.fromFunction not running on_finished method unless an exception is raised in the task

I'm trying to create a task to process some geometry intersections in a QGIS plugin I've created. I'm following 15.2.2 Task from function from the PyQgis Developer cook book exactly as its shown. I ...
1
vote
1answer
244 views

Formula Dark Object Subtraction 1 QGIS (Semi-automatic Classification Plugin)

I am using QGIS with the plugin Semi-Automatic Classification Plugin to apply DOS1 atmospheric correction to bands 3 and 8 of Sentinel-2. Example: I want to automate this task with a python script ...
1
vote
1answer
380 views

Assigning lineEdit to Variable for QGIS plugin

I am trying to create my first QGIS 3 plugin, I am using Plugin Builder and Qt Designer, I want to add a variable named name with lineEdit to be able to use the information entered later, however, I ...
2
votes
1answer
57 views

Clustering points showing the sum of HHS - QGIS 3.18

I have a points layer in QGIS. Each points represent a building. In the attribute table, each point has a field representing the number of HHs in the building (1 HH, 2 HHs, etc...) I want to use the ...
1
vote
1answer
381 views

Dimensioning line with QAD plugin

I would like to use QAD plugin to emulate AutoCAD, especially to draw some dimensioning. There are two possibilities to do so: click on 2 points or select an object. I want to use the object ...
0
votes
1answer
924 views

I can't load a CSV file inside a QTableWidget by Python code

I am a beginner of PyQGIS and I'm trying to do a QGIS plugin, with QGIS 3.4.7 and PyCharm 2016.3.6. I already did the "dialog" box on Qt and after I wrote on Pycharm. It is a table only with ...
16
votes
4answers
9k views

Need to Quickly Add Multiple Layers From Multiple Folders To QGIS Project

I have downloaded several imagery Zip files (content of each is jp2, jpg, jpw, xml, htm, and .dbf, .prj, .sbn, .sbx, .shp, .shx) and would like to quickly add this imagery to my working project in ...
1
vote
0answers
46 views

PyQGIS - how to set processing to avoid bad geometry?

I am getting "feature(182) has invalid geometry" . Fixing it takes a lot of time. How do I set it to ignore bad features and keep running with Python? processing.runAndLoadResults( ...
2
votes
1answer
39 views

QGIS 3 - Model Designer - PostgreSQL execute and load SQL- Change output name

I am using the Model Designer in QGIS to create a tool and I am using the PostgreSQL execute and load SQL algorithm to add my query. The output is a layer loaded in QGIS named SQL layer. Is there a ...
0
votes
1answer
62 views

QGIS 3.10 UnicodeDecodeError: 'utf-8' codec can't decode byte 0x81 in position 136: invalid start byte

I'm a complete newbie to programming and QGIS. I'm working with a virtual machine. If I start a new SWAT Projekt in QGIS, click on Delineate Watershed and load in the .tif file that I need I get the ...
7
votes
1answer
3k views

Changing layer symbology in QGIS 3 with QgsFeatureRendererV2

I am updating a QGIS Plugin from QGIS 2 to 3 and I am struggling with changing the layer symbology (a single symbol type for a line layer). I would like to have all lines in my layer to have the same ...
0
votes
0answers
60 views

Convert .ui GUI file to python with QGIS Plugin Builder

I am using the QGIS plugin builder 3 with Qt Designer to create the GUI for my plugin. I've got a basic GUI done with QtDesigner and I need to dynamically populate a container in my GUI using python. ...
3
votes
1answer
53 views

Allow multiple inputs from one inputbox in QGIS Processing Script

I am trying to build a processing script using "Create new script from template". I want the user to have the opportunity to insert multiple values into one field. def initAlgorithm(): ...
0
votes
1answer
33 views

Multiplying user's input values from column \"Shape_Leng\" using field calculator in PyQGIS for a QGIS Plugin?

I have trouble to calculate a new column as an output based on a simple calculation of user's various input multiply it with the length column of a polyline vector inputs. I have created a plugin but ...
3
votes
1answer
42 views

Recreating multiple layers selection in QGIS Python plugin window

I want to have a list of filtered layers (like only raster or vector ones) the user can select from like we have in QgsProcessingParameterMultipleLayers yet without Processing algorithm script (in ...
2
votes
1answer
49 views

How to add or select layer in QGIS plugin (like they do it in QgsProcessingAlgorithm)?

I want to have this add from the file or select layer in my plugin widget like: I think it can be done with some combination of QgsFileWidget and QgsMapLayerComboBox yet one just selects a file path ...
2
votes
1answer
2k views

Importing DXF in QGIS 3

I'd like to import a *.dxf-file into GIS 3.10 LTR. Does the DXF2Shape plugin available for this version of QGIS?
1
vote
1answer
59 views

Showing the exact overlap area in Topology Checker QGIS

I am using the Topology checker in QGIS 3.10.11 to find overlaps in a large polygon layer. How can you get it to show you exactly where the overlap is? It just shows me there is an overlap somewhere ...
1
vote
0answers
48 views

How to perform intersect or overlay_within functions using Python/PyQGIS to circumvent graphical modeler limitations? [closed]

This relates to Creating field with 1/0 values depending if point sits inside polygon in QGIS for which people provided excellent answers but unfortunately highlighted a current limitation of the ...
0
votes
1answer
43 views

QGIS QNEAT3 Iso-Area as Interpolation (from Layer) - error regarding projected coordinate system

I am new to QGIS and I want to create Iso-areas using the "Iso-Area as Interpolation (from Layer)" tool from the QNEAT3 Plugin to visualize areas dependent on the distance to a layer. I used ...
1
vote
1answer
391 views

Porting QGIS C++ plugins to other QGIS installations

I developed a C++ plugin for QGIS using VC++ express 2008 and a QGIS dev release (1.9.90 alpha), my plugin works fine on this release and now I want to port it to other QGIS installations, so I copied ...

1
2 3 4 5
53