Questions tagged [qgis-plugins]

Software plugins that add functionality to the QGIS package

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

Add column to the GCP Table in QGIS Georeferencer

I am using the QGIS Georeferencer plugin to georeference an aerial image. For each GCP, I would also like to track some metadata about that GCP—for example, whether the GCP is a natural feature, a ...
0
votes
0answers
6 views

QSWAT+ doesn't appear in QGIS tabs

I have downloaded Qswat+ 3.9 and activitated it in the plugins but couldn't find it. got the following msg: KeyError: 'QSWATPlus3_9' Traceback (most recent call last): File "C:/PROGRA~1/QGIS3~...
0
votes
2answers
50 views

Add Today's Date to Attribute table using PyQGIS

I have the following script to merge a group of layers, and I want to edit the script to add a field containing today's date in the attribute table and also delete some fields by their names? root = ...
0
votes
1answer
20 views

AttributeError: module 'processing' has no attribute 'runAndLoadResults'

I'm trying to run QGIS standalone app using processing.runAndLoadResults and keep getting this error: AttributeError: module 'processing' has no attribute 'runAndLoadResults' I'm working on MacOS i ...
0
votes
1answer
24 views

Division of polygon into irregular shape and varying area of polygons

I have a major polygon and with its area, I want to divide this polygon into any numbers of sub polygon. I have also area of sub polygon and number into which major polygon is divided. I want to ...
0
votes
0answers
20 views

Using Spreadsheet layers plugin in QGIS 3.18.3

I am trying to import into QGIS 3.18.3, by using plugin "Spreadsheets Layer", Excel file with multi spreadsheets one by one. It manages to import the file but there is nothing displayed ...
-1
votes
1answer
36 views

How to keep shared borders in the attributes table of multiple polylines

I have a shapefile of polygons for the countries in Africa. I want to turn them to polylines so I just have the country borders, and then when I look at the border for a given country, I want to have ...
3
votes
1answer
49 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 ...
1
vote
1answer
49 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 ...
2
votes
3answers
280 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 ...
1
vote
2answers
103 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() ...
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 ...
2
votes
1answer
25 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 ...
1
vote
1answer
30 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 ...
2
votes
1answer
150 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 ...
6
votes
2answers
136 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 ...
-1
votes
0answers
21 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' ...
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( ...
0
votes
1answer
79 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 ...
0
votes
0answers
64 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
43 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 ...
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 ...
3
votes
1answer
54 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
47 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
0answers
34 views

How to obtain output in a scratch memory layer when using processing.run() in qgis plugins

I am writing a python plugin for QGIS and I need to use an inbuilt tool "Distance to nearest hub (line to hub)" in the QGIS processing toolbox. The following line is supposed to give me the ...
0
votes
1answer
66 views

Loading and writing CSV file in QTableView with Python 3.10 for QGIS Plugin

I know there are a lot of similar questions... but I can't implement them. How can I load a CSV file and write that into a QTableView? My first step was to browse it. def select_input_file(self): ...
0
votes
0answers
41 views

How to search street and housenumber

I installed OSM maps on POSTGRESQL database I installed the osm.pbf file via Osm2pgsql. after that i created a project in QGIS 3.16 Software. This installation is for offline use. I'm unable to ...
0
votes
1answer
35 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 ...
1
vote
0answers
37 views

Adding new attribute to QgsFeature object

I have tried reading the docs located here but there is no mention of any method that allows you to add new attributes to the feature only modify existing ones. Something along the lines of: ...
0
votes
0answers
19 views

QNEAT3 OD Matrix from layers as lines (m:n) distances & interpretation of results

I am trying to find the shortest downstream path from point to point on a stream network using QNEAT3 1.0.4. The network shapefile has a direction of flow field and the following attributes: Value|...
1
vote
0answers
28 views

Delineate watershed

I have a problem with QSWAT. It does not take the delimitation of my catchment, I did all the solutions that I know. I downloaded a new SRTM and the same projection with all the parameters. I ...
0
votes
0answers
22 views

processing.run('qgis:linestopolygons', ...) does not work properly

I am writing a QGIS plugin and for part of the process, I want to transform a Line layer (connected lines) into a Polygon layer. For this, I am using processing.run('qgis:linestopolygons') command. ...
0
votes
0answers
24 views

Converting Australian Bathymetry and Topography contours to DEM for Blender visualization

Purpose: I want to produce a visualization of the Australian seafloor but I'm not having any luck converting the shapefile contours to a DEM. I can convert landmass DEM into a Blender viz and the next ...
4
votes
1answer
43 views

Capturing Layer Undo button or Ctrl+Z in PyQGIS

I added some features in a layer. If I try to undo features from QGIS menu or Ctrl+Z can I capture that trigger? I need like this: def fun(): print('UNDO') iface.undo.triggered.connect(fun)
0
votes
0answers
18 views

Red line related to profile plugin won't go away

I have been experimenting with the plug-in for profiles in QGIS v3.4.11. Red line won't go away from previous selection. I have turned on/off all layers and investigated all layers and it doesn't ...
2
votes
1answer
69 views

"Overpass API : Download failed: Proxy denied connection" using QuickOSM plugin in QGIS 3

I want to use the QGIS plugin QuickOSM in QGIS 3 to extract the road network of a certain area. However, when clicking run query, I get the following error message: Network error with Overpass OSM ...
0
votes
0answers
19 views

LASSPLIT - saving to different file name

I have 100+ files to put through lassplit, and I want to save them as their previous file name with "-split" added. For example, one file name is ST5656_P_10393_20160116_20160116.laz, and in ...
0
votes
0answers
14 views

Looking for suggestions on "exploding" a GeoTIFF by the parameters of a boundary layer

I have a GeoTIFF that contains the LandFIRE vegetation data for a particular county. I also have the shapefile for parcel data in the same county. My goal is simply to associate the LandFIRE ...
1
vote
0answers
14 views

Dockable MirrorMap plugin in QGIS 3

I tried to install Dockable MirrorMap plugin in QGIS 3.16, but it says not compatible. Is there any body have answer if there is any similar plugin as Dockable MirrorMap in QGIS 3.x versions?
0
votes
0answers
41 views

"Exception: std::bad_alloc" when importing rasterio in QGIS

While importing rasterio in QGIS is showing Exception: std::bad_alloc When I re-import rasterio afterwards it shows error: Traceback (most recent call last): File "/usr/lib/python3.8/code.py&...
0
votes
1answer
32 views

Using pyqtSignal in emitting signal for maptool in QGIS

For QGIS I have a plugin named GGAImporter: from .point_tool import PointTool class GGAImporter: ... def addFachdatum(self): self.mapTool = PointTool(self.iface.mapCanvas()) self....
0
votes
0answers
32 views

Displaying non processing QGIS plugin icon in processing toolbox

I am developing a QGIS processing plugin that has many algorithms. Apart from various processing algorithms, there is one tool that is non-processing. I would like to display them all together to the ...
0
votes
0answers
15 views

Cannot load PCA4CD plugin into QGIS 3.16.10

I am trying to load the plugin PCA4CD into QGIS3.16.10 on windows 10. I receive a message stating that the plugin has been successfully installed, however I can't find it. I noticed that there are ...
0
votes
1answer
44 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 ...
3
votes
1answer
66 views

QGIS crashes when creating many features through plugin

I have a plugin, built with plugin builder 3.2.1. I'm running it in the current long-term release of QGIS, 3.16.13 using its built in version of Python 3.7. Within the run method, I call a second ...
0
votes
0answers
34 views

gdalwarp options for speedy processing

In QGIS 3.16, I am clipping a large raster (48000P x 44000 L) by a vector, and trying to use the options to crank it up to "all systems go" i.e. fastest processing possible for this dataset. ...
0
votes
0answers
21 views

Change QGIS symbology-style.db location

Is it possible to change the location of the symbology-style.db in QGIS? Either through the API on launch or through an environment variable?
1
vote
0answers
55 views

QGIS says Python is not supported and cannot access plugins or console

Following the recent PSA recommending users to upgrade from 3.16.12 to 3.16.13 (link), I've been having trouble accessing my plugins and Python console ever since upgrading. I've done some digging and ...
0
votes
0answers
23 views

No Output in QGIS 3.16.11 with previously working model and plugin

I have a model and also a bespoke plugin (fairly basic) which has been working in QGIS 3 ever since I can remember and I often update to the latest LTR. Since updating to QGIS 3.16.11 my model no ...

1
2 3 4 5
54